Merge tag 'renesas-dt-for-v3.16' of git://git.kernel.org/pub/scm/linux/kernel/git...
[deliverable/linux.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
21 chosen {
dcbbbaf2 22 bootargs = "console=ttySC6,115200 ignore_loglevel rw root=/dev/nfs ip=dhcp";
3cc828fd
MD
23 };
24
25 memory@40000000 {
26 device_type = "memory";
27 reg = <0 0x40000000 0 0x80000000>;
28 };
29
62bc32a2
MD
30 memory@180000000 {
31 device_type = "memory";
32 reg = <1 0x80000000 0 0x80000000>;
33 };
34
3cc828fd
MD
35 lbsc {
36 #address-cells = <1>;
37 #size-cells = <1>;
38 };
39fa511b 39
f7dcd382
MD
40 gpio_keys {
41 compatible = "gpio-keys";
42
43 button@1 {
44 linux,code = <KEY_1>;
45 label = "SW2-1";
46 gpio-key,wakeup;
47 debounce-interval = <20>;
48 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
49 };
50 button@2 {
51 linux,code = <KEY_2>;
52 label = "SW2-2";
53 gpio-key,wakeup;
54 debounce-interval = <20>;
55 gpios = <&gpio1 24 GPIO_ACTIVE_LOW>;
56 };
57 button@3 {
58 linux,code = <KEY_3>;
59 label = "SW2-3";
60 gpio-key,wakeup;
61 debounce-interval = <20>;
62 gpios = <&gpio1 26 GPIO_ACTIVE_LOW>;
63 };
64 button@4 {
65 linux,code = <KEY_4>;
66 label = "SW2-4";
67 gpio-key,wakeup;
68 debounce-interval = <20>;
69 gpios = <&gpio1 28 GPIO_ACTIVE_LOW>;
70 };
71 };
72
39fa511b
LP
73 leds {
74 compatible = "gpio-leds";
75 led6 {
76 gpios = <&gpio4 22 GPIO_ACTIVE_HIGH>;
77 };
78 led7 {
79 gpios = <&gpio4 23 GPIO_ACTIVE_HIGH>;
80 };
81 led8 {
82 gpios = <&gpio5 17 GPIO_ACTIVE_HIGH>;
83 };
84 };
85
86 fixedregulator3v3: fixedregulator@0 {
87 compatible = "regulator-fixed";
88 regulator-name = "fixed-3.3V";
89 regulator-min-microvolt = <3300000>;
90 regulator-max-microvolt = <3300000>;
91 regulator-boot-on;
92 regulator-always-on;
93 };
c6119944
KM
94
95 vcc_sdhi0: regulator@1 {
96 compatible = "regulator-fixed";
97
98 regulator-name = "SDHI0 Vcc";
99 regulator-min-microvolt = <3300000>;
100 regulator-max-microvolt = <3300000>;
101
102 gpio = <&gpio5 24 GPIO_ACTIVE_HIGH>;
103 enable-active-high;
104 };
105
106 vccq_sdhi0: regulator@2 {
107 compatible = "regulator-gpio";
108
109 regulator-name = "SDHI0 VccQ";
110 regulator-min-microvolt = <1800000>;
111 regulator-max-microvolt = <3300000>;
112
113 gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>;
114 gpios-states = <1>;
115 states = <3300000 1
116 1800000 0>;
117 };
118
119 vcc_sdhi2: regulator@3 {
120 compatible = "regulator-fixed";
121
122 regulator-name = "SDHI2 Vcc";
123 regulator-min-microvolt = <3300000>;
124 regulator-max-microvolt = <3300000>;
125
126 gpio = <&gpio5 25 GPIO_ACTIVE_HIGH>;
127 enable-active-high;
128 };
129
130 vccq_sdhi2: regulator@4 {
131 compatible = "regulator-gpio";
132
133 regulator-name = "SDHI2 VccQ";
134 regulator-min-microvolt = <1800000>;
135 regulator-max-microvolt = <3300000>;
136
137 gpios = <&gpio5 30 GPIO_ACTIVE_HIGH>;
138 gpios-states = <1>;
139 states = <3300000 1
140 1800000 0>;
141 };
39fa511b
LP
142};
143
62e43056
LP
144&extal_clk {
145 clock-frequency = <20000000>;
146};
147
39fa511b 148&pfc {
3024f507 149 pinctrl-0 = <&du_pins &scif0_pins &scif1_pins>;
39fa511b
LP
150 pinctrl-names = "default";
151
3024f507
LP
152 du_pins: du {
153 renesas,groups = "du_rgb666", "du_sync_1", "du_clk_out_0";
154 renesas,function = "du";
155 };
156
39fa511b
LP
157 scif0_pins: serial0 {
158 renesas,groups = "scif0_data";
159 renesas,function = "scif0";
160 };
161
da4ea951
SS
162 ether_pins: ether {
163 renesas,groups = "eth_link", "eth_mdio", "eth_rmii";
164 renesas,function = "eth";
165 };
166
167 phy1_pins: phy1 {
168 renesas,groups = "intc_irq0";
169 renesas,function = "intc";
170 };
171
39fa511b
LP
172 scif1_pins: serial1 {
173 renesas,groups = "scif1_data";
174 renesas,function = "scif1";
175 };
176
c6119944 177 sdhi0_pins: sd0 {
b08eed0c 178 renesas,groups = "sdhi0_data4", "sdhi0_ctrl";
c6119944
KM
179 renesas,function = "sdhi0";
180 };
181
182 sdhi2_pins: sd2 {
b08eed0c 183 renesas,groups = "sdhi2_data4", "sdhi2_ctrl";
c6119944
KM
184 renesas,function = "sdhi2";
185 };
186
39fa511b
LP
187 mmc1_pins: mmc1 {
188 renesas,groups = "mmc1_data8", "mmc1_ctrl";
189 renesas,function = "mmc1";
190 };
9fe7c4f8 191
fad6d45c 192 qspi_pins: spi0 {
9fe7c4f8
GU
193 renesas,groups = "qspi_ctrl", "qspi_data4";
194 renesas,function = "qspi";
195 };
b0403b91
GU
196
197 msiof1_pins: spi2 {
198 renesas,groups = "msiof1_clk", "msiof1_sync", "msiof1_rx",
199 "msiof1_tx";
200 renesas,function = "msiof1";
201 };
39fa511b
LP
202};
203
da4ea951
SS
204&ether {
205 pinctrl-0 = <&ether_pins &phy1_pins>;
206 pinctrl-names = "default";
207
208 phy-handle = <&phy1>;
209 renesas,ether-link-active-low;
210 status = "ok";
211
212 phy1: ethernet-phy@1 {
213 reg = <1>;
214 interrupt-parent = <&irqc0>;
215 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
1c47a6aa 216 micrel,led-mode = <1>;
da4ea951
SS
217 };
218};
219
39fa511b
LP
220&mmcif1 {
221 pinctrl-0 = <&mmc1_pins>;
222 pinctrl-names = "default";
223
224 vmmc-supply = <&fixedregulator3v3>;
225 bus-width = <8>;
226 non-removable;
227 status = "okay";
3cc828fd 228};
c6181b9f
VB
229
230&sata1 {
231 status = "okay";
232};
9fe7c4f8 233
fad6d45c 234&qspi {
9fe7c4f8
GU
235 pinctrl-0 = <&qspi_pins>;
236 pinctrl-names = "default";
237
238 status = "okay";
239
240 flash: flash@0 {
241 #address-cells = <1>;
242 #size-cells = <1>;
243 compatible = "spansion,s25fl512s";
244 reg = <0>;
245 spi-max-frequency = <30000000>;
9909d2cb
GU
246 spi-tx-bus-width = <4>;
247 spi-rx-bus-width = <4>;
9fe7c4f8
GU
248 m25p,fast-read;
249
250 partition@0 {
251 label = "loader";
252 reg = <0x00000000 0x00040000>;
253 read-only;
254 };
255 partition@40000 {
256 label = "user";
257 reg = <0x00040000 0x00400000>;
258 read-only;
259 };
260 partition@440000 {
261 label = "flash";
262 reg = <0x00440000 0x03bc0000>;
263 };
264 };
265};
c6119944 266
b0403b91
GU
267&msiof1 {
268 pinctrl-0 = <&msiof1_pins>;
269 pinctrl-names = "default";
270
271 status = "okay";
272
273 pmic: pmic@0 {
274 compatible = "renesas,r2a11302ft";
275 reg = <0>;
276 spi-max-frequency = <6000000>;
277 spi-cpol;
278 spi-cpha;
279 };
280
281};
282
c6119944
KM
283&sdhi0 {
284 pinctrl-0 = <&sdhi0_pins>;
285 pinctrl-names = "default";
286
287 vmmc-supply = <&vcc_sdhi0>;
288 vqmmc-supply = <&vccq_sdhi0>;
289 cd-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>;
290 status = "okay";
291};
292
293&sdhi2 {
294 pinctrl-0 = <&sdhi2_pins>;
295 pinctrl-names = "default";
296
297 vmmc-supply = <&vcc_sdhi2>;
298 vqmmc-supply = <&vccq_sdhi2>;
299 cd-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>;
300 status = "okay";
301};
This page took 0.091834 seconds and 5 git commands to generate.