4 #include "lcd-b101ew05.dtsi"
5 #include "linux_logo.dtsi"
12 compatible = "wlan-platdata";
15 sdio_vref = <1800>; //1800mv or 3300mv
18 pmu_regulator = "act_ldo3";
19 pmu_enable_level = <1>; //1->HIGH, 0->LOW
21 WIFI,poweren_gpio = <&gpio4 GPIO_D4 GPIO_ACTIVE_HIGH>;
22 WIFI,host_wake_irq = <&gpio4 GPIO_D6 GPIO_ACTIVE_HIGH>;
23 //WIFI,reset_gpio = <&gpio0 GPIO_A2 GPIO_ACTIVE_LOW>;
29 compatible = "bluetooth-platdata";
31 uart_rts_gpios = <&gpio4 GPIO_C3 GPIO_ACTIVE_LOW>;
32 pinctrl-names = "default","rts_gpio";
33 pinctrl-0 = <&uart0_rts>;
34 pinctrl-1 = <&uart0_rts_gpio>;
36 BT,power_gpio = <&gpio4 GPIO_D3 GPIO_ACTIVE_HIGH>;
37 BT,reset_gpio = <&gpio4 GPIO_D5 GPIO_ACTIVE_HIGH>;
38 BT,wake_gpio = <&gpio4 GPIO_D2 GPIO_ACTIVE_HIGH>;
39 BT,wake_host_irq = <&gpio4 GPIO_D7 GPIO_ACTIVE_LOW>;
45 compatible = "hall_och165t";
46 type = <SENSOR_TYPE_HALL>;
47 irq-gpio = <&gpio0 GPIO_A6 IRQ_TYPE_EDGE_BOTH>;
51 compatible = "pwm-backlight";
52 pwms = <&pwm0 0 25000>;
53 brightness-levels = <0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255>;
54 default-brightness-level = <128>;
55 enable-gpios = <&gpio7 GPIO_A2 GPIO_ACTIVE_HIGH>;
59 compatible = "rockchip_pwm_regulator";
60 pwms = <&pwm1 0 25000>;
62 rockchip,pwm_voltage_map= <925000 950000 975000 1000000 1025000 1050000 1075000 1100000 1125000 1150000 1175000 1200000 1225000 1250000 1275000 1300000 1325000 1350000 1375000 1400000>;
63 rockchip,pwm_voltage= <1000000>;
64 rockchip,pwm_min_voltage= <925000>;
65 rockchip,pwm_max_voltage= <1400000>;
66 rockchip,pwm_suspend_voltage= <950000>;
67 rockchip,pwm_coefficient= <475>;
71 pwm_reg0: regulator@0 {
72 regulator-compatible = "pwm_dcdc1";
73 regulator-name= "vdd_logic";
74 regulator-min-microvolt = <925000>;
75 regulator-max-microvolt = <1400000>;
82 codec_hdmi_i2s: codec-hdmi-i2s {
83 compatible = "hdmi-i2s";
86 codec_hdmi_spdif: codec-hdmi-spdif {
87 compatible = "hdmi-spdif";
91 compatible = "rockchip-hdmi-i2s";
94 audio-codec = <&codec_hdmi_i2s>;
95 i2s-controller = <&i2s>;
106 rockchip-hdmi-spdif {
107 compatible = "rockchip-hdmi-spdif";
110 audio-codec = <&codec_hdmi_spdif>;
111 i2s-controller = <&spdif>;
117 compatible = "rockchip-rt5631";
120 audio-codec = <&rt5631>;
121 i2s-controller = <&i2s>;
124 //bitclock-inversion;
133 compatible = "rockchip-rt3261";
136 audio-codec = <&rt3261>;
137 i2s-controller = <&i2s>;
140 //bitclock-inversion;
146 audio-codec = <&rt3261>;
147 i2s-controller = <&i2s>;
161 // power_ctl_by = "gpio"; //"gpio" "pmu"
162 power-gpio = <&gpio0 GPIO_A6 GPIO_ACTIVE_HIGH>;
163 // power-pmu = "act_ldo"
164 reset-gpio = <&gpio4 GPIO_A7 GPIO_ACTIVE_LOW>;
170 rockchip,pins = <GPIO0_C2>;
171 rockchip,pull = <VALUE_PULL_DOWN>;
179 rockchip,pins = <GPIO7_B7>;
180 rockchip,pull = <VALUE_PULL_UP>;
185 //could add other pinctrl definition such as gpio
190 clock-frequency = <200000000>;
191 clock-freq-min-max = <400000 200000000>;
196 keep-power-in-suspend;
201 clock-frequency = <50000000>;
202 lock-freq-min-max = <400000 50000000>;
206 card-detect-delay = <200>;
207 vmmc-supply = <&rk808_ldo5_reg>;
212 clock-frequency = <50000000>;
213 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>;
299 dma-names = "!tx", "!rx";
300 pinctrl-0 = <&uart0_xfer &uart0_cts>;
310 bq24296: bq24296@6b {
311 compatible = "ti,bq24296";
313 gpios = <&gpio0 GPIO_A7 GPIO_ACTIVE_HIGH>,<&gpio0 GPIO_B0 GPIO_ACTIVE_HIGH>;
314 bq24296,chg_current = <1000 2000 3000>;
317 bq27320: bq27320@55 {
318 compatible = "ti,bq27320";
320 /* gpios = <&gpio0 GPIO_A7 GPIO_ACTIVE_HIGH>; */
325 compatible = "cw201x";
327 dc_det_gpio = <&gpio0 GPIO_B0 GPIO_ACTIVE_LOW>;
328 bat_low_gpio = <&gpio0 GPIO_A7 GPIO_ACTIVE_LOW>;
329 chg_ok_gpio = <&gpio0 GPIO_B1 GPIO_ACTIVE_HIGH>;
330 bat_config_info = <0x15 0x42 0x60 0x59 0x52 0x58 0x4D 0x48 0x48 0x44 0x44 0x46 0x49 0x48 0x32
331 0x24 0x20 0x17 0x13 0x0F 0x19 0x3E 0x51 0x45 0x08 0x76 0x0B 0x85 0x0E 0x1C 0x2E 0x3E 0x4D 0x52 0x52
332 0x57 0x3D 0x1B 0x6A 0x2D 0x25 0x43 0x52 0x87 0x8F 0x91 0x94 0x52 0x82 0x8C 0x92 0x96 0xFF 0x7B 0xBB
333 0xCB 0x2F 0x7D 0x72 0xA5 0xB5 0xC1 0x46 0xAE>;
342 compatible = "nxp,pcf8563";
347 compatible = "gs_mma8452";
349 type = <SENSOR_TYPE_ACCEL>;
350 irq-gpio = <&gpio8 GPIO_A0 IRQ_TYPE_EDGE_FALLING>;
352 poll_delay_ms = <30>;
356 compatible = "gs_lis3dh";
358 type = <SENSOR_TYPE_ACCEL>;
359 irq-gpio = <&gpio0 GPIO_A0 IRQ_TYPE_LEVEL_LOW>;
361 poll_delay_ms = <30>;
365 compatible = "ak8963";
367 type = <SENSOR_TYPE_COMPASS>;
368 irq-gpio = <&gpio8 GPIO_A2 IRQ_TYPE_EDGE_RISING>;
370 poll_delay_ms = <30>;
375 compatible = "l3g20d_gyro";
377 type = <SENSOR_TYPE_GYROSCOPE>;
378 irq-gpio = <&gpio8 GPIO_A3 IRQ_TYPE_LEVEL_LOW>;
380 poll_delay_ms = <30>;
384 compatible = "ls_cm3218";
386 type = <SENSOR_TYPE_LIGHT>;
387 irq-gpio = <&gpio8 GPIO_A3 IRQ_TYPE_EDGE_FALLING>;
389 poll_delay_ms = <30>;
398 compatible = "rt5631";
402 compatible = "es8323";
406 compatible = "rt3261";
408 // codec-en-gpio = <0>;//sdk default high level
410 modem-input-mode = <1>;
411 lout-to-modem_mode = <1>;
413 playback-if1-data_control = <0>;
414 playback-if2-data_control = <0>;
417 compatible = "rt5616";
429 compatible = "goodix,gt8xx";
431 touch-gpio = <&gpio7 GPIO_A6 IRQ_TYPE_LEVEL_LOW>;
432 reset-gpio = <&gpio7 GPIO_A5 GPIO_ACTIVE_LOW>;
433 //power-gpio = <&gpio0 GPIO_C5 GPIO_ACTIVE_LOW>;
439 compatible = "ct,ct36x";
442 touch-gpio = <&gpio7 GPIO_A6 IRQ_TYPE_LEVEL_LOW>;
443 reset-gpio = <&gpio7 GPIO_A5 GPIO_ACTIVE_HIGH>;
446 orientation=<1 0 0 1>;
455 rockchip,disp-mode = <DUAL>;
459 display-timings = <&disp_timings>;
462 /*lcdc1 as PRMRY(LCD),lcdc0 as EXTEND(HDMI)*/
465 power_ctr: power_ctr {
466 rockchip,debug = <0>;
467 rockchip,mirror = <NO_MIRROR>;
469 rockchip,power_type = <GPIO>;
470 gpios = <&gpio7 GPIO_A3 GPIO_ACTIVE_HIGH>;
471 rockchip,delay = <10>;
475 rockchip,power_type = <GPIO>;
476 gpios = <&gpio7 GPIO_A4 GPIO_ACTIVE_HIGH>;
477 rockchip,delay = <10>;
481 rockchip,power_type = <GPIO>;
482 gpios = <&gpio3 GPIO_D6 GPIO_ACTIVE_HIGH>;
483 rockchip,delay = <5>;
495 rockchips,hdmi_audio_source = <0>;
502 compatible = "rockchip_headset";
503 headset_gpio = <&gpio0 GPIO_C2 GPIO_ACTIVE_LOW>;
504 pinctrl-names = "default";
505 pinctrl-0 = <&gpio0_c2>;
506 io-channels = <&adc 2>;
509 hook_down_type = ; //interrupt hook key down status
514 compatible = "rockchip,key";
515 io-channels = <&adc 1>;
520 rockchip,adc_value = <1>;
525 label = "volume down";
526 rockchip,adc_value = <170>;
530 gpios = <&gpio0 GPIO_A5 GPIO_ACTIVE_LOW>;
539 rockchip,adc_value = <355>;
545 rockchip,adc_value = <746>;
551 rockchip,adc_value = <560>;
557 rockchip,adc_value = <450>;
571 &clk_core_dvfs_table {
588 &clk_gpu_dvfs_table {
601 &clk_ddr_dvfs_table {
612 SYS_STATUS_NORMAL 400000
613 SYS_STATUS_SUSPEND 200000
614 SYS_STATUS_VIDEO 300000
615 SYS_STATUS_DUALVIEW 500000
620 /include/ "rk808.dtsi"
622 gpios =<&gpio0 GPIO_A4 GPIO_ACTIVE_HIGH>,<&gpio0 GPIO_B3 GPIO_ACTIVE_LOW>;
623 rk808,system-power-controller;
627 rk808_dcdc1_reg: regulator@0{
628 regulator-name= "vdd_arm";
633 rk808_dcdc2_reg: regulator@1 {
634 regulator-name= "vdd_gpu";
639 rk808_dcdc3_reg: regulator@2 {
640 regulator-name= "rk_dcdc3";
641 regulator-min-microvolt = <1200000>;
642 regulator-max-microvolt = <1200000>;
647 rk808_dcdc4_reg: regulator@3 {
648 regulator-name= "vccio";
649 regulator-min-microvolt = <1800000>;
650 regulator-max-microvolt = <3300000>;
655 rk808_ldo1_reg: regulator@4 {
656 regulator-name= "rk_ldo1";
657 regulator-min-microvolt = <3300000>;
658 regulator-max-microvolt = <3300000>;
663 rk808_ldo2_reg: regulator@5 {
664 regulator-name= "rk_ldo2";
665 regulator-min-microvolt = <3300000>;
666 regulator-max-microvolt = <3300000>;
671 rk808_ldo3_reg: regulator@6 {
672 regulator-name= "rk_ldo3";
673 regulator-min-microvolt = <1000000>;
674 regulator-max-microvolt = <1000000>;
679 rk808_ldo4_reg:regulator@7 {
680 regulator-name= "rk_ldo4";
681 regulator-min-microvolt = <1800000>;
682 regulator-max-microvolt = <1800000>;
687 rk808_ldo5_reg: regulator@8 {
688 regulator-name= "vcc_sd";
689 regulator-min-microvolt = <1800000>;
690 regulator-max-microvolt = <3300000>;
695 rk808_ldo6_reg: regulator@9 {
696 regulator-name= "rk_ldo6";
697 regulator-min-microvolt = <1000000>;
698 regulator-max-microvolt = <1000000>;
703 rk808_ldo7_reg: regulator@10 {
704 regulator-name= "rk_ldo7";
705 regulator-min-microvolt = <1800000>;
706 regulator-max-microvolt = <1800000>;
711 rk808_ldo8_reg: regulator@11 {
712 regulator-name= "rk_ldo8";
713 regulator-min-microvolt = <3300000>;
714 regulator-max-microvolt = <3300000>;
719 rk808_ldo9_reg: regulator@12 {
720 regulator-name= "rk_ldo9";
725 rk808_ldo10_reg: regulator@13 {
726 regulator-name= "rk_ldo10";
734 regulator-name = "vcc30_lcd";
737 regulator-name = "vcc18_cif";
740 regulator-name = "vcc_flash";
743 regulator-name = "vcc_flash";
746 regulator-name = "vccio_wl";
749 regulator-name = "vccio";
752 regulator-name = "vccio";
755 regulator-name = "vccio";
758 regulator-name = "vccio";
761 regulator-name = "vcc_sd";