mmc: dts: limit clk for audi(s), and enable sdio by default
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / rk3036-sdk.dts
1 /dts-v1/;
2 #include <dt-bindings/rkfb/rk_fb.h>
3 #include "rk3036.dtsi"
4 #include "rk3036-pinctrl.dtsi"
5 #include "lcd-box.dtsi"
6 / {
7
8         fiq-debugger {
9                 status = "okay";
10         };
11
12         pwm_regulator {
13                 compatible = "rockchip_pwm_regulator";
14                 pwms = <&pwm2 0 25000>;
15                 rockchip,pwm_id= <2>;
16                 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>;
17                 rockchip,pwm_voltage= <1250000>;
18                 rockchip,pwm_min_voltage= <950000>;
19                 rockchip,pwm_max_voltage= <1450000>;
20                 rockchip,pwm_suspend_voltage= <1250000>;
21                 rockchip,pwm_coefficient= <500>;
22                 status = "disabled";
23                 regulators {
24                         #address-cells = <1>;
25                         #size-cells = <0>;
26                         pwm_reg0: regulator@0 {
27                                 regulator-compatible = "pwm_dcdc1";
28                                 regulator-name= "vdd_arm";
29                                 regulator-min-microvolt = <950000>;
30                                 regulator-max-microvolt = <1450000>;
31                                 regulator-always-on;
32                                 regulator-boot-on;
33                         };
34                 };
35         };
36
37         wireless-wlan {
38                 compatible = "wlan-platdata";
39
40                 wifi_chip_type = "esp8089";
41                 sdio_vref = <0>; //1800mv or 3300mv
42
43                 //power_ctrl_by_pmu;
44                 //power_pmu_regulator = "act_ldo3";
45                 //power_pmu_enable_level = <1>; //1->HIGH, 0->LOW
46
47                 //vref_ctrl_enable;
48                 //vref_ctrl_gpio = <&gpio0 GPIO_A2 GPIO_ACTIVE_HIGH>;
49                 //vref_pmu_regulator = "act_ldo3";
50                 //vref_pmu_enable_level = <1>; //1->HIGH, 0->LOW
51
52                 WIFI,poweren_gpio = <&gpio2 GPIO_D6 GPIO_ACTIVE_HIGH>;
53                 WIFI,host_wake_irq = <&gpio2 GPIO_C4 GPIO_ACTIVE_HIGH>;
54                 //WIFI,reset_gpio = <&gpio0 GPIO_A2 GPIO_ACTIVE_LOW>;
55
56                 status = "okay";
57     };
58
59     wireless-bluetooth {
60         compatible = "bluetooth-platdata";
61
62         //wifi-bt-power-toggle;
63
64         uart_rts_gpios = <&gpio0 GPIO_C2 GPIO_ACTIVE_LOW>;
65         pinctrl-names = "default","rts_gpio";
66         pinctrl-0 = <&uart0_rts>;
67         pinctrl-1 = <&uart0_rts_gpio>;
68
69         //BT,power_gpio = <&gpio4 GPIO_D3 GPIO_ACTIVE_HIGH>;
70         BT,reset_gpio = <&gpio2 GPIO_D5 GPIO_ACTIVE_HIGH>;
71         BT,wake_gpio = <&gpio2 GPIO_C5 GPIO_ACTIVE_HIGH>;
72         BT,wake_host_irq = <&gpio0 GPIO_A0 GPIO_ACTIVE_LOW>;
73
74         status = "okay";
75     };
76
77         usb_control {
78                 compatible = "rockchip,rk3036-usb-control";
79                 host_drv_gpio = <&gpio2 GPIO_C7 GPIO_ACTIVE_LOW>;
80                 otg_drv_gpio = <&gpio0 GPIO_D2 GPIO_ACTIVE_LOW>;
81
82                 rockchip,remote_wakeup;
83                 rockchip,usb_irq_wakeup;
84         };
85
86         key {
87                 compatible = "rockchip,key";
88         };
89
90         codec_hdmi_i2s: codec-hdmi-i2s {
91                 compatible = "hdmi-i2s";
92         };
93
94         rockchip-hdmi-i2s {
95                 compatible = "rockchip-hdmi-i2s";
96                 dais {
97                         dai0 {
98                                 audio-codec = <&codec_hdmi_i2s>;
99                                 i2s-controller = <&i2s>;
100                                 format = "i2s";
101                                 //continuous-clock;
102                                 //bitclock-inversion;
103                                 //frame-inversion;
104                                 //bitclock-master;
105                                 //frame-master;
106                         };
107                 };
108         };
109
110         codec_hdmi_spdif: codec-hdmi-spdif {
111                 compatible = "hdmi-spdif";
112         };
113
114         rockchip-hdmi-spdif {
115                 compatible = "rockchip-hdmi-spdif";
116                 dais {
117                         dai0 {
118                                 audio-codec = <&codec_hdmi_spdif>;
119                                 i2s-controller = <&spdif>;
120                         };
121                 };
122         };
123
124         rockchip-audio {
125                 compatible = "rk3036-audio";
126                 dais {
127                         dai0 {
128                                 audio-codec = <&codec>;
129                                 i2s-controller = <&i2s>;
130                                 format = "i2s";
131                                 //continuous-clock;
132                                 //bitclock-inversion;
133                                 //frame-inversion;
134                                 //bitclock-master;
135                                 //frame-master;
136                         };
137                 };
138         };
139 };
140
141 &uart0{
142         status = "okay";
143         dma-names = "!tx", "!rx";
144         pinctrl-0 = <&uart0_xfer &uart0_cts>;
145 };
146
147 &nandc {
148         status = "okay"; // used nand set "okay" ,used emmc set "disabled"
149 };
150
151 &nandc0reg {
152         status = "disabled"; // used nand set "disabled" ,used emmc set "okay"
153 };
154
155 &emmc {
156         clock-frequency = <37500000>;
157         clock-freq-min-max = <400000 37500000>;
158
159         supports-highspeed;
160         supports-emmc;
161         bootpart-no-access;
162
163         supports-DDR_MODE;
164
165         ignore-pm-notify;
166         keep-power-in-suspend;
167
168         //poll-hw-reset
169         status = "disabled";
170 };
171
172 &sdmmc {
173                 clock-frequency = <37500000>;
174                 clock-freq-min-max = <400000 37500000>;
175                 supports-highspeed;
176                 supports-sd;
177                 broken-cd;
178                 card-detect-delay = <200>;
179
180                 ignore-pm-notify;
181                 keep-power-in-suspend;
182
183                 //vmmc-supply = <&rk808_ldo5_reg>;
184                 status = "disabled";
185 };
186
187 &sdio {
188                 clock-frequency = <37500000>;
189                 clock-freq-min-max = <200000 37500000>;
190                 supports-highspeed;
191                 supports-sdio;
192                 ignore-pm-notify;
193                 keep-power-in-suspend;
194                 cap-sdio-irq;
195                 status = "okay";
196 };
197
198
199 &i2c1 {
200         status = "okay";
201         rtc@51 {
202                 compatible = "rtc,hym8563";
203                 reg = <0x51>;
204                 //irq_gpio = <&gpio0 GPIO_A4 IRQ_TYPE_EDGE_FALLING>;
205         };
206 };
207
208
209 &rk_screen {
210          display-timings = <&disp_timings>;
211 };
212
213 &lcdc {
214         status = "okay";
215 };
216
217 &tve {
218         status = "okay";
219 };
220
221 &hdmi {
222         status = "okay";
223         //rockchips,hdmi_audio_source = <0>;
224 };
225
226 &vmac {
227 //      pmu_regulator = "act_ldo5";
228 //      pmu_enable_level = <1>; //1->HIGH, 0->LOW
229 //      power-gpio = <&gpio0 GPIO_A6 GPIO_ACTIVE_HIGH>;
230         reset-gpio = <&gpio2 GPIO_C6 GPIO_ACTIVE_LOW>;
231 };