4 #include "lcd-vga.dtsi"
12 compatible = "wlan-platdata";
14 /* wifi_chip_type - wifi chip define
15 * bcmwifi ==> like ap6xxx, rk90x;
16 * rtkwifi ==> like rtl8188xx, rtl8723xx;
17 * esp8089 ==> esp8089;
18 * other ==> for other wifi;
20 wifi_chip_type = "bcmwifi";
22 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 = "pwm-backlight";
62 pwms = <&pwm0 0 25000>;
63 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>;
64 default-brightness-level = <128>;
65 enable-gpios = <&gpio7 GPIO_A2 GPIO_ACTIVE_HIGH>;
69 compatible = "rockchip_pwm_regulator";
70 pwms = <&pwm1 0 2000>;
72 rockchip,pwm_voltage_map= <925000 950000 975000 1000000 1025000 1050000 1075000 1100000 1125000 1150000 1175000 1200000 1225000 1250000 1275000 1300000 1325000 1350000 1375000 1400000>;
73 rockchip,pwm_voltage= <1000000>;
74 rockchip,pwm_min_voltage= <925000>;
75 rockchip,pwm_max_voltage= <1400000>;
76 rockchip,pwm_suspend_voltage= <950000>;
77 rockchip,pwm_coefficient= <475>;
81 pwm_reg0: regulator@0 {
82 regulator-compatible = "pwm_dcdc1";
83 regulator-name= "vdd_logic";
84 regulator-min-microvolt = <925000>;
85 regulator-max-microvolt = <1400000>;
92 codec_hdmi_i2s: codec-hdmi-i2s {
93 compatible = "hdmi-i2s";
96 codec_hdmi_spdif: codec-hdmi-spdif {
97 compatible = "hdmi-spdif";
101 compatible = "rockchip-hdmi-i2s";
104 audio-codec = <&codec_hdmi_i2s>;
105 audio-controller = <&i2s>;
108 //bitclock-inversion;
116 rockchip-hdmi-spdif {
117 compatible = "rockchip-hdmi-spdif";
120 audio-codec = <&codec_hdmi_spdif>;
121 audio-controller = <&spdif>;
127 compatible = "rockchip-wm8960";
130 audio-codec = <&wm8960>;
131 i2s-controller = <&i2s>;
134 //bitclock-inversion;
143 compatible = "rockchip,rk3288-usb-control";
145 host_drv_gpio = <&gpio0 GPIO_B6 GPIO_ACTIVE_LOW>;
146 otg_drv_gpio = <&gpio0 GPIO_B4 GPIO_ACTIVE_LOW>;
148 rockchip,remote_wakeup;
149 rockchip,usb_irq_wakeup;
152 ir_recv: gpio-ir-receiver {
153 compatible = "gpio-ir-receiver";
154 gpios = <&gpio0 GPIO_A6 GPIO_ACTIVE_HIGH>;
155 pinctrl-names = "default";
156 pinctrl-0 = <&ir_recv_pin>;
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>;
166 clock_in_out = "input";
175 rockchip,pins = <GPIO0_C2>;
176 rockchip,pull = <VALUE_PULL_DOWN>;
182 rockchip,pins = <GPIO7_B7>;
183 rockchip,pull = <VALUE_PULL_UP>;
187 //could add other pinctrl definition such as gpio
189 // gmac drive strength
192 rockchip,drive = <VALUE_DRV_12MA>;
195 mac_txpins: mac-txpins {
196 rockchip,drive = <VALUE_DRV_12MA>;
199 mac_rxpins: mac-rxpins {
200 rockchip,drive = <VALUE_DRV_12MA>;
204 rockchip,drive = <VALUE_DRV_12MA>;
207 mac_mdpins: mac-mdpins {
208 rockchip,drive = <VALUE_DRV_12MA>;
213 ir_recv_pin: ir-recv-pin {
214 rockchip,pins = <GPIO0_A6>;
215 rockchip,pull = <VALUE_PULL_UP>;
221 status = "disabled"; // used nand set "disabled" ,used emmc set "okay"
224 status = "disabled"; // used nand set "disabled" ,used emmc set "okay"
228 status = "okay"; // used nand set "disabled" ,used emmc set "okay"
232 clock-frequency = <100000000>;
233 clock-freq-min-max = <400000 100000000>;
240 //supports-DDR_MODE; //you should set the two value in your project. only close in RK3288-SDK board.
244 keep-power-in-suspend;
251 clock-frequency = <50000000>;
252 clock-freq-min-max = <400000 50000000>;
256 card-detect-delay = <200>;
259 keep-power-in-suspend;
261 vmmc-supply = <&rk808_ldo5_reg>;
266 clock-frequency = <50000000>;
267 clock-freq-min-max = <200000 50000000>;
271 keep-power-in-suspend;
278 max-freq = <48000000>;
283 max-freq = <48000000>;
288 max-freq = <48000000>;
293 dma-names = "!tx", "!rx";
294 pinctrl-0 = <&uart0_xfer &uart0_cts>;
309 compatible = "gs_mma8452";
311 type = <SENSOR_TYPE_ACCEL>;
312 irq-gpio = <&gpio8 GPIO_A0 IRQ_TYPE_EDGE_FALLING>;
314 poll_delay_ms = <30>;
319 compatible = "ak8963";
321 type = <SENSOR_TYPE_COMPASS>;
322 irq-gpio = <&gpio8 GPIO_A1 IRQ_TYPE_EDGE_RISING>;
324 poll_delay_ms = <30>;
329 compatible = "l3g4200d_gyro";
331 type = <SENSOR_TYPE_GYROSCOPE>;
332 irq-gpio = <&gpio8 GPIO_A2 IRQ_TYPE_LEVEL_LOW>;
334 poll_delay_ms = <30>;
342 compatible = "wm8960";
347 compatible = "rockchip,vga";
366 rockchip,disp-mode = <DUAL>;
367 rockchip,uboot-logo-on = <1>;
371 display-timings = <&disp_timings>;
374 /*lcdc0 as PRMRY(LCD),lcdc1 as EXTEND(HDMI)*/
377 rockchip,mirror = <NO_MIRROR>;
378 rockchip,cabc_mode = <0>;
379 power_ctr: power_ctr {
380 rockchip,debug = <0>;
382 rockchip,power_type = <GPIO>;
383 gpios = <&gpio7 GPIO_A3 GPIO_ACTIVE_HIGH>;
384 rockchip,delay = <10>;
388 rockchip,power_type = <GPIO>;
389 gpios= <&gpio7 GPIO_C5 GPIO_ACTIVE_HIGH>;
397 rockchip,mirror = <NO_MIRROR>;
402 rockchip,hdmi_video_source = <DISPLAY_SOURCE_LCDC1>;
408 compatible = "rockchip,key";
409 io-channels = <&adc 1>;
414 rockchip,adc_value = <1>;
419 label = "volume down";
420 rockchip,adc_value = <253>;
424 gpios = <&gpio0 GPIO_A5 GPIO_ACTIVE_LOW>;
433 rockchip,adc_value = <512>;
447 &clk_core_dvfs_table {
464 &clk_gpu_dvfs_table {
476 &clk_ddr_dvfs_table {
487 SYS_STATUS_NORMAL 400000
488 SYS_STATUS_SUSPEND 200000
489 SYS_STATUS_VIDEO_1080P 240000
490 SYS_STATUS_VIDEO_4K 400000
491 SYS_STATUS_PERFORMANCE 528000
492 SYS_STATUS_DUALVIEW 400000
493 SYS_STATUS_BOOST 324000
494 SYS_STATUS_ISP 533000
513 /include/ "rk808.dtsi"
515 gpios =<&gpio0 GPIO_A4 GPIO_ACTIVE_HIGH>,<&gpio0 GPIO_B3 GPIO_ACTIVE_LOW>;
516 rk808,system-power-controller;
519 rk808_dcdc1_reg: regulator@0{
520 regulator-name= "vdd_arm";
521 regulator-min-microvolt = <700000>;
522 regulator-max-microvolt = <1500000>;
525 regulator-initial-mode = <0x2>;
526 regulator-initial-state = <3>;
527 regulator-state-mem {
528 regulator-state-mode = <0x2>;
529 regulator-state-disabled;
530 regulator-state-uv = <900000>;
534 rk808_dcdc2_reg: regulator@1 {
535 regulator-name= "vdd_gpu";
536 regulator-min-microvolt = <700000>;
537 regulator-max-microvolt = <1500000>;
538 /*regulator-always-on;*/
539 /*regulator-boot-on;*/
540 regulator-initial-mode = <0x2>;
541 regulator-initial-state = <3>;
542 regulator-state-mem {
543 regulator-state-mode = <0x2>;
544 regulator-state-disabled;
545 regulator-state-uv = <900000>;
549 rk808_dcdc3_reg: regulator@2 {
550 regulator-name= "rk_dcdc3";
551 regulator-min-microvolt = <1200000>;
552 regulator-max-microvolt = <1200000>;
555 regulator-initial-mode = <0x2>;
556 regulator-initial-state = <3>;
557 regulator-state-mem {
558 regulator-state-mode = <0x2>;
559 regulator-state-enabled;
560 regulator-state-uv = <1200000>;
564 rk808_dcdc4_reg: regulator@3 {
565 regulator-name= "vccio";
566 regulator-min-microvolt = <1800000>;
567 regulator-max-microvolt = <3300000>;
570 regulator-initial-mode = <0x2>;
571 regulator-initial-state = <3>;
572 regulator-state-mem {
573 regulator-state-mode = <0x2>;
574 regulator-state-enabled;
575 regulator-state-uv = <2800000>;
579 rk808_ldo1_reg: regulator@4 {
580 regulator-name= "rk_ldo1";
581 regulator-min-microvolt = <3300000>;
582 regulator-max-microvolt = <3300000>;
585 regulator-initial-state = <3>;
586 regulator-state-mem {
587 regulator-state-enabled;
588 regulator-state-uv = <3300000>;
592 rk808_ldo2_reg: regulator@5 {
593 regulator-name= "rk_ldo2";
594 regulator-min-microvolt = <3300000>;
595 regulator-max-microvolt = <3300000>;
598 regulator-initial-state = <3>;
599 regulator-state-mem {
600 regulator-state-enabled;
601 regulator-state-uv = <3300000>;
605 rk808_ldo3_reg: regulator@6 {
606 regulator-name= "rk_ldo3";
607 regulator-min-microvolt = <1000000>;
608 regulator-max-microvolt = <1000000>;
611 regulator-initial-state = <3>;
612 regulator-state-mem {
613 regulator-state-enabled;
614 regulator-state-uv = <1000000>;
618 rk808_ldo4_reg:regulator@7 {
619 regulator-name= "rk_ldo4";
620 regulator-min-microvolt = <1800000>;
621 regulator-max-microvolt = <1800000>;
624 regulator-initial-state = <3>;
625 regulator-state-mem {
626 regulator-state-disabled;
627 regulator-state-uv = <1800000>;
631 rk808_ldo5_reg: regulator@8 {
632 regulator-name= "vcc_sd";
633 regulator-min-microvolt = <1800000>;
634 regulator-max-microvolt = <3300000>;
637 regulator-initial-state = <3>;
638 regulator-state-mem {
639 regulator-state-enabled;
640 regulator-state-uv = <2800000>;
644 rk808_ldo6_reg: regulator@9 {
645 regulator-name= "rk_ldo6";
646 regulator-min-microvolt = <1000000>;
647 regulator-max-microvolt = <1000000>;
650 regulator-initial-state = <3>;
651 regulator-state-mem {
652 regulator-state-disabled;
653 regulator-state-uv = <1000000>;
657 rk808_ldo7_reg: regulator@10 {
658 regulator-name= "rk_ldo7";
659 regulator-min-microvolt = <1800000>;
660 regulator-max-microvolt = <1800000>;
663 regulator-initial-state = <3>;
664 regulator-state-mem {
665 regulator-state-enabled;
666 regulator-state-uv = <1800000>;
670 rk808_ldo8_reg: regulator@11 {
671 regulator-name= "rk_ldo8";
672 regulator-min-microvolt = <3300000>;
673 regulator-max-microvolt = <3300000>;
676 regulator-initial-state = <3>;
677 regulator-state-mem {
678 regulator-state-enabled;
679 regulator-state-uv = <3300000>;
683 rk808_ldo9_reg: regulator@12 {
684 regulator-name= "rk_ldo9";
687 regulator-initial-state = <3>;
688 regulator-state-mem {
689 regulator-state-enabled;
693 rk808_ldo10_reg: regulator@13 {
694 regulator-name= "rk_ldo10";
697 regulator-initial-state = <3>;
698 regulator-state-mem {
699 regulator-state-disabled;
706 regulator-name = "vcc30_lcd";
709 regulator-name = "vcc18_cif";
712 regulator-name = "vcc_flash";
715 regulator-name = "vcc_flash";
718 regulator-name = "vccio_wl";
721 regulator-name = "vccio";
724 regulator-name = "vccio";
727 regulator-name = "vccio";
730 regulator-name = "vccio";
733 regulator-name = "vcc_sd";