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 wifi_chip_type = "rtkwifi";
64 sdio_vref = <0>; //1800mv or 3300mv
68 //power_pmu_regulator = "act_ldo3";
69 //power_pmu_enable_level = <1>; //1->HIGH, 0->LOW
72 //vref_ctrl_gpio = <&gpio0 GPIO_A2 GPIO_ACTIVE_HIGH>;
73 //vref_pmu_regulator = "act_ldo3";
74 //vref_pmu_enable_level = <1>; //1->HIGH, 0->LOW
76 WIFI,poweren_gpio = <&gpio2 GPIO_D6 GPIO_ACTIVE_HIGH>;
77 WIFI,host_wake_irq = <&gpio1 GPIO_A4 GPIO_ACTIVE_HIGH>;
78 //WIFI,reset_gpio = <&gpio0 GPIO_A2 GPIO_ACTIVE_LOW>;
83 /* wireless-bluetooth {
84 compatible = "bluetooth-platdata";
85 //wifi-bt-power-toggle;
87 uart_rts_gpios = <&gpio4 GPIO_C3 GPIO_ACTIVE_LOW>;
88 pinctrl-names = "default","rts_gpio";
89 pinctrl-0 = <&uart0_rts>;
90 pinctrl-1 = <&uart0_rts_gpio>;
92 //BT,power_gpio = <&gpio4 GPIO_D3 GPIO_ACTIVE_HIGH>;
93 BT,reset_gpio = <&gpio4 GPIO_D5 GPIO_ACTIVE_HIGH>;
94 BT,wake_gpio = <&gpio4 GPIO_D2 GPIO_ACTIVE_HIGH>;
95 BT,wake_host_irq = <&gpio4 GPIO_D7 GPIO_ACTIVE_LOW>;
102 compatible = "rockchip,rk3036-usb-control";
103 host_drv_gpio = <&gpio2 GPIO_C7 GPIO_ACTIVE_LOW>;
104 otg_drv_gpio = <&gpio0 GPIO_D2 GPIO_ACTIVE_LOW>;
106 rockchip,remote_wakeup;
107 rockchip,usb_irq_wakeup;
111 /*0 - Normal, 1 - Force Host, 2 - Force Device*/
112 rockchip,usb-mode = <1>;
116 compatible = "rockchip,key";
119 codec_hdmi_spdif: codec-hdmi-spdif {
120 compatible = "hdmi-spdif";
124 rockchip-hdmi-spdif {
126 compatible = "rockchip-hdmi-spdif";
129 audio-codec = <&codec_hdmi_spdif>;
130 audio-controller = <&spdif>;
135 rockchip-spdif-card {
137 compatible = "rockchip-spdif-card";
140 audio-codec = <&codec_hdmi_spdif>;
141 audio-controller = <&spdif>;
147 compatible = "rk3036-audio";
150 audio-codec = <&codec>;
151 audio-controller = <&i2s>;
154 //bitclock-inversion;
165 dma-names = "!tx", "!rx";
166 pinctrl-0 = <&uart0_xfer &uart0_cts>;
170 //used for init some gpio
172 init-gpios = <&gpio1 GPIO_A3 GPIO_ACTIVE_LOW>;
176 status = "okay"; // used nand set "okay" ,used emmc set "disabled"
180 status = "disabled"; // used nand set "disabled" ,used emmc set "okay"
184 clock-frequency = <37500000>;
185 clock-freq-min-max = <400000 37500000>;
194 keep-power-in-suspend;
201 clock-frequency = <37500000>;
202 clock-freq-min-max = <400000 37500000>;
206 card-detect-delay = <200>;
209 keep-power-in-suspend;
211 //vmmc-supply = <&rk808_ldo5_reg>;
216 clock-frequency = <37500000>;
217 clock-freq-min-max = <400000 37500000>;
221 keep-power-in-suspend;
230 compatible = "rtc,hym8563";
232 //irq_gpio = <&gpio0 GPIO_A4 IRQ_TYPE_EDGE_FALLING>;
238 display-timings = <&disp_timings>;
242 rockchip,disp-mode = <NO_DUAL>;
243 rockchip,uboot-logo-on = <1>;
256 //rockchips,hdmi_audio_source = <0>;
260 // pmu_regulator = "act_ldo5";
261 // pmu_enable_level = <1>; //1->HIGH, 0->LOW
262 // power-gpio = <&gpio0 GPIO_A6 GPIO_ACTIVE_HIGH>;
263 reset-gpio = <&gpio2 GPIO_C6 GPIO_ACTIVE_LOW>;
280 rockchip,usercode = <0x4040>;
290 <0xe3 KEY_VOLUMEDOWN>,
306 rockchip,usercode = <0xff00>;
316 <0xeb KEY_VOLUMEDOWN>,
321 <0xa9 KEY_VOLUMEDOWN>,
322 <0xa8 KEY_VOLUMEDOWN>,
323 <0xe0 KEY_VOLUMEDOWN>,
324 <0xa5 KEY_VOLUMEDOWN>,
329 <0xed KEY_VOLUMEDOWN>,
331 <0xb3 KEY_VOLUMEDOWN>,
332 <0xf1 KEY_VOLUMEDOWN>,
333 <0xf2 KEY_VOLUMEDOWN>,
335 <0xb4 KEY_VOLUMEDOWN>,
339 rockchip,usercode = <0x1dcc>;
349 <0xfd KEY_VOLUMEDOWN>,
367 <0xb5 KEY_BACKSPACE>;