Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
[sfrench/cifs-2.6.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_sd0: sdmmc-regulator {
69                 compatible = "regulator-fixed";
70                 regulator-name = "sdmmc-supply";
71                 regulator-min-microvolt = <3300000>;
72                 regulator-max-microvolt = <3300000>;
73                 gpio = <&gpio3 1 GPIO_ACTIVE_LOW>;
74                 startup-delay-us = <100000>;
75                 vin-supply = <&vcc_io>;
76         };
77 };
78
79 &emac {
80         status = "okay";
81
82         pinctrl-names = "default";
83         pinctrl-0 = <&emac_xfer>, <&emac_mdio>, <&phy_int>;
84
85         phy = <&phy0>;
86         phy-supply = <&vcc_rmii>;
87
88         phy0: ethernet-phy@0 {
89                 reg = <0>;
90                 interrupt-parent = <&gpio3>;
91                 interrupts = <26 IRQ_TYPE_LEVEL_LOW>;
92         };
93 };
94
95 &i2c1 {
96         status = "okay";
97         clock-frequency = <400000>;
98
99         act8846: act8846@5a {
100                 compatible = "active-semi,act8846";
101                 reg = <0x5a>;
102                 status = "okay";
103
104                 pinctrl-names = "default";
105                 pinctrl-0 = <&act8846_dvs0_ctl>;
106
107                 regulators {
108                         vcc_ddr: REG1 {
109                                 regulator-name = "VCC_DDR";
110                                 regulator-min-microvolt = <1200000>;
111                                 regulator-max-microvolt = <1200000>;
112                                 regulator-always-on;
113                         };
114
115                         vdd_log: REG2 {
116                                 regulator-name = "VDD_LOG";
117                                 regulator-min-microvolt = <1000000>;
118                                 regulator-max-microvolt = <1000000>;
119                                 regulator-always-on;
120                         };
121
122                         vdd_arm: REG3 {
123                                 regulator-name = "VDD_ARM";
124                                 regulator-min-microvolt = <875000>;
125                                 regulator-max-microvolt = <1300000>;
126                                 regulator-always-on;
127                         };
128
129                         vcc_io: REG4 {
130                                 regulator-name = "VCC_IO";
131                                 regulator-min-microvolt = <3300000>;
132                                 regulator-max-microvolt = <3300000>;
133                                 regulator-always-on;
134                         };
135
136                         vdd_10: REG5 {
137                                 regulator-name = "VDD_10";
138                                 regulator-min-microvolt = <1000000>;
139                                 regulator-max-microvolt = <1000000>;
140                                 regulator-always-on;
141                         };
142
143                         vdd_hdmi: REG6 {
144                                 regulator-name = "VDD_HDMI";
145                                 regulator-min-microvolt = <2500000>;
146                                 regulator-max-microvolt = <2500000>;
147                                 regulator-always-on;
148                         };
149
150                         vcc18: REG7 {
151                                 regulator-name = "VCC_18";
152                                 regulator-min-microvolt = <1800000>;
153                                 regulator-max-microvolt = <1800000>;
154                                 regulator-always-on;
155                         };
156
157                         vcca_33: REG8 {
158                                 regulator-name = "VCCA_33";
159                                 regulator-min-microvolt = <3300000>;
160                                 regulator-max-microvolt = <3300000>;
161                                 regulator-always-on;
162                         };
163
164                         vcc_rmii: REG9 {
165                                 regulator-name = "VCC_RMII";
166                                 regulator-min-microvolt = <3300000>;
167                                 regulator-max-microvolt = <3300000>;
168                                 regulator-always-on;
169                         };
170
171                         vccio_wl: REG10 {
172                                 regulator-name = "VCCIO_WL";
173                                 regulator-min-microvolt = <3300000>;
174                                 regulator-max-microvolt = <3300000>;
175                                 regulator-always-on;
176                         };
177
178                         vcc_18: REG11 {
179                                 regulator-name = "VCC18_IO";
180                                 regulator-min-microvolt = <1800000>;
181                                 regulator-max-microvolt = <1800000>;
182                                 regulator-always-on;
183                         };
184
185                         vcc28: REG12 {
186                                 regulator-name = "VCC_28";
187                                 regulator-min-microvolt = <2800000>;
188                                 regulator-max-microvolt = <2800000>;
189                                 regulator-always-on;
190                         };
191                 };
192         };
193 };
194
195 &mmc0 {
196         num-slots = <1>;
197         status = "okay";
198         pinctrl-names = "default";
199         pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
200         vmmc-supply = <&vcc_sd0>;
201
202         slot@0 {
203                 reg = <0>;
204                 bus-width = <4>;
205                 disable-wp;
206         };
207 };
208
209 &pinctrl {
210         pcfg_output_low: pcfg-output-low {
211                 output-low;
212         };
213
214         act8846 {
215                 act8846_dvs0_ctl: act8846-dvs0-ctl {
216                         rockchip,pins = <RK_GPIO3 27 RK_FUNC_GPIO &pcfg_output_low>;
217                 };
218         };
219
220         lan8720a  {
221                 phy_int: phy-int {
222                         rockchip,pins = <RK_GPIO3 26 RK_FUNC_GPIO &pcfg_pull_up>;
223                 };
224         };
225
226         ir-receiver {
227                 ir_recv_pin: ir-recv-pin {
228                         rockchip,pins = <RK_GPIO0 10 RK_FUNC_GPIO &pcfg_pull_none>;
229                 };
230         };
231 };
232
233 &uart0 {
234         status = "okay";
235 };
236
237 &uart1 {
238         status = "okay";
239 };
240
241 &uart2 {
242         status = "okay";
243 };
244
245 &uart3 {
246         status = "okay";
247 };
248
249 &wdt {
250         status = "okay";
251 };