Lines Matching +full:0 +full:- +full:15
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
6 /dts-v1/;
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/input/rk-input.h>
9 #include <dt-bindings/pinctrl/rockchip.h>
10 #include <dt-bindings/pwm/pwm.h>
11 #include <dt-bindings/sensor-dev.h>
13 #include "rk312x-android.dtsi"
20 …bootargs = "earlycon=uart8250,mmio32,0x20068000 console=ttyFIQ0 root=PARTUUID=614e0000-0000-4b53-8…
23 adc-keys {
24 compatible = "adc-keys";
25 io-channels = <&saradc 1>;
26 io-channel-names = "buttons";
27 poll-interval = <100>;
28 keyup-threshold-microvolt = <3300000>;
30 vol-up-key {
33 press-threshold-microvolt = <0>;
36 vol-down-key{
39 press-threshold-microvolt = <750000>;
42 menu-key{
45 press-threshold-microvolt = <1240000>;
48 esc-key {
51 press-threshold-microvolt = <1980000>;
56 compatible = "pwm-backlight";
57 pwms = <&pwm0 0 25000 0>;
58 brightness-levels = <0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
76 default-brightness-level = <128>;
79 sdio_pwrseq: sdio-pwrseq{
80 compatible = "mmc-pwrseq-simple";
81 pinctrl-name = "default";
82 pinctrl-0 = <&wifi_enable_h>;
83 reset-gpios = <&gpio1 RK_PB4 GPIO_ACTIVE_LOW>;
86 codec_sound: codec-sound {
87 compatible = "simple-audio-card";
88 simple-audio-card,format = "i2s";
89 simple-audio-card,name = "rockchip,rk312x-codec";
90 simple-audio-card,mclk-fs = <256>;
91 simple-audio-card,cpu {
92 sound-dai = <&i2s_8ch>;
94 simple-audio-card,codec {
95 sound-dai = <&codec>;
99 spdif_out: spdif-out {
101 compatible = "linux,spdif-dit";
102 #sound-dai-cells = <0>;
105 media_sound: media-sound {
107 compatible = "simple-audio-card";
108 simple-audio-card,name = "rockchip,hdmi-spdif";
109 simple-audio-card,mclk-fs = <128>;
110 simple-audio-card,dai-link@0 {
113 sound-dai = <&spdif>;
117 sound-dai = <&spdif_out>;
121 simple-audio-card,dai-link@1 {
124 sound-dai = <&spdif>;
128 sound-dai = <&hdmi>;
133 wireless-wlan {
134 compatible = "wlan-platdata";
142 wireless-bluetooth {
143 compatible = "bluetooth-platdata";
145 clock-names = "ext_clock";
147 pinctrl-names = "default","rts_gpio";
148 pinctrl-0 = <&uart0_rts>;
149 pinctrl-1 = <&uart0_rts_gpio>;
156 vcc_phy: vcc-phy-regulator {
157 compatible = "regulator-fixed";
158 enable-active-high;
159 regulator-name = "vcc_phy";
160 regulator-always-on;
161 regulator-boot-on;
164 vcc_2v8_cam: vcc-3v3-cam {
165 compatible = "regulator-fixed";
166 regulator-name = "vcc_2v8_cam";
168 enable-active-high;
169 regulator-min-microvolt = <3300000>;
170 regulator-max-microvolt = <3300000>;
173 vcc5v0_sys: vcc-sys {
174 compatible = "regulator-fixed";
175 regulator-name = "vcc5v0_sys";
176 regulator-always-on;
177 regulator-boot-on;
178 regulator-min-microvolt = <5000000>;
179 regulator-max-microvolt = <5000000>;
182 vcc_host_5v: vcc-host-5v-regulator {
183 compatible = "regulator-fixed";
184 enable-active-high;
186 pinctrl-names = "default";
187 pinctrl-0 = <&host_vbus_drv>;
188 regulator-name = "vcc_host_5v";
189 regulator-always-on;
192 vcc_hub_5v: vcc-hub-5v-regulator {
193 compatible = "regulator-fixed";
194 regulator-name = "vcc_hub_5v";
196 pinctrl-names = "default";
197 pinctrl-0 = <&hub_rst>;
198 enable-active-high;
199 regulator-always-on;
202 vcc_sdmmc: vcc-sdmmc{
203 compatible = "regulator-fixed";
205 pinctrl-names = "default";
206 pinctrl-0 = <&sdmmc_pwren>;
207 regulator-name = "vcc_sdmmc";
208 regulator-min-microvolt = <3300000>;
209 regulator-max-microvolt = <3300000>;
212 vcc3v3_lcd_n: vcc3v3-lcd-n {
213 compatible = "regulator-fixed";
214 regulator-name = "vcc3v3_lcd_n";
215 pinctrl-names = "default";
216 pinctrl-0 = <&lcd_en>;
218 enable-active-high;
219 regulator-boot-on;
222 vccio_wifi: vccio-wifi {
223 compatible = "regulator-fixed";
224 regulator-name = "vccio_wifi";
225 pinctrl-names = "default";
226 pinctrl-0 = <&wifi_pwren_l>;
228 regulator-boot-on;
229 regulator-always-on;
233 compatible = "fixed-clock";
234 clock-frequency = <32768>;
235 clock-output-names = "xin32k";
236 #clock-cells = <0>;
244 port@0 {
245 cif_in_bcam: endpoint@0 {
246 remote-endpoint = <&gc2145_out>;
247 vsync-active = <0>;
248 hsync-active = <1>;
255 spk-ctl-gpios = <&gpio0 RK_PD6 GPIO_ACTIVE_HIGH>;
256 hp-ctl-gpios = <&gpio3 RK_PC4 GPIO_ACTIVE_LOW>;
257 spk-mute-delay = <200>;
258 hp-mute-delay = <100>;
259 rk312x_for_mid = <0>;
266 #sound-dai-cells = <0>;
267 pinctrl-names = "default";
268 pinctrl-0 = <&spk_ctl_h>, <&hp_ctl_h>;
273 cpu-supply = <&vdd_arm>;
281 center-supply = <&vdd_logic>;
287 panel@0 {
288 compatible = "sitronix,st7703", "simple-panel-dsi";
289 reg = <0>;
291 power-supply = <&vcc3v3_lcd_n>;
292 reset-gpio = <&gpio0 RK_PD0 GPIO_ACTIVE_LOW>;
293 prepare-delay-ms = <0>;
294 reset-delay-ms = <0>;
295 init-delay-ms = <80>;
296 enable-delay-ms = <0>;
297 disable-delay-ms = <10>;
298 unprepare-delay-ms = <60>;
300 width-mm = <68>;
301 height-mm = <121>;
308 panel-init-sequence = [
310 15 00 02 01 00
311 15 00 02 02 00
312 15 00 02 03 53
313 15 00 02 04 53
314 15 00 02 05 13
315 15 00 02 06 04
316 15 00 02 07 02
317 15 00 02 08 02
318 15 00 02 09 00
319 15 00 02 0a 00
320 15 00 02 0b 00
321 15 00 02 0c 00
322 15 00 02 0d 00
323 15 00 02 0e 00
324 15 00 02 0f 00
326 15 00 02 10 00
327 15 00 02 11 00
328 15 00 02 12 00
329 15 00 02 13 00
330 15 00 02 14 00
331 15 00 02 15 08
332 15 00 02 16 10
333 15 00 02 17 00
334 15 00 02 18 08
335 15 00 02 19 00
336 15 00 02 1a 00
337 15 00 02 1b 00
338 15 00 02 1c 00
339 15 00 02 1d 00
340 15 00 02 1e c0
341 15 00 02 1f 80
343 15 00 02 20 02
344 15 00 02 21 09
345 15 00 02 22 00
346 15 00 02 23 00
347 15 00 02 24 00
348 15 00 02 25 00
349 15 00 02 26 00
350 15 00 02 27 00
351 15 00 02 28 55
352 15 00 02 29 03
353 15 00 02 2a 00
354 15 00 02 2b 00
355 15 00 02 2c 00
356 15 00 02 2d 00
357 15 00 02 2e 00
358 15 00 02 2f 00
360 15 00 02 30 00
361 15 00 02 31 00
362 15 00 02 32 00
363 15 00 02 33 00
364 15 00 02 34 04
365 15 00 02 35 05
366 15 00 02 36 05
367 15 00 02 37 00
368 15 00 02 38 3c
369 15 00 02 39 35
370 15 00 02 3a 00
371 15 00 02 3b 40
372 15 00 02 3c 00
373 15 00 02 3d 00
374 15 00 02 3e 00
375 15 00 02 3f 00
377 15 00 02 40 00
378 15 00 02 41 88
379 15 00 02 42 00
380 15 00 02 43 00
381 15 00 02 44 1f
383 15 00 02 50 01
384 15 00 02 51 23
385 15 00 02 52 45
386 15 00 02 53 67
387 15 00 02 54 89
388 15 00 02 55 ab
389 15 00 02 56 01
390 15 00 02 57 23
391 15 00 02 58 45
392 15 00 02 59 67
393 15 00 02 5a 89
394 15 00 02 5b ab
395 15 00 02 5c cd
396 15 00 02 5d ef
397 15 00 02 5e 03
398 15 00 02 5f 14
400 15 00 02 60 15
401 15 00 02 61 0c
402 15 00 02 62 0d
403 15 00 02 63 0e
404 15 00 02 64 0f
405 15 00 02 65 10
406 15 00 02 66 11
407 15 00 02 67 08
408 15 00 02 68 02
409 15 00 02 69 0a
410 15 00 02 6a 02
411 15 00 02 6b 02
412 15 00 02 6c 02
413 15 00 02 6d 02
414 15 00 02 6e 02
415 15 00 02 6f 02
417 15 00 02 70 02
418 15 00 02 71 02
419 15 00 02 72 06
420 15 00 02 73 02
421 15 00 02 74 02
422 15 00 02 75 14
423 15 00 02 76 15
424 15 00 02 77 0f
425 15 00 02 78 0e
426 15 00 02 79 0d
427 15 00 02 7a 0c
428 15 00 02 7b 11
429 15 00 02 7c 10
430 15 00 02 7d 06
431 15 00 02 7e 02
432 15 00 02 7f 0a
434 15 00 02 80 02
435 15 00 02 81 02
436 15 00 02 82 02
437 15 00 02 83 02
438 15 00 02 84 02
439 15 00 02 85 02
440 15 00 02 86 02
441 15 00 02 87 02
442 15 00 02 88 08
443 15 00 02 89 02
444 15 00 02 8a 02
447 15 00 02 00 80
448 15 00 02 70 00
449 15 00 02 71 00
450 15 00 02 66 fe
451 15 00 02 82 15
452 15 00 02 84 15
453 15 00 02 85 15
454 15 00 02 3a 24
455 15 00 02 32 ac
456 15 00 02 8c 80
457 15 00 02 3c f5
458 15 00 02 88 33
461 15 00 02 22 0a
462 15 00 02 31 00
463 15 00 02 53 78
464 15 00 02 50 5b
465 15 00 02 51 5b
466 15 00 02 60 20
467 15 00 02 61 00
468 15 00 02 62 0d
469 15 00 02 63 00
471 15 00 02 a0 00
472 15 00 02 a1 10
473 15 00 02 a2 1c
474 15 00 02 a3 13
475 15 00 02 a4 15
476 15 00 02 a5 26
477 15 00 02 a6 1a
478 15 00 02 a7 1d
479 15 00 02 a8 67
480 15 00 02 a9 1c
481 15 00 02 aa 29
482 15 00 02 ab 5b
483 15 00 02 ac 26
484 15 00 02 ad 28
485 15 00 02 ae 5c
486 15 00 02 af 30
487 15 00 02 b0 31
488 15 00 02 b1 2e
489 15 00 02 b2 32
490 15 00 02 b3 00
492 15 00 02 c0 00
493 15 00 02 c1 10
494 15 00 02 c2 1c
495 15 00 02 c3 13
496 15 00 02 c4 15
497 15 00 02 c5 26
498 15 00 02 c6 1a
499 15 00 02 c7 1d
500 15 00 02 c8 67
501 15 00 02 c9 1c
502 15 00 02 ca 29
503 15 00 02 cb 5b
504 15 00 02 cc 26
505 15 00 02 cd 28
506 15 00 02 ce 5c
507 15 00 02 cf 30
508 15 00 02 d0 31
509 15 00 02 d1 2e
510 15 00 02 d2 32
511 15 00 02 d3 00
517 panel-exit-sequence = [
522 display-timings {
523 native-mode = <&timing0>;
526 clock-frequency = <65000000>;
529 hfront-porch = <40>;
530 hsync-len = <10>;
531 hback-porch = <40>;
532 vfront-porch = <22>;
533 vsync-len = <4>;
534 vback-porch = <11>;
535 hsync-active = <0>;
536 vsync-active = <0>;
537 de-active = <0>;
538 pixelclk-active = <0>;
545 bus-width = <8>;
546 cap-mmc-highspeed;
547 supports-emmc;
548 disable-wp;
549 non-removable;
550 num-slots = <1>;
551 pinctrl-names = "default";
552 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
557 assigned-clocks = <&cru SCLK_MAC_SRC>;
558 assigned-clock-rates = <50000000>;
560 pinctrl-names = "default";
561 pinctrl-0 = <&rmii_pins>;
562 phy-supply = <&vcc_phy>;
563 phy-mode = "rmii";
564 snps,reset-active-low;
565 snps,reset-delays-us = <0 10000 50000>;
566 snps,reset-gpio = <&gpio2 RK_PD0 GPIO_ACTIVE_LOW>;
572 mali-supply = <&vdd_logic>;
577 #sound-dai-cells = <0>;
591 clock-frequency = <400000>;
595 reg = <0x51>;
597 wakeup-source;
603 reg = <0x18>;
604 interrupt-parent = <&gpio1>;
606 pinctrl-names = "default";
607 pinctrl-0 = <&pmic_int>;
608 rockchip,system-power-controller;
609 wakeup-source;
610 gpio-controller;
611 #gpio-cells = <2>;
612 #clock-cells = <1>;
613 clock-output-names = "rk805-clkout1", "rk805-clkout2";
615 vcc1-supply = <&vcc5v0_sys>;
616 vcc2-supply = <&vcc5v0_sys>;
617 vcc3-supply = <&vcc5v0_sys>;
618 vcc4-supply = <&vcc5v0_sys>;
619 vcc5-supply = <&vcc_io>;
620 vcc6-supply = <&vcc_io>;
635 compatible = "rk805-regulator";
637 #address-cells = <1>;
638 #size-cells = <0>;
641 regulator-name = "vdd_arm";
642 regulator-min-microvolt = <700000>;
643 regulator-max-microvolt = <1500000>;
644 regulator-initial-mode = <0x1>;
645 regulator-initial-state = <3>;
646 regulator-boot-on;
647 regulator-always-on;
648 regulator-state-mem {
649 regulator-state-mode = <0x2>;
650 regulator-state-enabled;
651 regulator-state-uv = <975000>;
656 regulator-name = "vdd_logic";
657 regulator-min-microvolt = <700000>;
658 regulator-max-microvolt = <1500000>;
659 regulator-initial-mode = <0x1>;
660 regulator-ramp-delay = <12500>;
661 regulator-boot-on;
662 regulator-always-on;
663 regulator-state-mem {
664 regulator-mode = <0x2>;
665 regulator-on-in-suspend;
666 regulator-suspend-microvolt = <1000000>;
671 regulator-name = "vcc_ddr";
672 regulator-initial-mode = <0x1>;
673 regulator-boot-on;
674 regulator-always-on;
675 regulator-state-mem {
676 regulator-mode = <0x2>;
677 regulator-on-in-suspend;
682 regulator-name = "vcc_io";
683 regulator-min-microvolt = <3300000>;
684 regulator-max-microvolt = <3300000>;
685 regulator-initial-mode = <0x1>;
686 regulator-boot-on;
687 regulator-always-on;
688 regulator-state-mem {
689 regulator-mode = <0x2>;
690 regulator-on-in-suspend;
691 regulator-suspend-microvolt = <3300000>;
696 regulator-name = "vcca_33";
697 regulator-min-microvolt = <3300000>;
698 regulator-max-microvolt = <3300000>;
699 regulator-initial-state = <3>;
700 regulator-boot-on;
701 regulator-always-on;
702 regulator-state-mem {
703 regulator-on-in-suspend;
704 regulator-suspend-microvolt = <3300000>;
709 regulator-name = "vcc_1v8_cam";
710 regulator-min-microvolt = <1800000>;
711 regulator-max-microvolt = <1800000>;
712 regulator-boot-on;
713 regulator-always-on;
714 regulator-state-mem {
715 regulator-on-in-suspend;
716 regulator-suspend-microvolt = <1800000>;
721 regulator-name = "vdd10_pmu";
722 regulator-min-microvolt = <1100000>;
723 regulator-max-microvolt = <1100000>;
724 regulator-boot-on;
725 regulator-always-on;
726 regulator-state-mem {
727 regulator-on-in-suspend;
728 regulator-suspend-microvolt = <1100000>;
741 reg = <0x3c>;
744 clock-names = "xvclk";
745 pwdn-gpios = <&gpio3 RK_PD7 GPIO_ACTIVE_HIGH>;
747 avdd-supply = <&vcc_2v8_cam>;
748 dovdd-supply = <&vcc_2v8_cam>;
749 dvdd-supply = <&vcc_1v8_cam>;
751 rockchip,camera-module-index = <0>;
752 rockchip,camera-module-facing = "back";
753 rockchip,camera-module-name = "CameraKing";
754 rockchip,camera-module-lens-name = "Largan";
758 remote-endpoint = <&cif_in_bcam>;
766 reg = <0x14>;
767 power-supply = <&vcc3v3_lcd_n>;
768 pinctrl-names = "default";
769 pinctrl-0 = <&tp_rst>, <&tp_irq>;
770 goodix,rst-gpio = <&gpio0 RK_PD1 GPIO_ACTIVE_LOW>;
771 goodix,irq-gpio = <&gpio1 RK_PB0 GPIO_ACTIVE_LOW>;
777 reg = <0x4c>;
779 irq-gpio = <&gpio0 RK_PB4 IRQ_TYPE_LEVEL_LOW>;
780 irq_enable = <0>;
789 #sound-dai-cells = <0>;
798 spk_ctl_h: spk-ctl-h{
799 rockchip,pins = <0 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>;
802 hp_ctl_h: hp-ctl-h{
808 lcd_en: lcd-en {
812 tp_rst: tp-rst {
813 rockchip,pins = <0 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>;
816 tp_irq: tp-irq {
822 pmic_int: pmic-int {
826 pmic_sleep: pmic-sleep {
832 mma7660_irq_gpio: mma7660-irq-gpio {
833 rockchip,pins = <0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
838 host_vbus_drv: host-vbus-drv {
842 hub_rst: hub-rst {
848 uart0_rts_gpio: uart0-rts-gpio{
849 rockchip,pins = <0 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>;
854 wifi_enable_h: wifi-enable-h{
857 wifi_pwren_l: wifi-pwren-l{
858 rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
869 compatible = "rockchip,remotectl-pwm";
870 pinctrl-names = "default";
872 handle_cpu_id = <0>;
873 remote_support_psci = <0>;
876 rockchip,usercode = <0xff00>;
878 <0xeb KEY_POWER>,
879 <0xec KEY_COMPOSE>,
880 <0xfe KEY_BACK>,
881 <0xb7 KEY_HOME>,
882 <0xa3 KEY_WWW>,
883 <0xf4 KEY_VOLUMEUP>,
884 <0xa7 KEY_VOLUMEDOWN>,
885 <0xf8 KEY_ENTER>,
886 <0xfc KEY_UP>,
887 <0xfd KEY_DOWN>,
888 <0xf1 KEY_LEFT>,
889 <0xe5 KEY_RIGHT>;
903 vref-supply = <&vcc_io>;
907 max-frequency = <50000000>;
908 supports-sdio;
909 disable-wp;
910 cap-sd-highspeed;
911 cap-sdio-irq;
912 keep-power-in-suspend;
913 pinctrl-names = "default";
914 pinctrl-0 = <&sdio_cmd &sdio_clk &sdio_bus4>;
915 mmc-pwrseq = <&sdio_pwrseq>;
916 non-removable;
917 sd-uhs-sdr104;
922 cap-mmc-highspeed;
923 cap-sd-highspeed;
924 no-sdio;
925 no-mmc;
926 vmmc-supply = <&vcc_sdmmc>;
927 card-detect-delay = <800>;
928 pinctrl-names = "default";
929 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_bus4 &sdmmc_det>;
930 rockchip,default-sample-phase=<90>;
935 compatible = "rockchip,rk3188-spdif";
937 i2c-scl-rising-time-ns = <450>;
938 i2c-scl-falling-time-ns = <15>;
939 #sound-dai-cells = <0>;
949 u2phy_otg: otg-port {
953 u2phy_host: host-port {
954 phy-supply = <&vcc_host_5v>;
960 pinctrl-names = "default";
961 pinctrl-0 = <&uart0_xfer &uart0_cts>;