]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - arch/arm/boot/dts/rk3188-radxarock.dts
225a0eb7f136e28b1177cd5c4a716f33f286903a
[karo-tx-linux.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                         label = "rock:green:user1";
47                         gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
48                         default-state = "off";
49                 };
50
51                 blue {
52                         label = "rock:blue:user2";
53                         gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
54                         default-state = "off";
55                 };
56
57                 sleep {
58                         label = "rock:red:power";
59                         gpios = <&gpio0 15 0>;
60                         default-state = "off";
61                 };
62         };
63
64         ir_recv: gpio-ir-receiver {
65                 compatible = "gpio-ir-receiver";
66                 gpios = <&gpio0 10 1>;
67                 pinctrl-names = "default";
68                 pinctrl-0 = <&ir_recv_pin>;
69         };
70
71         vcc_otg: usb-otg-regulator {
72                 compatible = "regulator-fixed";
73                 enable-active-high;
74                 gpio = <&gpio2 31 GPIO_ACTIVE_HIGH>;
75                 pinctrl-names = "default";
76                 pinctrl-0 = <&otg_vbus_drv>;
77                 regulator-name = "otg-vbus";
78                 regulator-min-microvolt = <5000000>;
79                 regulator-max-microvolt = <5000000>;
80                 regulator-always-on;
81                 regulator-boot-on;
82         };
83
84         vcc_sd0: sdmmc-regulator {
85                 compatible = "regulator-fixed";
86                 regulator-name = "sdmmc-supply";
87                 regulator-min-microvolt = <3300000>;
88                 regulator-max-microvolt = <3300000>;
89                 gpio = <&gpio3 1 GPIO_ACTIVE_LOW>;
90                 startup-delay-us = <100000>;
91                 vin-supply = <&vcc_io>;
92         };
93
94         vcc_host: usb-host-regulator {
95                 compatible = "regulator-fixed";
96                 enable-active-high;
97                 gpio = <&gpio0 3 GPIO_ACTIVE_HIGH>;
98                 pinctrl-names = "default";
99                 pinctrl-0 = <&host_vbus_drv>;
100                 regulator-name = "host-pwr";
101                 regulator-min-microvolt = <5000000>;
102                 regulator-max-microvolt = <5000000>;
103                 regulator-always-on;
104                 regulator-boot-on;
105         };
106
107         vsys: vsys-regulator {
108                 compatible = "regulator-fixed";
109                 regulator-name = "vsys";
110                 regulator-min-microvolt = <5000000>;
111                 regulator-max-microvolt = <5000000>;
112                 regulator-boot-on;
113         };
114 };
115
116 &emac {
117         status = "okay";
118
119         pinctrl-names = "default";
120         pinctrl-0 = <&emac_xfer>, <&emac_mdio>, <&phy_int>;
121
122         phy = <&phy0>;
123         phy-supply = <&vcc_rmii>;
124
125         phy0: ethernet-phy@0 {
126                 reg = <0>;
127                 interrupt-parent = <&gpio3>;
128                 interrupts = <26 IRQ_TYPE_LEVEL_LOW>;
129         };
130 };
131
132 &cpu0 {
133         cpu0-supply = <&vdd_arm>;
134 };
135
136 &i2c1 {
137         status = "okay";
138         clock-frequency = <400000>;
139
140         rtc@51 {
141                 compatible = "haoyu,hym8563";
142                 reg = <0x51>;
143                 interrupt-parent = <&gpio0>;
144                 interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
145                 pinctrl-names = "default";
146                 pinctrl-0 = <&rtc_int>;
147                 #clock-cells = <0>;
148                 clock-output-names = "xin32k";
149         };
150
151         act8846: act8846@5a {
152                 compatible = "active-semi,act8846";
153                 reg = <0x5a>;
154                 status = "okay";
155                 system-power-controller;
156
157                 pinctrl-names = "default";
158                 pinctrl-0 = <&act8846_dvs0_ctl>;
159
160                 vp1-supply = <&vsys>;
161                 vp2-supply = <&vsys>;
162                 vp3-supply = <&vsys>;
163                 vp4-supply = <&vsys>;
164                 inl1-supply = <&vcc_io>;
165                 inl2-supply = <&vsys>;
166                 inl3-supply = <&vsys>;
167
168                 regulators {
169                         vcc_ddr: REG1 {
170                                 regulator-name = "VCC_DDR";
171                                 regulator-min-microvolt = <1200000>;
172                                 regulator-max-microvolt = <1200000>;
173                                 regulator-always-on;
174                         };
175
176                         vdd_log: REG2 {
177                                 regulator-name = "VDD_LOG";
178                                 regulator-min-microvolt = <1000000>;
179                                 regulator-max-microvolt = <1000000>;
180                                 regulator-always-on;
181                         };
182
183                         vdd_arm: REG3 {
184                                 regulator-name = "VDD_ARM";
185                                 regulator-min-microvolt = <875000>;
186                                 regulator-max-microvolt = <1350000>;
187                                 regulator-always-on;
188                         };
189
190                         vcc_io: REG4 {
191                                 regulator-name = "VCC_IO";
192                                 regulator-min-microvolt = <3300000>;
193                                 regulator-max-microvolt = <3300000>;
194                                 regulator-always-on;
195                         };
196
197                         vdd_10: REG5 {
198                                 regulator-name = "VDD_10";
199                                 regulator-min-microvolt = <1000000>;
200                                 regulator-max-microvolt = <1000000>;
201                                 regulator-always-on;
202                         };
203
204                         vdd_hdmi: REG6 {
205                                 regulator-name = "VDD_HDMI";
206                                 regulator-min-microvolt = <2500000>;
207                                 regulator-max-microvolt = <2500000>;
208                                 regulator-always-on;
209                         };
210
211                         vcc18: REG7 {
212                                 regulator-name = "VCC_18";
213                                 regulator-min-microvolt = <1800000>;
214                                 regulator-max-microvolt = <1800000>;
215                                 regulator-always-on;
216                         };
217
218                         vcca_33: REG8 {
219                                 regulator-name = "VCCA_33";
220                                 regulator-min-microvolt = <3300000>;
221                                 regulator-max-microvolt = <3300000>;
222                                 regulator-always-on;
223                         };
224
225                         vcc_rmii: REG9 {
226                                 regulator-name = "VCC_RMII";
227                                 regulator-min-microvolt = <3300000>;
228                                 regulator-max-microvolt = <3300000>;
229                         };
230
231                         vccio_wl: REG10 {
232                                 regulator-name = "VCCIO_WL";
233                                 regulator-min-microvolt = <3300000>;
234                                 regulator-max-microvolt = <3300000>;
235                                 regulator-always-on;
236                         };
237
238                         vcc_18: REG11 {
239                                 regulator-name = "VCC18_IO";
240                                 regulator-min-microvolt = <1800000>;
241                                 regulator-max-microvolt = <1800000>;
242                                 regulator-always-on;
243                         };
244
245                         vcc28: REG12 {
246                                 regulator-name = "VCC_28";
247                                 regulator-min-microvolt = <2800000>;
248                                 regulator-max-microvolt = <2800000>;
249                                 regulator-always-on;
250                         };
251                 };
252         };
253 };
254
255 &mmc0 {
256         num-slots = <1>;
257         status = "okay";
258         pinctrl-names = "default";
259         pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
260         vmmc-supply = <&vcc_sd0>;
261
262         bus-width = <4>;
263         disable-wp;
264 };
265
266 &pwm1 {
267         status = "okay";
268 };
269
270 &pwm2 {
271         status = "okay";
272 };
273
274 &pwm3 {
275         status = "okay";
276 };
277
278 &pinctrl {
279         pcfg_output_low: pcfg-output-low {
280                 output-low;
281         };
282
283         act8846 {
284                 act8846_dvs0_ctl: act8846-dvs0-ctl {
285                         rockchip,pins = <RK_GPIO3 27 RK_FUNC_GPIO &pcfg_output_low>;
286                 };
287         };
288
289         hym8563 {
290                 rtc_int: rtc-int {
291                         rockchip,pins = <RK_GPIO0 0 RK_FUNC_GPIO &pcfg_pull_up>;
292                 };
293         };
294
295         lan8720a  {
296                 phy_int: phy-int {
297                         rockchip,pins = <RK_GPIO3 26 RK_FUNC_GPIO &pcfg_pull_up>;
298                 };
299         };
300
301         ir-receiver {
302                 ir_recv_pin: ir-recv-pin {
303                         rockchip,pins = <RK_GPIO0 10 RK_FUNC_GPIO &pcfg_pull_none>;
304                 };
305         };
306
307         usb {
308                 host_vbus_drv: host-vbus-drv {
309                         rockchip,pins = <0 3 RK_FUNC_GPIO &pcfg_pull_none>;
310                 };
311                 otg_vbus_drv: otg-vbus-drv {
312                         rockchip,pins = <2 31 RK_FUNC_GPIO &pcfg_pull_none>;
313                 };
314         };
315 };
316
317 &uart0 {
318         status = "okay";
319 };
320
321 &uart1 {
322         status = "okay";
323 };
324
325 &uart2 {
326         status = "okay";
327 };
328
329 &uart3 {
330         status = "okay";
331 };
332
333 &usb_host {
334         status = "okay";
335 };
336
337 &usb_otg {
338         status = "okay";
339 };
340
341 &wdt {
342         status = "okay";
343 };