blob: d350d7c6e9f584ba0abc8812f1d901a3d3e7f7d5 [file] [log] [blame]
Magnus Damm3cc828f2013-03-29 17:49:37 +09001/*
2 * Device Tree Source for the Lager board
3 *
Sergei Shtylyovda4ea952014-02-20 02:22:31 +03004 * Copyright (C) 2013-2014 Renesas Solutions Corp.
5 * Copyright (C) 2014 Cogent Embedded, Inc.
Magnus Damm3cc828f2013-03-29 17:49:37 +09006 *
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/;
Laurent Pinchart31c46cb2013-11-09 13:23:53 +010013#include "r8a7790.dtsi"
Laurent Pinchart39fa5112013-12-11 15:13:47 +010014#include <dt-bindings/gpio/gpio.h>
Magnus Dammf7dcd382014-03-18 21:57:48 +090015#include <dt-bindings/input/input.h>
Magnus Damm3cc828f2013-03-29 17:49:37 +090016
17/ {
18 model = "Lager";
19 compatible = "renesas,lager", "renesas,r8a7790";
20
21 chosen {
Simon Hormandcbbbaf2013-08-06 16:50:11 +090022 bootargs = "console=ttySC6,115200 ignore_loglevel rw root=/dev/nfs ip=dhcp";
Magnus Damm3cc828f2013-03-29 17:49:37 +090023 };
24
25 memory@40000000 {
26 device_type = "memory";
27 reg = <0 0x40000000 0 0x80000000>;
28 };
29
Magnus Damm62bc32a2013-10-31 12:21:41 +090030 memory@180000000 {
31 device_type = "memory";
32 reg = <1 0x80000000 0 0x80000000>;
33 };
34
Magnus Damm3cc828f2013-03-29 17:49:37 +090035 lbsc {
36 #address-cells = <1>;
37 #size-cells = <1>;
38 };
Laurent Pinchart39fa5112013-12-11 15:13:47 +010039
Magnus Dammf7dcd382014-03-18 21:57:48 +090040 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
Laurent Pinchart39fa5112013-12-11 15:13:47 +010073 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 };
Kuninori Morimotoc6119942014-02-12 21:43:19 -080094
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 };
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100142};
143
Laurent Pinchart62e43052013-12-11 15:13:49 +0100144&extal_clk {
145 clock-frequency = <20000000>;
146};
147
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100148&pfc {
Laurent Pinchart3024f502014-02-16 22:31:59 +0100149 pinctrl-0 = <&du_pins &scif0_pins &scif1_pins>;
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100150 pinctrl-names = "default";
151
Laurent Pinchart3024f502014-02-16 22:31:59 +0100152 du_pins: du {
153 renesas,groups = "du_rgb666", "du_sync_1", "du_clk_out_0";
154 renesas,function = "du";
155 };
156
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100157 scif0_pins: serial0 {
158 renesas,groups = "scif0_data";
159 renesas,function = "scif0";
160 };
161
Sergei Shtylyovda4ea952014-02-20 02:22:31 +0300162 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
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100172 scif1_pins: serial1 {
173 renesas,groups = "scif1_data";
174 renesas,function = "scif1";
175 };
176
Kuninori Morimotoc6119942014-02-12 21:43:19 -0800177 sdhi0_pins: sd0 {
178 renesas,gpios = "sdhi0_data4", "sdhi0_ctrl";
179 renesas,function = "sdhi0";
180 };
181
182 sdhi2_pins: sd2 {
183 renesas,gpios = "sdhi2_data4", "sdhi2_ctrl";
184 renesas,function = "sdhi2";
185 };
186
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100187 mmc1_pins: mmc1 {
188 renesas,groups = "mmc1_data8", "mmc1_ctrl";
189 renesas,function = "mmc1";
190 };
Geert Uytterhoeven9fe7c4f2014-02-10 11:47:30 +0100191
Geert Uytterhoevenfad6d452014-02-25 11:30:13 +0100192 qspi_pins: spi0 {
Geert Uytterhoeven9fe7c4f2014-02-10 11:47:30 +0100193 renesas,groups = "qspi_ctrl", "qspi_data4";
194 renesas,function = "qspi";
195 };
Geert Uytterhoevenb0403b92014-02-25 11:30:17 +0100196
197 msiof1_pins: spi2 {
198 renesas,groups = "msiof1_clk", "msiof1_sync", "msiof1_rx",
199 "msiof1_tx";
200 renesas,function = "msiof1";
201 };
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100202};
203
Sergei Shtylyovda4ea952014-02-20 02:22:31 +0300204&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>;
Simon Horman1c47a6a2014-04-08 09:21:35 +0900216 micrel,led-mode = <1>;
Sergei Shtylyovda4ea952014-02-20 02:22:31 +0300217 };
218};
219
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100220&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";
Magnus Damm3cc828f2013-03-29 17:49:37 +0900228};
Valentine Barshakc6181b92014-01-14 21:05:31 +0400229
230&sata1 {
231 status = "okay";
232};
Geert Uytterhoeven9fe7c4f2014-02-10 11:47:30 +0100233
Geert Uytterhoevenfad6d452014-02-25 11:30:13 +0100234&qspi {
Geert Uytterhoeven9fe7c4f2014-02-10 11:47:30 +0100235 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>;
Geert Uytterhoeven9909d2c2014-04-14 19:36:00 +0200246 spi-tx-bus-width = <4>;
247 spi-rx-bus-width = <4>;
Geert Uytterhoeven9fe7c4f2014-02-10 11:47:30 +0100248 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};
Kuninori Morimotoc6119942014-02-12 21:43:19 -0800266
Geert Uytterhoevenb0403b92014-02-25 11:30:17 +0100267&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
Kuninori Morimotoc6119942014-02-12 21:43:19 -0800283&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};