4 //#include "lcd-b101ew05.dtsi"
5 #include "lcd-F402.dtsi"
6 #include "vtl_ts_sdk8846.dtsi"
14 compatible = "wlan-platdata";
16 /* wifi_chip_type - wifi chip define
17 * bcmwifi ==> like ap6xxx, rk90x;
18 * rtkwifi ==> like rtl8188xx, rtl8723xx;
19 * esp8089 ==> esp8089;
20 * other ==> for other wifi;
22 wifi_chip_type = "bcmwifi";
24 sdio_vref = <1800>; //1800mv or 3300mv
27 power_pmu_regulator = "act_ldo3";
28 power_pmu_enable_level = <1>; //1->HIGH, 0->LOW
31 //vref_ctrl_gpio = <&gpio0 GPIO_A2 GPIO_ACTIVE_HIGH>;
32 vref_pmu_regulator = "act_ldo3";
33 vref_pmu_enable_level = <1>; //1->HIGH, 0->LOW
35 WIFI,poweren_gpio = <&gpio4 GPIO_D4 GPIO_ACTIVE_HIGH>;
36 WIFI,host_wake_irq = <&gpio4 GPIO_D6 GPIO_ACTIVE_HIGH>;
37 //WIFI,reset_gpio = <&gpio0 GPIO_A2 GPIO_ACTIVE_LOW>;
43 compatible = "bluetooth-platdata";
45 //wifi-bt-power-toggle;
47 uart_rts_gpios = <&gpio4 GPIO_C3 GPIO_ACTIVE_LOW>;
48 pinctrl-names = "default","rts_gpio";
49 pinctrl-0 = <&uart0_rts>;
50 pinctrl-1 = <&uart0_rts_gpio>;
52 BT,power_gpio = <&gpio4 GPIO_D3 GPIO_ACTIVE_HIGH>;
53 BT,reset_gpio = <&gpio4 GPIO_D5 GPIO_ACTIVE_HIGH>;
54 BT,wake_gpio = <&gpio4 GPIO_D2 GPIO_ACTIVE_HIGH>;
55 BT,wake_host_irq = <&gpio4 GPIO_D7 GPIO_ACTIVE_LOW>;
61 compatible = "hall_och165t";
62 type = <SENSOR_TYPE_HALL>;
63 irq-gpio = <&gpio0 GPIO_A6 IRQ_TYPE_EDGE_BOTH>;
67 compatible = "pwm-backlight";
68 pwms = <&pwm0 0 25000>;
69 brightness-levels = <255 254 253 252 251 250 249 248 247 246 245 244 243 242 241 240
70 239 238 237 236 235 234 233 232 231 230 229 228 227 226 225 224 223 222 221 220
71 219 218 217 216 215 214 213 212 211 210 209 208 207 206 205 204 203 202 201 200
72 199 198 197 196 195 194 193 192 191 190 189 188 187 186 185 184 183 182 181 180
73 179 178 177 176 175 174 173 172 171 170 169 168 167 166 165 164 163 162 161 160
74 159 158 157 156 155 154 153 152 151 150 149 148 147 146 145 144 143 142 141 140
75 139 138 137 136 135 134 133 132 131 130 129 128 127 126 125 124 123 122 121 120
76 119 118 117 116 115 114 113 112 111 110 109 108 107 106 105 104 103 102 101 100
77 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70
78 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40
79 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10
81 default-brightness-level = <200>;
82 enable-gpios = <&gpio7 GPIO_A2 GPIO_ACTIVE_HIGH>;
86 compatible = "rockchip_pwm_regulator";
87 pwms = <&pwm1 0 2000>;
89 rockchip,pwm_voltage_map= <925000 950000 975000 1000000 1025000 1050000 1075000 1100000 1125000 1150000 1175000 1200000 1225000 1250000 1275000 1300000 1325000 1350000 1375000 1400000>;
90 rockchip,pwm_voltage= <1000000>;
91 rockchip,pwm_min_voltage= <925000>;
92 rockchip,pwm_max_voltage= <1400000>;
93 rockchip,pwm_suspend_voltage= <950000>;
94 rockchip,pwm_coefficient= <475>;
98 pwm_reg0: regulator@0 {
99 regulator-compatible = "pwm_dcdc1";
100 regulator-name= "vdd_logic";
101 regulator-min-microvolt = <925000>;
102 regulator-max-microvolt = <1400000>;
109 codec_hdmi_i2s: codec-hdmi-i2s {
110 compatible = "hdmi-i2s";
113 codec_hdmi_spdif: codec-hdmi-spdif {
114 compatible = "hdmi-spdif";
118 compatible = "rockchip-hdmi-i2s";
121 audio-codec = <&codec_hdmi_i2s>;
122 i2s-controller = <&i2s>;
125 //bitclock-inversion;
133 rockchip-hdmi-spdif {
134 compatible = "rockchip-hdmi-spdif";
137 audio-codec = <&codec_hdmi_spdif>;
138 i2s-controller = <&spdif>;
144 compatible = "rockchip-rt5631";
147 audio-codec = <&rt5631>;
148 i2s-controller = <&i2s>;
151 //bitclock-inversion;
160 compatible = "rockchip-rt3261";
163 audio-codec = <&rt3261>;
164 i2s-controller = <&i2s>;
167 //bitclock-inversion;
173 audio-codec = <&rt3261>;
174 i2s-controller = <&i2s>;
186 compatible = "rockchip,rk3288-usb-control";
188 host_drv_gpio = <&gpio0 GPIO_B6 GPIO_ACTIVE_LOW>;
189 otg_drv_gpio = <&gpio0 GPIO_B4 GPIO_ACTIVE_LOW>;
191 rockchip,remote_wakeup;
192 rockchip,usb_irq_wakeup;
195 bootargs = "vmalloc=512M";
200 // power_ctl_by = "gpio"; //"gpio" "pmu"
201 power-gpio = <&gpio0 GPIO_A6 GPIO_ACTIVE_HIGH>;
202 // power-pmu = "act_ldo"
203 // reset-gpio = <&gpio4 GPIO_A7 GPIO_ACTIVE_LOW>;
205 clock_in_out = "input";
211 //used for init some gpio
212 init-gpios = <&gpio0 GPIO_A6 GPIO_ACTIVE_HIGH
213 /*&gpio0 GPIO_C2 GPIO_ACTIVE_HIGH */
214 /*&gpio7 GPIO_B7 GPIO_ACTIVE_LOW */>;
218 rockchip,pins = <GPIO0_C2>;
219 rockchip,pull = <VALUE_PULL_DOWN>;
227 rockchip,pins = <GPIO7_A7>;
228 rockchip,pull = <VALUE_PULL_DOWN>;
234 //could add other pinctrl definition such as gpio
236 // gmac drive strength
239 rockchip,drive = <VALUE_DRV_12MA>;
242 mac_txpins: mac-txpins {
243 rockchip,drive = <VALUE_DRV_12MA>;
246 mac_rxpins: mac-rxpins {
247 rockchip,drive = <VALUE_DRV_12MA>;
251 rockchip,drive = <VALUE_DRV_12MA>;
254 mac_mdpins: mac-mdpins {
255 rockchip,drive = <VALUE_DRV_12MA>;
261 status = "disabled"; // used nand set "disabled" ,used emmc set "okay"
264 status = "disabled"; // used nand set "disabled" ,used emmc set "okay"
268 status = "okay"; // used nand set "disabled" ,used emmc set "okay"
272 clock-frequency = <100000000>;
273 clock-freq-min-max = <400000 100000000>;
280 //supports-DDR_MODE; //you should set the two value in your project. only close in RK3288-SDK board.
284 keep-power-in-suspend;
291 clock-frequency = <50000000>;
292 clock-freq-min-max = <400000 50000000>;
296 card-detect-delay = <200>;
299 keep-power-in-suspend;
301 vmmc-supply = <&ldo1_reg>;
306 clock-frequency = <50000000>;
307 clock-freq-min-max = <200000 50000000>;
311 keep-power-in-suspend;
318 max-freq = <48000000>;
321 compatible = "rockchip,spi_test_bus0_cs0";
323 spi-max-frequency = <24000000>;
333 compatible = "rockchip,spi_test_bus0_cs1";
335 spi-max-frequency = <24000000>;
347 max-freq = <48000000>;
350 compatible = "rockchip,spi_test_bus1_cs0";
352 spi-max-frequency = <24000000>;
365 max-freq = <48000000>;
368 compatible = "rockchip,spi_test_bus2_cs0";
370 spi-max-frequency = <24000000>;
379 compatible = "rockchip,spi_test_bus2_cs1";
381 spi-max-frequency = <24000000>;
393 dma-names = "!tx", "!rx";
394 pinctrl-0 = <&uart0_xfer &uart0_cts>;
408 compatible = "silergy,syr82x";
412 #address-cells = <1>;
414 syr827_dc1: regulator@0 {
416 regulator-compatible = "syr82x_dcdc1";
417 regulator-name = "vdd_arm";
418 regulator-min-microvolt = <712500>;
419 regulator-max-microvolt = <1500000>;
422 regulator-initial-mode = <0x2>;
423 regulator-initial-state = <3>;
424 regulator-state-mem {
425 regulator-state-mode = <0x2>;
426 regulator-state-disabled;
427 regulator-state-uv = <900000>;
433 compatible = "silergy,syr82x";
437 #address-cells = <1>;
439 syr828_dc1: regulator@0 {
441 regulator-compatible = "syr82x_dcdc1";
442 regulator-name = "vdd_gpu";
443 regulator-min-microvolt = <712500>;
444 regulator-max-microvolt = <1500000>;
447 regulator-initial-mode = <0x2>;
448 regulator-initial-state = <3>;
449 regulator-state-mem {
450 regulator-state-mode = <0x2>;
451 regulator-state-enabled;
452 regulator-state-uv = <900000>;
457 act8846: act8846@5a {
462 ricoh619: ricoh619@32 {
466 bq24296: bq24296@6b {
467 compatible = "ti,bq24296";
469 gpios = <&gpio0 GPIO_A7 GPIO_ACTIVE_HIGH>,<&gpio0 GPIO_B0 GPIO_ACTIVE_HIGH>;
470 bq24296,chg_current = <1000 2000 3000>;
474 bq27320: bq27320@55 {
475 compatible = "ti,bq27320";
477 /* gpios = <&gpio0 GPIO_A7 GPIO_ACTIVE_HIGH>; */
482 compatible = "cw201x";
484 dc_det_gpio = <&gpio0 GPIO_B0 GPIO_ACTIVE_LOW>;
485 bat_low_gpio = <&gpio0 GPIO_A7 GPIO_ACTIVE_LOW>;
486 chg_ok_gpio = <&gpio0 GPIO_B1 GPIO_ACTIVE_HIGH>;
487 bat_config_info = <0x15 0x42 0x60 0x59 0x52 0x58 0x4D 0x48 0x48 0x44 0x44 0x46 0x49 0x48 0x32
488 0x24 0x20 0x17 0x13 0x0F 0x19 0x3E 0x51 0x45 0x08 0x76 0x0B 0x85 0x0E 0x1C 0x2E 0x3E 0x4D 0x52 0x52
489 0x57 0x3D 0x1B 0x6A 0x2D 0x25 0x43 0x52 0x87 0x8F 0x91 0x94 0x52 0x82 0x8C 0x92 0x96 0xFF 0x7B 0xBB
490 0xCB 0x2F 0x7D 0x72 0xA5 0xB5 0xC1 0x46 0xAE>;
496 compatible = "rtc,hym8563";
498 irq_gpio = <&gpio0 GPIO_A4 IRQ_TYPE_EDGE_FALLING>;
507 compatible = "mpu6050";
509 mpu-int_config = <0x10>;
510 mpu-level_shifter = <0>;
511 mpu-orientation = <0 1 0 1 0 0 0 0 1>;
515 irq-gpio = <&gpio8 GPIO_A0 IRQ_TYPE_LEVEL_LOW>;
521 compatible = "mpu_ak8963";
524 compass-adapt_num = <0>;
525 compass-orientation = <1 0 0 0 1 0 0 0 1>;
538 compatible = "rt5631";
542 compatible = "es8323";
546 compatible = "rt3261";
548 // codec-en-gpio = <0>;//sdk default high level
550 modem-input-mode = <1>;
551 lout-to-modem_mode = <1>;
553 playback-if1-data_control = <0>;
554 playback-if2-data_control = <0>;
557 compatible = "rt5616";
569 compatible = "goodix,gt8xx";
571 touch-gpio = <&gpio7 GPIO_A6 IRQ_TYPE_LEVEL_LOW>;
572 reset-gpio = <&gpio7 GPIO_A5 GPIO_ACTIVE_LOW>;
573 //power-gpio = <&gpio0 GPIO_C5 GPIO_ACTIVE_LOW>;
579 compatible = "ct,vtl_ts";
581 screen_max_x = <1536>;
582 screen_max_y = <2048>;
589 irq_gpio_number = <&gpio7 GPIO_A6 IRQ_TYPE_LEVEL_LOW>;
590 rst_gpio_number = <&gpio7 GPIO_A5 GPIO_ACTIVE_HIGH>;
599 rockchip,disp-mode = <DUAL>;
600 rockchip,uboot-logo-on = <1>;
604 display-timings = <&disp_timings>;
607 /*lcdc0 as PRMRY(LCD),lcdc1 as EXTEND(HDMI)*/
610 rockchip,mirror = <NO_MIRROR>;
611 rockchip,cabc_mode = <0>;
612 power_ctr: power_ctr {
613 rockchip,debug = <0>;
615 rockchip,power_type = <GPIO>;
616 gpios = <&gpio7 GPIO_A3 GPIO_ACTIVE_HIGH>;
617 rockchip,delay = <10>;
621 rockchip,power_type = <GPIO>;
622 gpios = <&gpio7 GPIO_A4 GPIO_ACTIVE_HIGH>;
623 rockchip,delay = <10>;
627 rockchip,power_type = <GPIO>;
628 gpios = <&gpio3 GPIO_D6 GPIO_ACTIVE_HIGH>;
629 rockchip,delay = <5>;
637 rockchip,mirror = <ROTATE_270>;
643 rockchips,hdmi_audio_source = <0>;
650 compatible = "rockchip_headset";
651 headset_gpio = <&gpio7 GPIO_A7 GPIO_ACTIVE_LOW>;
652 pinctrl-names = "default";
653 pinctrl-0 = <&gpio7_a7>;
654 io-channels = <&adc 2>;
657 hook_down_type = ; //interrupt hook key down status
662 compatible = "rockchip,key";
663 io-channels = <&adc 1>;
668 rockchip,adc_value = <1>;
673 label = "volume down";
674 rockchip,adc_value = <170>;
678 gpios = <&gpio0 GPIO_A5 GPIO_ACTIVE_LOW>;
687 rockchip,adc_value = <355>;
693 rockchip,adc_value = <746>;
699 rockchip,adc_value = <560>;
705 rockchip,adc_value = <450>;
719 &clk_core_dvfs_table {
740 &clk_gpu_dvfs_table {
752 &clk_ddr_dvfs_table {
763 SYS_STATUS_NORMAL 400000
764 SYS_STATUS_SUSPEND 200000
765 SYS_STATUS_VIDEO_1080P 240000
766 SYS_STATUS_VIDEO_4K 400000
767 SYS_STATUS_PERFORMANCE 528000
768 SYS_STATUS_DUALVIEW 400000
769 SYS_STATUS_BOOST 324000
770 SYS_STATUS_ISP 400000
781 /include/ "act8846.dtsi"
783 gpios =<&gpio7 GPIO_A1 GPIO_ACTIVE_LOW>,<&gpio0 GPIO_B2 GPIO_ACTIVE_HIGH>;
784 act8846,system-power-controller;
788 dcdc1_reg: regulator@0{
789 regulator-name= "act_dcdc1";
790 regulator-min-microvolt = <1200000>;
791 regulator-max-microvolt = <1200000>;
796 dcdc2_reg: regulator@1 {
797 regulator-name= "vccio";
798 regulator-min-microvolt = <3300000>;
799 regulator-max-microvolt = <3300000>;
800 regulator-initial-state = <3>;
801 regulator-state-mem {
802 regulator-state-enabled;
803 regulator-state-uv = <3300000>;
807 dcdc3_reg: regulator@2 {
808 regulator-name= "vdd_logic";
809 regulator-min-microvolt = <700000>;
810 regulator-max-microvolt = <1500000>;
811 regulator-initial-state = <3>;
812 regulator-state-mem {
813 regulator-state-enabled;
814 regulator-state-uv = <1000000>;
819 dcdc4_reg: regulator@3 {
820 regulator-name= "act_dcdc4";
821 regulator-min-microvolt = <2000000>;
822 regulator-max-microvolt = <2000000>;
823 regulator-initial-state = <3>;
824 regulator-state-mem {
825 regulator-state-enabled;
826 regulator-state-uv = <2000000>;
830 ldo1_reg: regulator@4 {
831 regulator-name= "vccio_sd";
832 regulator-min-microvolt = <1800000>;
833 regulator-max-microvolt = <3300000>;
837 ldo2_reg: regulator@5 {
838 regulator-name= "act_ldo2";
839 regulator-min-microvolt = <1000000>;
840 regulator-max-microvolt = <1000000>;
844 ldo3_reg: regulator@6 {
845 regulator-name= "act_ldo3";
846 regulator-min-microvolt = <3300000>;
847 regulator-max-microvolt = <3300000>;
851 ldo4_reg:regulator@7 {
852 regulator-name= "act_ldo4";
853 regulator-min-microvolt = <3300000>;
854 regulator-max-microvolt = <3300000>;
858 ldo5_reg: regulator@8 {
859 regulator-name= "act_ldo5";
860 regulator-min-microvolt = <3300000>;
861 regulator-max-microvolt = <3300000>;
865 ldo6_reg: regulator@9 {
866 regulator-name= "act_ldo6";
867 regulator-min-microvolt = <1000000>;
868 regulator-max-microvolt = <1000000>;
869 regulator-initial-state = <3>;
870 regulator-state-mem {
871 regulator-state-enabled;
876 ldo7_reg: regulator@10 {
877 regulator-name= "vcc_18";
878 regulator-min-microvolt = <1800000>;
879 regulator-max-microvolt = <1800000>;
880 regulator-initial-state = <3>;
881 regulator-state-mem {
882 regulator-state-enabled;
887 ldo8_reg: regulator@11 {
888 regulator-name= "act_ldo8";
889 regulator-min-microvolt = <1800000>;
890 regulator-max-microvolt = <1800000>;
897 /include/ "rk808.dtsi"
899 gpios =<&gpio0 GPIO_A4 GPIO_ACTIVE_HIGH>,<&gpio0 GPIO_B3 GPIO_ACTIVE_LOW>;
900 rk808,system-power-controller;
904 rk808_dcdc1_reg: regulator@0{
905 regulator-name= "vdd_arm";
910 rk808_dcdc2_reg: regulator@1 {
911 regulator-name= "vdd_gpu";
916 rk808_dcdc3_reg: regulator@2 {
917 regulator-name= "rk_dcdc3";
918 regulator-min-microvolt = <1200000>;
919 regulator-max-microvolt = <1200000>;
924 rk808_dcdc4_reg: regulator@3 {
925 regulator-name= "vccio";
926 regulator-min-microvolt = <1800000>;
927 regulator-max-microvolt = <3300000>;
932 rk808_ldo1_reg: regulator@4 {
933 regulator-name= "rk_ldo1";
934 regulator-min-microvolt = <3300000>;
935 regulator-max-microvolt = <3300000>;
940 rk808_ldo2_reg: regulator@5 {
941 regulator-name= "rk_ldo2";
942 regulator-min-microvolt = <3300000>;
943 regulator-max-microvolt = <3300000>;
948 rk808_ldo3_reg: regulator@6 {
949 regulator-name= "rk_ldo3";
950 regulator-min-microvolt = <1000000>;
951 regulator-max-microvolt = <1000000>;
956 rk808_ldo4_reg:regulator@7 {
957 regulator-name= "rk_ldo4";
958 regulator-min-microvolt = <1800000>;
959 regulator-max-microvolt = <1800000>;
964 rk808_ldo5_reg: regulator@8 {
965 regulator-name= "vcc_sd";
966 regulator-min-microvolt = <1800000>;
967 regulator-max-microvolt = <3300000>;
972 rk808_ldo6_reg: regulator@9 {
973 regulator-name= "rk_ldo6";
974 regulator-min-microvolt = <1000000>;
975 regulator-max-microvolt = <1000000>;
980 rk808_ldo7_reg: regulator@10 {
981 regulator-name= "rk_ldo7";
982 regulator-min-microvolt = <1800000>;
983 regulator-max-microvolt = <1800000>;
988 rk808_ldo8_reg: regulator@11 {
989 regulator-name= "rk_ldo8";
990 regulator-min-microvolt = <3300000>;
991 regulator-max-microvolt = <3300000>;
996 rk808_ldo9_reg: regulator@12 {
997 regulator-name= "rk_ldo9";
1002 rk808_ldo10_reg: regulator@13 {
1003 regulator-name= "rk_ldo10";
1004 regulator-always-on;
1011 regulator-name = "vcc30_lcd";
1014 regulator-name = "vcc18_cif";
1017 regulator-name = "vcc_flash";
1020 regulator-name = "vcc_flash";
1023 regulator-name = "vccio_wl";
1026 regulator-name = "vccio";
1029 regulator-name = "vccio";
1032 regulator-name = "vccio";
1035 regulator-name = "vccio";
1038 regulator-name = "vcc_sd";
1042 reg = <0x40000000 0x28000000>; /* 640MB */
1047 status = "disabled";