4 #include "lcd-LP097Qx1.dtsi"
13 5ven,pin =<&gpio7 GPIO_B4 GPIO_ACTIVE_HIGH>; // 5v power for otg and hdmi
19 compatible = "wlan-platdata";
22 sdio_vref = <1800>; //1800mv or 3300mv
25 pmu_regulator = "act_ldo3";
26 pmu_enable_level = <1>; //1->HIGH, 0->LOW
28 WIFI,poweren_gpio = <&gpio4 GPIO_D4 GPIO_ACTIVE_HIGH>;
29 WIFI,host_wake_irq = <&gpio4 GPIO_D6 GPIO_ACTIVE_HIGH>;
30 //WIFI,reset_gpio = <&gpio0 GPIO_A2 GPIO_ACTIVE_LOW>;
36 compatible = "bluetooth-platdata";
38 uart_rts_gpios = <&gpio4 GPIO_C3 GPIO_ACTIVE_LOW>;
39 pinctrl-names = "default","rts_gpio";
40 pinctrl-0 = <&uart0_rts>;
41 pinctrl-1 = <&uart0_rts_gpio>;
43 //BT,power_gpio = <&gpio4 GPIO_D3 GPIO_ACTIVE_HIGH>;
44 BT,reset_gpio = <&gpio4 GPIO_D5 GPIO_ACTIVE_HIGH>;
45 BT,wake_gpio = <&gpio4 GPIO_D2 GPIO_ACTIVE_HIGH>;
46 BT,wake_host_irq = <&gpio4 GPIO_D7 GPIO_ACTIVE_LOW>;
52 compatible = "hall_och165t";
53 type = <SENSOR_TYPE_HALL>;
54 irq-gpio = <&gpio0 GPIO_A6 IRQ_TYPE_EDGE_BOTH>;
58 compatible = "pwm-backlight";
59 pwms = <&pwm0 0 25000>;
60 brightness-levels = <255 255 254 254 253 253 252 252 251 251 250 250 249 249 248 248 247 247 246 246 245 245 244 244 243 243 242 242 241 241 240 240
61 239 239 238 238 237 237 236 236 235 235 234 234 233 233 232 232 231 231 230 230 229 229 228 228 227 227 226 226 225 225
62 224 224 223 223 222 222 221 221 220 220 219 219 218 218 217 217 216 216 215 215 214 214 213 213 212 212 211 211 210 210
63 209 209 208 208 207 207 206 206 205 205 204 204 203 203 202 202 201 201 200 200 199 199 198 198 197 197 196 196 195 195
64 194 194 193 193 192 192 191 191 190 190 189 189 188 188 187 187 186 186 185 185 184 184 183 183 182 182 181 181 180 180
65 179 179 178 178 177 177 176 176 175 175 174 174 173 173 172 172 171 171 170 170 169 169 168 168 167 167 166 166 165 165
66 164 164 163 163 162 162 161 161 160 160 159 159 158 158 157 157 156 156 155 155 154 154 153 153 152 152 151 151 150 150
67 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150
68 150 150 150 150 150 150 150 150 150 150 150 150 150 150>;
69 default-brightness-level = <20>;
70 enable-gpios = <&gpio7 GPIO_A2 GPIO_ACTIVE_HIGH>;
74 compatible = "rockchip_pwm_regulator";
75 pwms = <&pwm1 0 25000>;
77 rockchip,pwm_voltage_map= <925000 950000 975000 1000000 1025000 1050000 1075000 1100000 1125000 1150000 1175000 1200000 1225000 1250000 1275000 1300000 1325000 1350000 1375000 1400000>;
78 rockchip,pwm_voltage= <1000000>;
79 rockchip,pwm_min_voltage= <925000>;
80 rockchip,pwm_max_voltage= <1400000>;
81 rockchip,pwm_suspend_voltage= <950000>;
82 rockchip,pwm_coefficient= <475>;
86 pwm_reg0: regulator@0 {
87 regulator-compatible = "pwm_dcdc1";
88 regulator-name= "vdd_logic";
89 regulator-min-microvolt = <925000>;
90 regulator-max-microvolt = <1400000>;
97 codec_hdmi_i2s: codec-hdmi-i2s {
98 compatible = "hdmi-i2s";
101 codec_hdmi_spdif: codec-hdmi-spdif {
102 compatible = "hdmi-spdif";
106 compatible = "rockchip-hdmi-i2s";
109 audio-codec = <&codec_hdmi_i2s>;
110 i2s-controller = <&i2s>;
113 //bitclock-inversion;
121 rockchip-hdmi-spdif {
122 compatible = "rockchip-hdmi-spdif";
125 audio-codec = <&codec_hdmi_spdif>;
126 i2s-controller = <&spdif>;
132 compatible = "rockchip-rt5631";
135 audio-codec = <&rt5631>;
136 i2s-controller = <&i2s>;
139 //bitclock-inversion;
148 compatible = "rockchip,rk3288-usb-control";
150 otg_drv_gpio = <&gpio0 GPIO_B4 GPIO_ACTIVE_LOW>;
152 rockchip,remote_wakeup;
153 rockchip,usb_irq_wakeup;
159 rockchip,pins = <GPIO0_C2>;
160 rockchip,pull = <VALUE_PULL_DOWN>;
168 rockchip,pins = <GPIO7_B7>;
169 rockchip,pull = <VALUE_PULL_UP>;
174 //could add other pinctrl definition such as gpio
179 clock-frequency = <150000000>;
180 clock-freq-min-max = <400000 150000000>;
190 keep-power-in-suspend;
195 clock-frequency = <50000000>;
196 lock-freq-min-max = <400000 50000000>;
201 card-detect-delay = <200>;
204 keep-power-in-suspend;
206 vmmc-supply = <&rk808_ldo5_reg>;
211 clock-frequency = <50000000>;
212 clock-freq-min-max = <200000 50000000>;
217 keep-power-in-suspend;
224 max-freq = <48000000>;
227 compatible = "rockchip,spi_test_bus0_cs0";
229 spi-max-frequency = <24000000>;
239 compatible = "rockchip,spi_test_bus0_cs1";
241 spi-max-frequency = <24000000>;
253 max-freq = <48000000>;
256 compatible = "rockchip,spi_test_bus1_cs0";
258 spi-max-frequency = <24000000>;
271 max-freq = <48000000>;
274 compatible = "rockchip,spi_test_bus2_cs0";
276 spi-max-frequency = <24000000>;
285 compatible = "rockchip,spi_test_bus2_cs1";
287 spi-max-frequency = <24000000>;
298 dma-names = "!tx", "!rx";
299 pinctrl-0 = <&uart0_xfer &uart0_cts>;
309 compatible = "silergy,syr82x";
313 #address-cells = <1>;
315 syr827_dc1: regulator@0 {
317 regulator-compatible = "syr82x_dcdc1";
318 regulator-name = "vdd_arm";
319 regulator-min-microvolt = <712500>;
320 regulator-max-microvolt = <1500000>;
323 regulator-initial-mode = <0x2>;
324 regulator-initial-state = <3>;
325 regulator-state-mem {
326 regulator-state-mode = <0x2>;
327 regulator-state-disabled;
328 regulator-state-uv = <900000>;
334 compatible = "silergy,syr82x";
338 #address-cells = <1>;
340 syr828_dc1: regulator@0 {
342 regulator-compatible = "syr82x_dcdc1";
343 regulator-name = "vdd_gpu";
344 regulator-min-microvolt = <712500>;
345 regulator-max-microvolt = <1500000>;
348 regulator-initial-mode = <0x2>;
349 regulator-initial-state = <3>;
350 regulator-state-mem {
351 regulator-state-mode = <0x2>;
352 regulator-state-enabled;
353 regulator-state-uv = <900000>;
358 act8846: act8846@5a {
367 compatible = "cw201x";
369 dc_det_gpio = <&gpio0 GPIO_B0 GPIO_ACTIVE_LOW>;
370 bat_low_gpio = <&gpio0 GPIO_A7 GPIO_ACTIVE_LOW>;
371 chg_ok_gpio = <&gpio0 GPIO_B1 GPIO_ACTIVE_HIGH>;
372 bat_config_info = <0x15 0x2A 0x58 0x57 0x51 0x5F 0x4C 0x45 0x47 0x45 0x48 0x4C 0x47 0x36
373 0x2B 0x24 0x1E 0x16 0x16 0x17 0x1D 0x28 0x3B 0x4B 0x46 0x23 0x0D 0x71
374 0x41 0x62 0x5F 0x6E 0x6F 0x6F 0x6E 0x72 0x41 0x1B 0x30 0x22 0x01 0x21
375 0x52 0x87 0x8F 0x91 0x94 0x52 0x82 0x8C 0x92 0x96 0x12 0x70 0x8F 0xCB
376 0x2F 0x7D 0x72 0xA5 0xB5 0xC1 0x1F 0x21>;
382 compatible = "rtc,hym8563";
384 irq_gpio = <&gpio0 GPIO_A4 GPIO_ACTIVE_LOW>;
392 compatible = "nxp,pcf8563";
397 compatible = "gs_mma8452";
399 type = <SENSOR_TYPE_ACCEL>;
400 irq-gpio = <&gpio8 GPIO_A0 IRQ_TYPE_LEVEL_LOW>;
402 poll_delay_ms = <30>;
407 compatible = "ak8975";
409 type = <SENSOR_TYPE_COMPASS>;
410 irq-gpio = <&gpio8 GPIO_A1 IRQ_TYPE_EDGE_RISING>;
412 poll_delay_ms = <30>;
417 compatible = "ls_cm3218";
419 type = <SENSOR_TYPE_LIGHT>;
420 irq-gpio = <&gpio8 GPIO_A3 IRQ_TYPE_EDGE_FALLING>;
422 poll_delay_ms = <30>;
427 compatible = "mpu6050";
429 mpu-int_config = <0x10>;
430 mpu-level_shifter = <0>;
431 mpu-orientation = <1 0 0 0 1 0 0 0 1>;
435 irq-gpio = <&gpio8 GPIO_A0 IRQ_TYPE_LEVEL_LOW>;
440 compatible = "ak8963";
443 compass-adapt_num = <0>;
444 compass-orientation = <1 0 0 0 1 0 0 0 1>;
453 compatible = "ak8975";
456 compass-adapt_num = <0>;
457 compass-orientation = <0 1 0 1 0 0 0 0 1>;
470 compatible = "rt5631";
472 phone_det_level = <1>;
484 compatible = "ct,vtl_ts";
486 screen_max_x = <2048>;
487 screen_max_y = <1536>;
488 irq_gpio_number = <&gpio7 GPIO_A6 IRQ_TYPE_LEVEL_LOW>;
489 rst_gpio_number = <&gpio7 GPIO_A5 GPIO_ACTIVE_HIGH>;
498 rockchip,disp-mode = <DUAL>;
502 display-timings = <&disp_timings>;
505 /*lcdc1 as PRMRY(LCD),lcdc0 as EXTEND(HDMI)*/
508 power_ctr: power_ctr {
509 rockchip,debug = <0>;
510 rockchip,mirror = <NO_MIRROR>;
513 rockchip,power_type = <GPIO>;
514 gpios = <&gpio7 GPIO_A3 GPIO_ACTIVE_HIGH>;
515 rockchip,delay = <10>;
519 rockchip,power_type = <REGULATOR>;
520 rockchip,delay = <10>;
524 rockchip,power_type = <GPIO>;
525 gpios = <&gpio3 GPIO_D6 GPIO_ACTIVE_HIGH>;
526 rockchip,delay = <5>;
538 rockchips,hdmi_audio_source = <0>;
546 compatible = "rockchip,key";
547 io-channels = <&adc 1>;
552 rockchip,adc_value = <1>;
557 label = "volume down";
558 rockchip,adc_value = <170>;
562 gpios = <&gpio0 GPIO_A5 GPIO_ACTIVE_LOW>;
571 rockchip,adc_value = <355>;
577 rockchip,adc_value = <746>;
583 rockchip,adc_value = <560>;
589 rockchip,adc_value = <450>;
603 &clk_core_dvfs_table {
624 &clk_gpu_dvfs_table {
637 &clk_ddr_dvfs_table {
648 SYS_STATUS_NORMAL 400000
649 SYS_STATUS_SUSPEND 200000
650 SYS_STATUS_VIDEO_1080P 240000
651 SYS_STATUS_VIDEO_4K 400000
652 SYS_STATUS_PERFORMANCE 528000
653 SYS_STATUS_DUALVIEW 400000
654 SYS_STATUS_BOOST 324000
655 SYS_STATUS_ISP 400000
666 /include/ "act8846.dtsi"
668 gpios =<&gpio7 GPIO_A1 GPIO_ACTIVE_LOW>,<&gpio0 GPIO_B2 GPIO_ACTIVE_HIGH>;
672 dcdc1_reg: regulator@0{
673 regulator-name= "act_dcdc1";
674 regulator-min-microvolt = <1200000>;
675 regulator-max-microvolt = <1200000>;
680 dcdc2_reg: regulator@1 {
681 regulator-name= "vccio";
682 regulator-min-microvolt = <3300000>;
683 regulator-max-microvolt = <3300000>;
684 regulator-initial-state = <3>;
685 regulator-state-mem {
686 regulator-state-enabled;
687 regulator-state-uv = <3300000>;
691 dcdc3_reg: regulator@2 {
692 regulator-name= "vdd_logic";
693 regulator-min-microvolt = <700000>;
694 regulator-max-microvolt = <1500000>;
695 regulator-initial-state = <3>;
696 regulator-state-mem {
697 regulator-state-enabled;
698 regulator-state-uv = <1000000>;
703 dcdc4_reg: regulator@3 {
704 regulator-name= "act_dcdc4";
705 regulator-min-microvolt = <2000000>;
706 regulator-max-microvolt = <2000000>;
707 regulator-initial-state = <3>;
708 regulator-state-mem {
709 regulator-state-enabled;
710 regulator-state-uv = <2000000>;
714 ldo1_reg: regulator@4 {
715 regulator-name= "vccio_sd";
716 regulator-min-microvolt = <3300000>;
717 regulator-max-microvolt = <3300000>;
721 ldo2_reg: regulator@5 {
722 regulator-name= "act_ldo2";
723 regulator-min-microvolt = <1000000>;
724 regulator-max-microvolt = <1000000>;
728 ldo3_reg: regulator@6 {
729 regulator-name= "act_ldo3";
730 regulator-min-microvolt = <3300000>;
731 regulator-max-microvolt = <3300000>;
735 ldo4_reg:regulator@7 {
736 regulator-name= "act_ldo4";
737 regulator-min-microvolt = <3300000>;
738 regulator-max-microvolt = <3300000>;
742 ldo5_reg: regulator@8 {
743 regulator-name= "act_ldo5";
744 regulator-min-microvolt = <3300000>;
745 regulator-max-microvolt = <3300000>;
749 ldo6_reg: regulator@9 {
750 regulator-name= "act_ldo6";
751 regulator-min-microvolt = <1000000>;
752 regulator-max-microvolt = <1000000>;
753 regulator-initial-state = <3>;
754 regulator-state-mem {
755 regulator-state-enabled;
760 ldo7_reg: regulator@10 {
761 regulator-name= "vcc_18";
762 regulator-min-microvolt = <1800000>;
763 regulator-max-microvolt = <1800000>;
764 regulator-initial-state = <3>;
765 regulator-state-mem {
766 regulator-state-enabled;
771 ldo8_reg: regulator@11 {
772 regulator-name= "act_ldo8";
773 regulator-min-microvolt = <1800000>;
774 regulator-max-microvolt = <1800000>;
780 /include/ "rk808.dtsi"
782 gpios =<&gpio0 GPIO_A4 GPIO_ACTIVE_HIGH>,<&gpio0 GPIO_A0 GPIO_ACTIVE_LOW>;
783 rk808,system-power-controller;
787 rk808_dcdc1_reg: regulator@0{
788 regulator-name= "vdd_arm";
793 rk808_dcdc2_reg: regulator@1 {
794 regulator-name= "vdd_gpu";
799 rk808_dcdc3_reg: regulator@2 {
800 regulator-name= "rk_dcdc3";
801 regulator-min-microvolt = <1200000>;
802 regulator-max-microvolt = <1200000>;
807 rk808_dcdc4_reg: regulator@3 {
808 regulator-name= "vccio";
809 regulator-min-microvolt = <1800000>;
810 regulator-max-microvolt = <3300000>;
815 rk808_ldo1_reg: regulator@4 {
816 regulator-name= "rk_ldo1";
817 regulator-min-microvolt = <3300000>;
818 regulator-max-microvolt = <3300000>;
823 rk808_ldo2_reg: regulator@5 {
824 regulator-name= "rk_ldo2";
825 regulator-min-microvolt = <3300000>;
826 regulator-max-microvolt = <3300000>;
831 rk808_ldo3_reg: regulator@6 {
832 regulator-name= "rk_ldo3";
833 regulator-min-microvolt = <1000000>;
834 regulator-max-microvolt = <1000000>;
839 rk808_ldo4_reg:regulator@7 {
840 regulator-name= "rk_ldo4";
841 regulator-min-microvolt = <1800000>;
842 regulator-max-microvolt = <1800000>;
847 rk808_ldo5_reg: regulator@8 {
848 regulator-name= "vcc_sd";
849 regulator-min-microvolt = <1800000>;
850 regulator-max-microvolt = <3300000>;
855 rk808_ldo6_reg: regulator@9 {
856 regulator-name= "rk_ldo6";
857 regulator-min-microvolt = <1000000>;
858 regulator-max-microvolt = <1000000>;
863 rk808_ldo7_reg: regulator@10 {
864 regulator-name= "rk_ldo7";
865 regulator-min-microvolt = <1800000>;
866 regulator-max-microvolt = <1800000>;
871 rk808_ldo8_reg: regulator@11 {
872 regulator-name= "rk_ldo8";
873 regulator-min-microvolt = <3300000>;
874 regulator-max-microvolt = <3300000>;
879 rk808_ldo9_reg: regulator@12 {
880 regulator-name= "rk_ldo9";
885 rk808_ldo10_reg: regulator@13 {
886 regulator-name= "rk_ldo10";
894 regulator-name = "vcc30_lcd";
897 regulator-name = "vcc18_cif";
900 regulator-name = "vcc_flash";
903 regulator-name = "vcc_flash";
906 regulator-name = "vccio_wl";
909 regulator-name = "vccio";
912 regulator-name = "vccio";
915 regulator-name = "vccio";
918 regulator-name = "vccio";
921 regulator-name = "vcc_sd";