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 = <200000000>;
180 clock-freq-min-max = <400000 200000000>;
190 keep-power-in-suspend;
195 clock-frequency = <50000000>;
196 lock-freq-min-max = <400000 50000000>;
201 card-detect-delay = <200>;
204 vmmc-supply = <&rk808_ldo5_reg>;
209 clock-frequency = <50000000>;
210 clock-freq-min-max = <200000 50000000>;
215 keep-power-in-suspend;
222 max-freq = <48000000>;
225 compatible = "rockchip,spi_test_bus0_cs0";
227 spi-max-frequency = <24000000>;
237 compatible = "rockchip,spi_test_bus0_cs1";
239 spi-max-frequency = <24000000>;
251 max-freq = <48000000>;
254 compatible = "rockchip,spi_test_bus1_cs0";
256 spi-max-frequency = <24000000>;
269 max-freq = <48000000>;
272 compatible = "rockchip,spi_test_bus2_cs0";
274 spi-max-frequency = <24000000>;
283 compatible = "rockchip,spi_test_bus2_cs1";
285 spi-max-frequency = <24000000>;
296 dma-names = "!tx", "!rx";
297 pinctrl-0 = <&uart0_xfer &uart0_cts>;
310 compatible = "cw201x";
312 dc_det_gpio = <&gpio0 GPIO_B0 GPIO_ACTIVE_LOW>;
313 bat_low_gpio = <&gpio0 GPIO_A7 GPIO_ACTIVE_LOW>;
314 chg_ok_gpio = <&gpio0 GPIO_B1 GPIO_ACTIVE_HIGH>;
315 bat_config_info = <0x15 0x2A 0x58 0x57 0x51 0x5F 0x4C 0x45 0x47 0x45 0x48 0x4C 0x47 0x36
316 0x2B 0x24 0x1E 0x16 0x16 0x17 0x1D 0x28 0x3B 0x4B 0x46 0x23 0x0D 0x71
317 0x41 0x62 0x5F 0x6E 0x6F 0x6F 0x6E 0x72 0x41 0x1B 0x30 0x22 0x01 0x21
318 0x52 0x87 0x8F 0x91 0x94 0x52 0x82 0x8C 0x92 0x96 0x12 0x70 0x8F 0xCB
319 0x2F 0x7D 0x72 0xA5 0xB5 0xC1 0x1F 0x21>;
328 compatible = "nxp,pcf8563";
333 compatible = "gs_mma8452";
335 type = <SENSOR_TYPE_ACCEL>;
336 irq-gpio = <&gpio8 GPIO_A0 IRQ_TYPE_LEVEL_LOW>;
338 poll_delay_ms = <30>;
343 compatible = "ak8975";
345 type = <SENSOR_TYPE_COMPASS>;
346 irq-gpio = <&gpio8 GPIO_A1 IRQ_TYPE_EDGE_RISING>;
348 poll_delay_ms = <30>;
353 compatible = "ls_cm3218";
355 type = <SENSOR_TYPE_LIGHT>;
356 irq-gpio = <&gpio8 GPIO_A3 IRQ_TYPE_EDGE_FALLING>;
358 poll_delay_ms = <30>;
363 compatible = "mpu6050";
365 mpu-int_config = <0x10>;
366 mpu-level_shifter = <0>;
367 mpu-orientation = <1 0 0 0 1 0 0 0 1>;
371 irq-gpio = <&gpio8 GPIO_A0 IRQ_TYPE_LEVEL_LOW>;
376 compatible = "ak8963";
379 compass-adapt_num = <0>;
380 compass-orientation = <1 0 0 0 1 0 0 0 1>;
389 compatible = "ak8975";
392 compass-adapt_num = <0>;
393 compass-orientation = <0 1 0 1 0 0 0 0 1>;
406 compatible = "rt5631";
408 phone_det_level = <1>;
421 compatible = "ct,ct36x";
424 touch-gpio = <&gpio7 GPIO_A6 IRQ_TYPE_LEVEL_LOW>;
425 reset-gpio = <&gpio7 GPIO_A5 GPIO_ACTIVE_HIGH>;
428 orientation=<1 0 0 1>;
437 rockchip,disp-mode = <DUAL>;
441 display-timings = <&disp_timings>;
444 /*lcdc1 as PRMRY(LCD),lcdc0 as EXTEND(HDMI)*/
447 power_ctr: power_ctr {
448 rockchip,debug = <0>;
449 rockchip,mirror = <NO_MIRROR>;
452 rockchip,power_type = <GPIO>;
453 gpios = <&gpio7 GPIO_A3 GPIO_ACTIVE_HIGH>;
454 rockchip,delay = <10>;
458 rockchip,power_type = <REGULATOR>;
459 rockchip,delay = <10>;
463 rockchip,power_type = <GPIO>;
464 gpios = <&gpio3 GPIO_D6 GPIO_ACTIVE_HIGH>;
465 rockchip,delay = <5>;
477 rockchips,hdmi_audio_source = <0>;
485 compatible = "rockchip,key";
486 io-channels = <&adc 1>;
491 rockchip,adc_value = <1>;
496 label = "volume down";
497 rockchip,adc_value = <170>;
501 gpios = <&gpio0 GPIO_A5 GPIO_ACTIVE_LOW>;
510 rockchip,adc_value = <355>;
516 rockchip,adc_value = <746>;
522 rockchip,adc_value = <560>;
528 rockchip,adc_value = <450>;
542 &clk_core_dvfs_table {
563 &clk_gpu_dvfs_table {
576 &clk_ddr_dvfs_table {
587 SYS_STATUS_NORMAL 400000
588 SYS_STATUS_SUSPEND 200000
589 SYS_STATUS_VIDEO 300000
590 SYS_STATUS_DUALVIEW 500000
596 /include/ "rk808.dtsi"
598 gpios =<&gpio0 GPIO_A4 GPIO_ACTIVE_HIGH>,<&gpio0 GPIO_A0 GPIO_ACTIVE_LOW>;
599 rk808,system-power-controller;
603 rk808_dcdc1_reg: regulator@0{
604 regulator-name= "vdd_arm";
609 rk808_dcdc2_reg: regulator@1 {
610 regulator-name= "vdd_gpu";
615 rk808_dcdc3_reg: regulator@2 {
616 regulator-name= "rk_dcdc3";
617 regulator-min-microvolt = <1200000>;
618 regulator-max-microvolt = <1200000>;
623 rk808_dcdc4_reg: regulator@3 {
624 regulator-name= "vccio";
625 regulator-min-microvolt = <1800000>;
626 regulator-max-microvolt = <3300000>;
631 rk808_ldo1_reg: regulator@4 {
632 regulator-name= "rk_ldo1";
633 regulator-min-microvolt = <3300000>;
634 regulator-max-microvolt = <3300000>;
639 rk808_ldo2_reg: regulator@5 {
640 regulator-name= "rk_ldo2";
641 regulator-min-microvolt = <3300000>;
642 regulator-max-microvolt = <3300000>;
647 rk808_ldo3_reg: regulator@6 {
648 regulator-name= "rk_ldo3";
649 regulator-min-microvolt = <1000000>;
650 regulator-max-microvolt = <1000000>;
655 rk808_ldo4_reg:regulator@7 {
656 regulator-name= "rk_ldo4";
657 regulator-min-microvolt = <1800000>;
658 regulator-max-microvolt = <1800000>;
663 rk808_ldo5_reg: regulator@8 {
664 regulator-name= "vcc_sd";
665 regulator-min-microvolt = <1800000>;
666 regulator-max-microvolt = <3300000>;
671 rk808_ldo6_reg: regulator@9 {
672 regulator-name= "rk_ldo6";
673 regulator-min-microvolt = <1000000>;
674 regulator-max-microvolt = <1000000>;
679 rk808_ldo7_reg: regulator@10 {
680 regulator-name= "rk_ldo7";
681 regulator-min-microvolt = <1800000>;
682 regulator-max-microvolt = <1800000>;
687 rk808_ldo8_reg: regulator@11 {
688 regulator-name= "rk_ldo8";
689 regulator-min-microvolt = <3300000>;
690 regulator-max-microvolt = <3300000>;
695 rk808_ldo9_reg: regulator@12 {
696 regulator-name= "rk_ldo9";
701 rk808_ldo10_reg: regulator@13 {
702 regulator-name= "rk_ldo10";
710 regulator-name = "vcc30_lcd";
713 regulator-name = "vcc18_cif";
716 regulator-name = "vcc_flash";
719 regulator-name = "vcc_flash";
722 regulator-name = "vccio_wl";
725 regulator-name = "vccio";
728 regulator-name = "vccio";
731 regulator-name = "vccio";
734 regulator-name = "vccio";
737 regulator-name = "vcc_sd";