Merge tag 'v3.18-rockchip-dts2-v2' of git://git.kernel.org/pub/scm/linux/kernel/git...
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / rk3188-radxarock.dts
1 /*
2  * Copyright (c) 2013 Heiko Stuebner <heiko@sntech.de>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  */
14
15 /dts-v1/;
16 #include "rk3188.dtsi"
17
18 / {
19         model = "Radxa Rock";
20         compatible = "radxa,rock", "rockchip,rk3188";
21
22         memory {
23                 reg = <0x60000000 0x80000000>;
24         };
25
26         gpio-keys {
27                 compatible = "gpio-keys";
28                 #address-cells = <1>;
29                 #size-cells = <0>;
30                 autorepeat;
31
32                 button@0 {
33                         gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
34                         linux,code = <116>;
35                         label = "GPIO Key Power";
36                         linux,input-type = <1>;
37                         gpio-key,wakeup = <1>;
38                         debounce-interval = <100>;
39                 };
40         };
41
42         gpio-leds {
43                 compatible = "gpio-leds";
44
45                 green {
46                         gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
47                         default-state = "off";
48                 };
49
50                 yellow {
51                         gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
52                         default-state = "off";
53                 };
54
55                 sleep {
56                         gpios = <&gpio0 15 0>;
57                         default-state = "off";
58                 };
59         };
60
61         ir_recv: gpio-ir-receiver {
62                 compatible = "gpio-ir-receiver";
63                 gpios = <&gpio0 10 1>;
64                 pinctrl-names = "default";
65                 pinctrl-0 = <&ir_recv_pin>;
66         };
67
68         vcc_otg: usb-otg-regulator {
69                 compatible = "regulator-fixed";
70                 enable-active-high;
71                 gpio = <&gpio2 31 GPIO_ACTIVE_HIGH>;
72                 pinctrl-names = "default";
73                 pinctrl-0 = <&otg_vbus_drv>;
74                 regulator-name = "otg-vbus";
75                 regulator-min-microvolt = <5000000>;
76                 regulator-max-microvolt = <5000000>;
77                 regulator-always-on;
78                 regulator-boot-on;
79         };
80
81         vcc_sd0: sdmmc-regulator {
82                 compatible = "regulator-fixed";
83                 regulator-name = "sdmmc-supply";
84                 regulator-min-microvolt = <3300000>;
85                 regulator-max-microvolt = <3300000>;
86                 gpio = <&gpio3 1 GPIO_ACTIVE_LOW>;
87                 startup-delay-us = <100000>;
88                 vin-supply = <&vcc_io>;
89         };
90
91         vcc_host: usb-host-regulator {
92                 compatible = "regulator-fixed";
93                 enable-active-high;
94                 gpio = <&gpio0 3 GPIO_ACTIVE_HIGH>;
95                 pinctrl-names = "default";
96                 pinctrl-0 = <&host_vbus_drv>;
97                 regulator-name = "host-pwr";
98                 regulator-min-microvolt = <5000000>;
99                 regulator-max-microvolt = <5000000>;
100                 regulator-always-on;
101                 regulator-boot-on;
102         };
103 };
104
105 &i2c1 {
106         status = "okay";
107         clock-frequency = <400000>;
108
109         rtc@51 {
110                 compatible = "haoyu,hym8563";
111                 reg = <0x51>;
112                 interrupt-parent = <&gpio0>;
113                 interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
114                 pinctrl-names = "default";
115                 pinctrl-0 = <&rtc_int>;
116                 #clock-cells = <0>;
117                 clock-output-names = "xin32k";
118         };
119
120         act8846: act8846@5a {
121                 compatible = "active-semi,act8846";
122                 reg = <0x5a>;
123                 status = "okay";
124
125                 pinctrl-names = "default";
126                 pinctrl-0 = <&act8846_dvs0_ctl>;
127
128                 regulators {
129                         vcc_ddr: REG1 {
130                                 regulator-name = "VCC_DDR";
131                                 regulator-min-microvolt = <1200000>;
132                                 regulator-max-microvolt = <1200000>;
133                                 regulator-always-on;
134                         };
135
136                         vdd_log: REG2 {
137                                 regulator-name = "VDD_LOG";
138                                 regulator-min-microvolt = <1000000>;
139                                 regulator-max-microvolt = <1000000>;
140                                 regulator-always-on;
141                         };
142
143                         vdd_arm: REG3 {
144                                 regulator-name = "VDD_ARM";
145                                 regulator-min-microvolt = <875000>;
146                                 regulator-max-microvolt = <1300000>;
147                                 regulator-always-on;
148                         };
149
150                         vcc_io: REG4 {
151                                 regulator-name = "VCC_IO";
152                                 regulator-min-microvolt = <3300000>;
153                                 regulator-max-microvolt = <3300000>;
154                                 regulator-always-on;
155                         };
156
157                         vdd_10: REG5 {
158                                 regulator-name = "VDD_10";
159                                 regulator-min-microvolt = <1000000>;
160                                 regulator-max-microvolt = <1000000>;
161                                 regulator-always-on;
162                         };
163
164                         vdd_hdmi: REG6 {
165                                 regulator-name = "VDD_HDMI";
166                                 regulator-min-microvolt = <2500000>;
167                                 regulator-max-microvolt = <2500000>;
168                                 regulator-always-on;
169                         };
170
171                         vcc18: REG7 {
172                                 regulator-name = "VCC_18";
173                                 regulator-min-microvolt = <1800000>;
174                                 regulator-max-microvolt = <1800000>;
175                                 regulator-always-on;
176                         };
177
178                         vcca_33: REG8 {
179                                 regulator-name = "VCCA_33";
180                                 regulator-min-microvolt = <3300000>;
181                                 regulator-max-microvolt = <3300000>;
182                                 regulator-always-on;
183                         };
184
185                         vcc_rmii: REG9 {
186                                 regulator-name = "VCC_RMII";
187                                 regulator-min-microvolt = <3300000>;
188                                 regulator-max-microvolt = <3300000>;
189                         };
190
191                         vccio_wl: REG10 {
192                                 regulator-name = "VCCIO_WL";
193                                 regulator-min-microvolt = <3300000>;
194                                 regulator-max-microvolt = <3300000>;
195                                 regulator-always-on;
196                         };
197
198                         vcc_18: REG11 {
199                                 regulator-name = "VCC18_IO";
200                                 regulator-min-microvolt = <1800000>;
201                                 regulator-max-microvolt = <1800000>;
202                                 regulator-always-on;
203                         };
204
205                         vcc28: REG12 {
206                                 regulator-name = "VCC_28";
207                                 regulator-min-microvolt = <2800000>;
208                                 regulator-max-microvolt = <2800000>;
209                                 regulator-always-on;
210                         };
211                 };
212         };
213 };
214
215 &mmc0 {
216         num-slots = <1>;
217         status = "okay";
218         pinctrl-names = "default";
219         pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
220         vmmc-supply = <&vcc_sd0>;
221
222         bus-width = <4>;
223         disable-wp;
224 };
225
226 &pinctrl {
227         pcfg_output_low: pcfg-output-low {
228                 output-low;
229         };
230
231         act8846 {
232                 act8846_dvs0_ctl: act8846-dvs0-ctl {
233                         rockchip,pins = <RK_GPIO3 27 RK_FUNC_GPIO &pcfg_output_low>;
234                 };
235         };
236
237         hym8563 {
238                 rtc_int: rtc-int {
239                         rockchip,pins = <RK_GPIO0 0 RK_FUNC_GPIO &pcfg_pull_up>;
240                 };
241         };
242
243         ir-receiver {
244                 ir_recv_pin: ir-recv-pin {
245                         rockchip,pins = <RK_GPIO0 10 RK_FUNC_GPIO &pcfg_pull_none>;
246                 };
247         };
248
249         usb {
250                 host_vbus_drv: host-vbus-drv {
251                         rockchip,pins = <0 3 RK_FUNC_GPIO &pcfg_pull_none>;
252                 };
253                 otg_vbus_drv: otg-vbus-drv {
254                         rockchip,pins = <2 31 RK_FUNC_GPIO &pcfg_pull_none>;
255                 };
256         };
257 };
258
259 &uart0 {
260         status = "okay";
261 };
262
263 &uart1 {
264         status = "okay";
265 };
266
267 &uart2 {
268         status = "okay";
269 };
270
271 &uart3 {
272         status = "okay";
273 };
274
275 &usb_host {
276         status = "okay";
277 };
278
279 &usb_otg {
280         status = "okay";
281 };
282
283 &wdt {
284         status = "okay";
285 };