blob: 25e048525ce6907c13035e48e3148c6984fd6802 [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 Damm3cc828f2013-03-29 17:49:37 +090015
16/ {
17 model = "Lager";
18 compatible = "renesas,lager", "renesas,r8a7790";
19
Laurent Pinchart4e9c4872014-04-30 02:31:45 +020020 aliases {
21 serial6 = &scif0;
22 serial7 = &scif1;
23 };
24
Magnus Damm3cc828f2013-03-29 17:49:37 +090025 chosen {
Simon Hormandcbbbaf2013-08-06 16:50:11 +090026 bootargs = "console=ttySC6,115200 ignore_loglevel rw root=/dev/nfs ip=dhcp";
Magnus Damm3cc828f2013-03-29 17:49:37 +090027 };
28
29 memory@40000000 {
30 device_type = "memory";
31 reg = <0 0x40000000 0 0x80000000>;
32 };
33
Magnus Damm62bc32a2013-10-31 12:21:41 +090034 memory@180000000 {
35 device_type = "memory";
36 reg = <1 0x80000000 0 0x80000000>;
37 };
38
Magnus Damm3cc828f2013-03-29 17:49:37 +090039 lbsc {
40 #address-cells = <1>;
41 #size-cells = <1>;
42 };
Laurent Pinchart39fa5112013-12-11 15:13:47 +010043
44 leds {
45 compatible = "gpio-leds";
46 led6 {
47 gpios = <&gpio4 22 GPIO_ACTIVE_HIGH>;
48 };
49 led7 {
50 gpios = <&gpio4 23 GPIO_ACTIVE_HIGH>;
51 };
52 led8 {
53 gpios = <&gpio5 17 GPIO_ACTIVE_HIGH>;
54 };
55 };
56
57 fixedregulator3v3: fixedregulator@0 {
58 compatible = "regulator-fixed";
59 regulator-name = "fixed-3.3V";
60 regulator-min-microvolt = <3300000>;
61 regulator-max-microvolt = <3300000>;
62 regulator-boot-on;
63 regulator-always-on;
64 };
Kuninori Morimotoc6119942014-02-12 21:43:19 -080065
66 vcc_sdhi0: regulator@1 {
67 compatible = "regulator-fixed";
68
69 regulator-name = "SDHI0 Vcc";
70 regulator-min-microvolt = <3300000>;
71 regulator-max-microvolt = <3300000>;
72
73 gpio = <&gpio5 24 GPIO_ACTIVE_HIGH>;
74 enable-active-high;
75 };
76
77 vccq_sdhi0: regulator@2 {
78 compatible = "regulator-gpio";
79
80 regulator-name = "SDHI0 VccQ";
81 regulator-min-microvolt = <1800000>;
82 regulator-max-microvolt = <3300000>;
83
84 gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>;
85 gpios-states = <1>;
86 states = <3300000 1
87 1800000 0>;
88 };
89
90 vcc_sdhi2: regulator@3 {
91 compatible = "regulator-fixed";
92
93 regulator-name = "SDHI2 Vcc";
94 regulator-min-microvolt = <3300000>;
95 regulator-max-microvolt = <3300000>;
96
97 gpio = <&gpio5 25 GPIO_ACTIVE_HIGH>;
98 enable-active-high;
99 };
100
101 vccq_sdhi2: regulator@4 {
102 compatible = "regulator-gpio";
103
104 regulator-name = "SDHI2 VccQ";
105 regulator-min-microvolt = <1800000>;
106 regulator-max-microvolt = <3300000>;
107
108 gpios = <&gpio5 30 GPIO_ACTIVE_HIGH>;
109 gpios-states = <1>;
110 states = <3300000 1
111 1800000 0>;
112 };
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100113};
114
Laurent Pinchart62e43052013-12-11 15:13:49 +0100115&extal_clk {
116 clock-frequency = <20000000>;
117};
118
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100119&pfc {
Laurent Pinchart4e9c4872014-04-30 02:31:45 +0200120 pinctrl-0 = <&du_pins>;
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100121 pinctrl-names = "default";
122
Laurent Pinchart3024f502014-02-16 22:31:59 +0100123 du_pins: du {
124 renesas,groups = "du_rgb666", "du_sync_1", "du_clk_out_0";
125 renesas,function = "du";
126 };
127
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100128 scif0_pins: serial0 {
129 renesas,groups = "scif0_data";
130 renesas,function = "scif0";
131 };
132
Sergei Shtylyovda4ea952014-02-20 02:22:31 +0300133 ether_pins: ether {
134 renesas,groups = "eth_link", "eth_mdio", "eth_rmii";
135 renesas,function = "eth";
136 };
137
138 phy1_pins: phy1 {
139 renesas,groups = "intc_irq0";
140 renesas,function = "intc";
141 };
142
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100143 scif1_pins: serial1 {
144 renesas,groups = "scif1_data";
145 renesas,function = "scif1";
146 };
147
Kuninori Morimotoc6119942014-02-12 21:43:19 -0800148 sdhi0_pins: sd0 {
149 renesas,gpios = "sdhi0_data4", "sdhi0_ctrl";
150 renesas,function = "sdhi0";
151 };
152
153 sdhi2_pins: sd2 {
154 renesas,gpios = "sdhi2_data4", "sdhi2_ctrl";
155 renesas,function = "sdhi2";
156 };
157
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100158 mmc1_pins: mmc1 {
159 renesas,groups = "mmc1_data8", "mmc1_ctrl";
160 renesas,function = "mmc1";
161 };
Geert Uytterhoeven9fe7c4f2014-02-10 11:47:30 +0100162
163 qspi_pins: spi {
164 renesas,groups = "qspi_ctrl", "qspi_data4";
165 renesas,function = "qspi";
166 };
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100167};
168
Sergei Shtylyovda4ea952014-02-20 02:22:31 +0300169&ether {
170 pinctrl-0 = <&ether_pins &phy1_pins>;
171 pinctrl-names = "default";
172
173 phy-handle = <&phy1>;
174 renesas,ether-link-active-low;
175 status = "ok";
176
177 phy1: ethernet-phy@1 {
178 reg = <1>;
179 interrupt-parent = <&irqc0>;
180 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
181 };
182};
183
Laurent Pinchart39fa5112013-12-11 15:13:47 +0100184&mmcif1 {
185 pinctrl-0 = <&mmc1_pins>;
186 pinctrl-names = "default";
187
188 vmmc-supply = <&fixedregulator3v3>;
189 bus-width = <8>;
190 non-removable;
191 status = "okay";
Magnus Damm3cc828f2013-03-29 17:49:37 +0900192};
Valentine Barshakc6181b92014-01-14 21:05:31 +0400193
194&sata1 {
195 status = "okay";
196};
Geert Uytterhoeven9fe7c4f2014-02-10 11:47:30 +0100197
198&spi {
199 pinctrl-0 = <&qspi_pins>;
200 pinctrl-names = "default";
201
202 status = "okay";
203
204 flash: flash@0 {
205 #address-cells = <1>;
206 #size-cells = <1>;
207 compatible = "spansion,s25fl512s";
208 reg = <0>;
209 spi-max-frequency = <30000000>;
210 m25p,fast-read;
211
212 partition@0 {
213 label = "loader";
214 reg = <0x00000000 0x00040000>;
215 read-only;
216 };
217 partition@40000 {
218 label = "user";
219 reg = <0x00040000 0x00400000>;
220 read-only;
221 };
222 partition@440000 {
223 label = "flash";
224 reg = <0x00440000 0x03bc0000>;
225 };
226 };
227};
Kuninori Morimotoc6119942014-02-12 21:43:19 -0800228
Laurent Pinchart4e9c4872014-04-30 02:31:45 +0200229&scif0 {
230 pinctrl-0 = <&scif0_pins>;
231 pinctrl-names = "default";
232
233 status = "okay";
234};
235
236&scif1 {
237 pinctrl-0 = <&scif1_pins>;
238 pinctrl-names = "default";
239
240 status = "okay";
241};
242
Kuninori Morimotoc6119942014-02-12 21:43:19 -0800243&sdhi0 {
244 pinctrl-0 = <&sdhi0_pins>;
245 pinctrl-names = "default";
246
247 vmmc-supply = <&vcc_sdhi0>;
248 vqmmc-supply = <&vccq_sdhi0>;
249 cd-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>;
250 status = "okay";
251};
252
253&sdhi2 {
254 pinctrl-0 = <&sdhi2_pins>;
255 pinctrl-names = "default";
256
257 vmmc-supply = <&vcc_sdhi2>;
258 vqmmc-supply = <&vccq_sdhi2>;
259 cd-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>;
260 status = "okay";
261};