2 #include <dt-bindings/rkfb/rk_fb.h>
4 #include "rk3036-pinctrl.dtsi"
5 #include "lcd-box.dtsi"
6 #include <dt-bindings/input/input.h>
15 compatible = "rockchip_pwm_regulator";
16 pwms = <&pwm2 0 25000>;
18 rockchip,pwm_voltage_map= <950000 975000 1000000 1025000 1050000 1075000 1100000 1125000 1150000 1175000 1200000 1225000 1250000 1275000 1300000 1325000 1350000 1375000 1400000 1425000 1450000>;
19 rockchip,pwm_voltage= <1300000>;
20 rockchip,pwm_min_voltage= <950000>;
21 rockchip,pwm_max_voltage= <1450000>;
22 rockchip,pwm_suspend_voltage= <1000000>;
23 rockchip,pwm_coefficient= <500>;
28 pwm_reg0: regulator@0 {
29 regulator-compatible = "pwm_dcdc1";
30 regulator-name= "vdd_arm";
31 regulator-min-microvolt = <950000>;
32 regulator-max-microvolt = <1450000>;
40 compatible = "gpio-poweroff";
41 gpios = <&gpio1 GPIO_A2 GPIO_ACTIVE_LOW>;
45 compatible = "gpio-leds";
48 gpios = <&gpio1 GPIO_A3 GPIO_ACTIVE_LOW>;
54 compatible = "wlan-platdata";
56 /* wifi_chip_type - wifi chip define
57 * bcmwifi ==> like ap6xxx, rk90x;
58 * rtkwifi ==> like rtl8188xx, rtl8723xx,rtl8812auv;
59 * esp8089 ==> esp8089;
60 * other ==> for other wifi;
62 wifi_chip_type = "esp8089";
63 sdio_vref = <0>; //1800mv or 3300mv
67 //power_pmu_regulator = "act_ldo3";
68 //power_pmu_enable_level = <1>; //1->HIGH, 0->LOW
71 //vref_ctrl_gpio = <&gpio0 GPIO_A2 GPIO_ACTIVE_HIGH>;
72 //vref_pmu_regulator = "act_ldo3";
73 //vref_pmu_enable_level = <1>; //1->HIGH, 0->LOW
75 WIFI,poweren_gpio = <&gpio2 GPIO_D6 GPIO_ACTIVE_HIGH>;
76 WIFI,host_wake_irq = <&gpio2 GPIO_C4 GPIO_ACTIVE_HIGH>;
77 //WIFI,reset_gpio = <&gpio0 GPIO_A2 GPIO_ACTIVE_LOW>;
82 /* wireless-bluetooth {
83 compatible = "bluetooth-platdata";
84 //wifi-bt-power-toggle;
86 uart_rts_gpios = <&gpio4 GPIO_C3 GPIO_ACTIVE_LOW>;
87 pinctrl-names = "default","rts_gpio";
88 pinctrl-0 = <&uart0_rts>;
89 pinctrl-1 = <&uart0_rts_gpio>;
91 //BT,power_gpio = <&gpio4 GPIO_D3 GPIO_ACTIVE_HIGH>;
92 BT,reset_gpio = <&gpio4 GPIO_D5 GPIO_ACTIVE_HIGH>;
93 BT,wake_gpio = <&gpio4 GPIO_D2 GPIO_ACTIVE_HIGH>;
94 BT,wake_host_irq = <&gpio4 GPIO_D7 GPIO_ACTIVE_LOW>;
101 compatible = "rockchip,rk3036-usb-control";
102 host_drv_gpio = <&gpio2 GPIO_C7 GPIO_ACTIVE_LOW>;
103 otg_drv_gpio = <&gpio0 GPIO_D2 GPIO_ACTIVE_LOW>;
105 rockchip,remote_wakeup;
106 rockchip,usb_irq_wakeup;
110 /*0 - Normal, 1 - Force Host, 2 - Force Device*/
111 rockchip,usb-mode = <1>;
115 compatible = "rockchip,key";
118 codec_hdmi_spdif: codec-hdmi-spdif {
119 compatible = "hdmi-spdif";
122 rockchip-hdmi-spdif {
123 compatible = "rockchip-hdmi-spdif";
126 audio-codec = <&codec_hdmi_spdif>;
127 audio-controller = <&spdif>;
132 rockchip-spdif-card {
133 compatible = "rockchip-spdif-card";
136 audio-codec = <&codec_hdmi_spdif>;
137 audio-controller = <&spdif>;
143 compatible = "rk3036-audio";
146 audio-codec = <&codec>;
147 audio-controller = <&i2s>;
150 //bitclock-inversion;
161 dma-names = "!tx", "!rx";
162 pinctrl-0 = <&uart0_xfer &uart0_cts>;
166 status = "okay"; // used nand set "okay" ,used emmc set "disabled"
170 status = "disabled"; // used nand set "disabled" ,used emmc set "okay"
174 clock-frequency = <37500000>;
175 clock-freq-min-max = <400000 37500000>;
184 keep-power-in-suspend;
191 clock-frequency = <37500000>;
192 clock-freq-min-max = <400000 37500000>;
196 card-detect-delay = <200>;
199 keep-power-in-suspend;
201 //vmmc-supply = <&rk808_ldo5_reg>;
206 clock-frequency = <37500000>;
207 clock-freq-min-max = <200000 37500000>;
211 keep-power-in-suspend;
220 compatible = "rtc,hym8563";
222 //irq_gpio = <&gpio0 GPIO_A4 IRQ_TYPE_EDGE_FALLING>;
228 display-timings = <&disp_timings>;
232 rockchip,disp-mode = <NO_DUAL>;
233 rockchip,uboot-logo-on = <1>;
246 //rockchips,hdmi_audio_source = <0>;
250 // pmu_regulator = "act_ldo5";
251 // pmu_enable_level = <1>; //1->HIGH, 0->LOW
252 // power-gpio = <&gpio0 GPIO_A6 GPIO_ACTIVE_HIGH>;
253 reset-gpio = <&gpio2 GPIO_C6 GPIO_ACTIVE_LOW>;
269 rockchip,usercode = <0x4040>;
279 <0xe3 KEY_VOLUMEDOWN>,
295 rockchip,usercode = <0xff00>;
305 <0xeb KEY_VOLUMEDOWN>,
310 <0xa9 KEY_VOLUMEDOWN>,
311 <0xa8 KEY_VOLUMEDOWN>,
312 <0xe0 KEY_VOLUMEDOWN>,
313 <0xa5 KEY_VOLUMEDOWN>,
318 <0xed KEY_VOLUMEDOWN>,
320 <0xb3 KEY_VOLUMEDOWN>,
321 <0xf1 KEY_VOLUMEDOWN>,
322 <0xf2 KEY_VOLUMEDOWN>,
324 <0xb4 KEY_VOLUMEDOWN>,
328 rockchip,usercode = <0x1dcc>;
338 <0xfd KEY_VOLUMEDOWN>,
356 <0xb5 KEY_BACKSPACE>;