ARM: shmobile: Lager: Correct I2C bus for VDD MPU regulator
[linux-2.6-block.git] / arch / arm / boot / dts / r8a7790-lager.dts
CommitLineData
3cc828fd
MD
1/*
2 * Device Tree Source for the Lager board
3 *
da4ea951
SS
4 * Copyright (C) 2013-2014 Renesas Solutions Corp.
5 * Copyright (C) 2014 Cogent Embedded, Inc.
3cc828fd
MD
6 *
7 * This file is licensed under the terms of the GNU General Public License
8 * version 2. This program is licensed "as is" without any warranty of any
9 * kind, whether express or implied.
10 */
11
12/dts-v1/;
31c46cbf 13#include "r8a7790.dtsi"
39fa511b 14#include <dt-bindings/gpio/gpio.h>
f7dcd382 15#include <dt-bindings/input/input.h>
3cc828fd
MD
16
17/ {
18 model = "Lager";
19 compatible = "renesas,lager", "renesas,r8a7790";
20
4e9c4877
LP
21 aliases {
22 serial6 = &scif0;
23 serial7 = &scif1;
24 };
25
3cc828fd 26 chosen {
dcbbbaf2 27 bootargs = "console=ttySC6,115200 ignore_loglevel rw root=/dev/nfs ip=dhcp";
3cc828fd
MD
28 };
29
30 memory@40000000 {
31 device_type = "memory";
7b16c61a 32 reg = <0 0x40000000 0 0x40000000>;
3cc828fd
MD
33 };
34
62bc32a2
MD
35 memory@180000000 {
36 device_type = "memory";
7b16c61a 37 reg = <1 0x40000000 0 0xc0000000>;
62bc32a2
MD
38 };
39
3cc828fd
MD
40 lbsc {
41 #address-cells = <1>;
42 #size-cells = <1>;
43 };
39fa511b 44
f7dcd382
MD
45 gpio_keys {
46 compatible = "gpio-keys";
47
48 button@1 {
49 linux,code = <KEY_1>;
50 label = "SW2-1";
51 gpio-key,wakeup;
52 debounce-interval = <20>;
53 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
54 };
55 button@2 {
56 linux,code = <KEY_2>;
57 label = "SW2-2";
58 gpio-key,wakeup;
59 debounce-interval = <20>;
60 gpios = <&gpio1 24 GPIO_ACTIVE_LOW>;
61 };
62 button@3 {
63 linux,code = <KEY_3>;
64 label = "SW2-3";
65 gpio-key,wakeup;
66 debounce-interval = <20>;
67 gpios = <&gpio1 26 GPIO_ACTIVE_LOW>;
68 };
69 button@4 {
70 linux,code = <KEY_4>;
71 label = "SW2-4";
72 gpio-key,wakeup;
73 debounce-interval = <20>;
74 gpios = <&gpio1 28 GPIO_ACTIVE_LOW>;
75 };
76 };
77
39fa511b
LP
78 leds {
79 compatible = "gpio-leds";
80 led6 {
81 gpios = <&gpio4 22 GPIO_ACTIVE_HIGH>;
82 };
83 led7 {
84 gpios = <&gpio4 23 GPIO_ACTIVE_HIGH>;
85 };
86 led8 {
87 gpios = <&gpio5 17 GPIO_ACTIVE_HIGH>;
88 };
89 };
90
91 fixedregulator3v3: fixedregulator@0 {
92 compatible = "regulator-fixed";
93 regulator-name = "fixed-3.3V";
94 regulator-min-microvolt = <3300000>;
95 regulator-max-microvolt = <3300000>;
96 regulator-boot-on;
97 regulator-always-on;
98 };
c6119944
KM
99
100 vcc_sdhi0: regulator@1 {
101 compatible = "regulator-fixed";
102
103 regulator-name = "SDHI0 Vcc";
104 regulator-min-microvolt = <3300000>;
105 regulator-max-microvolt = <3300000>;
106
107 gpio = <&gpio5 24 GPIO_ACTIVE_HIGH>;
108 enable-active-high;
109 };
110
111 vccq_sdhi0: regulator@2 {
112 compatible = "regulator-gpio";
113
114 regulator-name = "SDHI0 VccQ";
115 regulator-min-microvolt = <1800000>;
116 regulator-max-microvolt = <3300000>;
117
118 gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>;
119 gpios-states = <1>;
120 states = <3300000 1
121 1800000 0>;
122 };
123
124 vcc_sdhi2: regulator@3 {
125 compatible = "regulator-fixed";
126
127 regulator-name = "SDHI2 Vcc";
128 regulator-min-microvolt = <3300000>;
129 regulator-max-microvolt = <3300000>;
130
131 gpio = <&gpio5 25 GPIO_ACTIVE_HIGH>;
132 enable-active-high;
133 };
134
135 vccq_sdhi2: regulator@4 {
136 compatible = "regulator-gpio";
137
138 regulator-name = "SDHI2 VccQ";
139 regulator-min-microvolt = <1800000>;
140 regulator-max-microvolt = <3300000>;
141
142 gpios = <&gpio5 30 GPIO_ACTIVE_HIGH>;
143 gpios-states = <1>;
144 states = <3300000 1
145 1800000 0>;
146 };
39fa511b
LP
147};
148
62e43056
LP
149&extal_clk {
150 clock-frequency = <20000000>;
151};
152
39fa511b 153&pfc {
4e9c4877 154 pinctrl-0 = <&du_pins>;
39fa511b
LP
155 pinctrl-names = "default";
156
3024f507
LP
157 du_pins: du {
158 renesas,groups = "du_rgb666", "du_sync_1", "du_clk_out_0";
159 renesas,function = "du";
160 };
161
39fa511b
LP
162 scif0_pins: serial0 {
163 renesas,groups = "scif0_data";
164 renesas,function = "scif0";
165 };
166
da4ea951
SS
167 ether_pins: ether {
168 renesas,groups = "eth_link", "eth_mdio", "eth_rmii";
169 renesas,function = "eth";
170 };
171
172 phy1_pins: phy1 {
173 renesas,groups = "intc_irq0";
174 renesas,function = "intc";
175 };
176
39fa511b
LP
177 scif1_pins: serial1 {
178 renesas,groups = "scif1_data";
179 renesas,function = "scif1";
180 };
181
c6119944 182 sdhi0_pins: sd0 {
b08eed0c 183 renesas,groups = "sdhi0_data4", "sdhi0_ctrl";
c6119944
KM
184 renesas,function = "sdhi0";
185 };
186
187 sdhi2_pins: sd2 {
b08eed0c 188 renesas,groups = "sdhi2_data4", "sdhi2_ctrl";
c6119944
KM
189 renesas,function = "sdhi2";
190 };
191
39fa511b
LP
192 mmc1_pins: mmc1 {
193 renesas,groups = "mmc1_data8", "mmc1_ctrl";
194 renesas,function = "mmc1";
195 };
9fe7c4f8 196
fad6d45c 197 qspi_pins: spi0 {
9fe7c4f8
GU
198 renesas,groups = "qspi_ctrl", "qspi_data4";
199 renesas,function = "qspi";
200 };
b0403b91
GU
201
202 msiof1_pins: spi2 {
203 renesas,groups = "msiof1_clk", "msiof1_sync", "msiof1_rx",
204 "msiof1_tx";
205 renesas,function = "msiof1";
206 };
05f72e03 207
d90bf60c
SH
208 i2c1_pins: i2c1 {
209 renesas,groups = "i2c1";
210 renesas,function = "i2c1";
211 };
212
213 i2c2_pins: i2c2 {
214 renesas,groups = "i2c2";
215 renesas,function = "i2c2";
216 };
217
5179ffd0
KN
218 iic3_pins: iic3 {
219 renesas,groups = "iic3";
220 renesas,function = "iic3";
05f72e03 221 };
d8584660
BD
222
223 usb0_pins: usb0 {
224 renesas,groups = "usb0";
225 renesas,function = "usb0";
226 };
227
228 usb1_pins: usb1 {
229 renesas,groups = "usb1";
230 renesas,function = "usb1";
231 };
232
233 usb2_pins: usb2 {
234 renesas,groups = "usb2";
235 renesas,function = "usb2";
236 };
39fa511b
LP
237};
238
da4ea951
SS
239&ether {
240 pinctrl-0 = <&ether_pins &phy1_pins>;
241 pinctrl-names = "default";
242
243 phy-handle = <&phy1>;
244 renesas,ether-link-active-low;
245 status = "ok";
246
247 phy1: ethernet-phy@1 {
248 reg = <1>;
249 interrupt-parent = <&irqc0>;
250 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
1c47a6aa 251 micrel,led-mode = <1>;
da4ea951
SS
252 };
253};
254
39fa511b
LP
255&mmcif1 {
256 pinctrl-0 = <&mmc1_pins>;
257 pinctrl-names = "default";
258
259 vmmc-supply = <&fixedregulator3v3>;
260 bus-width = <8>;
261 non-removable;
262 status = "okay";
3cc828fd 263};
c6181b9f
VB
264
265&sata1 {
266 status = "okay";
267};
9fe7c4f8 268
fad6d45c 269&qspi {
9fe7c4f8
GU
270 pinctrl-0 = <&qspi_pins>;
271 pinctrl-names = "default";
272
273 status = "okay";
274
275 flash: flash@0 {
276 #address-cells = <1>;
277 #size-cells = <1>;
278 compatible = "spansion,s25fl512s";
279 reg = <0>;
280 spi-max-frequency = <30000000>;
9909d2cb
GU
281 spi-tx-bus-width = <4>;
282 spi-rx-bus-width = <4>;
9fe7c4f8
GU
283 m25p,fast-read;
284
285 partition@0 {
286 label = "loader";
287 reg = <0x00000000 0x00040000>;
288 read-only;
289 };
290 partition@40000 {
291 label = "user";
292 reg = <0x00040000 0x00400000>;
293 read-only;
294 };
295 partition@440000 {
296 label = "flash";
297 reg = <0x00440000 0x03bc0000>;
298 };
299 };
300};
c6119944 301
4e9c4877
LP
302&scif0 {
303 pinctrl-0 = <&scif0_pins>;
304 pinctrl-names = "default";
305
306 status = "okay";
307};
308
309&scif1 {
310 pinctrl-0 = <&scif1_pins>;
311 pinctrl-names = "default";
312
313 status = "okay";
314};
315
b0403b91
GU
316&msiof1 {
317 pinctrl-0 = <&msiof1_pins>;
318 pinctrl-names = "default";
319
320 status = "okay";
321
322 pmic: pmic@0 {
323 compatible = "renesas,r2a11302ft";
324 reg = <0>;
325 spi-max-frequency = <6000000>;
326 spi-cpol;
327 spi-cpha;
328 };
b0403b91
GU
329};
330
c6119944
KM
331&sdhi0 {
332 pinctrl-0 = <&sdhi0_pins>;
333 pinctrl-names = "default";
334
335 vmmc-supply = <&vcc_sdhi0>;
336 vqmmc-supply = <&vccq_sdhi0>;
337 cd-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>;
338 status = "okay";
339};
340
341&sdhi2 {
342 pinctrl-0 = <&sdhi2_pins>;
343 pinctrl-names = "default";
344
345 vmmc-supply = <&vcc_sdhi2>;
346 vqmmc-supply = <&vccq_sdhi2>;
347 cd-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>;
348 status = "okay";
349};
05f72e03 350
b989e138
BC
351&cpu0 {
352 cpu0-supply = <&vdd_dvfs>;
353};
e489c2a9
BD
354
355&i2c0 {
356 status = "ok";
357};
358
359&i2c1 {
360 status = "ok";
e1a2c4eb
BD
361 pinctrl-0 = <&i2c1_pins>;
362 pinctrl-names = "default";
e489c2a9
BD
363};
364
365&i2c2 {
366 status = "ok";
e1a2c4eb
BD
367 pinctrl-0 = <&i2c2_pins>;
368 pinctrl-names = "default";
e489c2a9
BD
369};
370
5179ffd0 371&iic3 {
aca4ec44 372 pinctrl-names = "default";
5179ffd0 373 pinctrl-0 = <&iic3_pins>;
aca4ec44
SH
374 status = "okay";
375
376 vdd_dvfs: regulator@68 {
377 compatible = "diasemi,da9210";
378 reg = <0x68>;
379
380 regulator-min-microvolt = <1000000>;
381 regulator-max-microvolt = <1000000>;
382 regulator-boot-on;
383 regulator-always-on;
384 };
e489c2a9 385};
d8584660
BD
386
387&pci0 {
388 status = "okay";
389 pinctrl-0 = <&usb0_pins>;
390 pinctrl-names = "default";
391};
392
393&pci1 {
394 status = "okay";
395 pinctrl-0 = <&usb1_pins>;
396 pinctrl-names = "default";
397};
398
399&pci2 {
400 status = "okay";
401 pinctrl-0 = <&usb2_pins>;
402 pinctrl-names = "default";
403};