ARM: shmobile: r8a7790: add Ether DT support
[deliverable/linux.git] / arch / arm / boot / dts / r8a7790-lager.dts
CommitLineData
3cc828fd
MD
1/*
2 * Device Tree Source for the Lager board
3 *
4 * Copyright (C) 2013 Renesas Solutions Corp.
5 *
6 * This file is licensed under the terms of the GNU General Public License
7 * version 2. This program is licensed "as is" without any warranty of any
8 * kind, whether express or implied.
9 */
10
11/dts-v1/;
31c46cbf 12#include "r8a7790.dtsi"
39fa511b 13#include <dt-bindings/gpio/gpio.h>
3cc828fd
MD
14
15/ {
16 model = "Lager";
17 compatible = "renesas,lager", "renesas,r8a7790";
18
19 chosen {
dcbbbaf2 20 bootargs = "console=ttySC6,115200 ignore_loglevel rw root=/dev/nfs ip=dhcp";
3cc828fd
MD
21 };
22
23 memory@40000000 {
24 device_type = "memory";
25 reg = <0 0x40000000 0 0x80000000>;
26 };
27
62bc32a2
MD
28 memory@180000000 {
29 device_type = "memory";
30 reg = <1 0x80000000 0 0x80000000>;
31 };
32
3cc828fd
MD
33 lbsc {
34 #address-cells = <1>;
35 #size-cells = <1>;
36 };
39fa511b
LP
37
38 leds {
39 compatible = "gpio-leds";
40 led6 {
41 gpios = <&gpio4 22 GPIO_ACTIVE_HIGH>;
42 };
43 led7 {
44 gpios = <&gpio4 23 GPIO_ACTIVE_HIGH>;
45 };
46 led8 {
47 gpios = <&gpio5 17 GPIO_ACTIVE_HIGH>;
48 };
49 };
50
51 fixedregulator3v3: fixedregulator@0 {
52 compatible = "regulator-fixed";
53 regulator-name = "fixed-3.3V";
54 regulator-min-microvolt = <3300000>;
55 regulator-max-microvolt = <3300000>;
56 regulator-boot-on;
57 regulator-always-on;
58 };
c6119944
KM
59
60 vcc_sdhi0: regulator@1 {
61 compatible = "regulator-fixed";
62
63 regulator-name = "SDHI0 Vcc";
64 regulator-min-microvolt = <3300000>;
65 regulator-max-microvolt = <3300000>;
66
67 gpio = <&gpio5 24 GPIO_ACTIVE_HIGH>;
68 enable-active-high;
69 };
70
71 vccq_sdhi0: regulator@2 {
72 compatible = "regulator-gpio";
73
74 regulator-name = "SDHI0 VccQ";
75 regulator-min-microvolt = <1800000>;
76 regulator-max-microvolt = <3300000>;
77
78 gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>;
79 gpios-states = <1>;
80 states = <3300000 1
81 1800000 0>;
82 };
83
84 vcc_sdhi2: regulator@3 {
85 compatible = "regulator-fixed";
86
87 regulator-name = "SDHI2 Vcc";
88 regulator-min-microvolt = <3300000>;
89 regulator-max-microvolt = <3300000>;
90
91 gpio = <&gpio5 25 GPIO_ACTIVE_HIGH>;
92 enable-active-high;
93 };
94
95 vccq_sdhi2: regulator@4 {
96 compatible = "regulator-gpio";
97
98 regulator-name = "SDHI2 VccQ";
99 regulator-min-microvolt = <1800000>;
100 regulator-max-microvolt = <3300000>;
101
102 gpios = <&gpio5 30 GPIO_ACTIVE_HIGH>;
103 gpios-states = <1>;
104 states = <3300000 1
105 1800000 0>;
106 };
39fa511b
LP
107};
108
62e43056
LP
109&extal_clk {
110 clock-frequency = <20000000>;
111};
112
39fa511b 113&pfc {
3024f507 114 pinctrl-0 = <&du_pins &scif0_pins &scif1_pins>;
39fa511b
LP
115 pinctrl-names = "default";
116
3024f507
LP
117 du_pins: du {
118 renesas,groups = "du_rgb666", "du_sync_1", "du_clk_out_0";
119 renesas,function = "du";
120 };
121
39fa511b
LP
122 scif0_pins: serial0 {
123 renesas,groups = "scif0_data";
124 renesas,function = "scif0";
125 };
126
127 scif1_pins: serial1 {
128 renesas,groups = "scif1_data";
129 renesas,function = "scif1";
130 };
131
c6119944
KM
132 sdhi0_pins: sd0 {
133 renesas,gpios = "sdhi0_data4", "sdhi0_ctrl";
134 renesas,function = "sdhi0";
135 };
136
137 sdhi2_pins: sd2 {
138 renesas,gpios = "sdhi2_data4", "sdhi2_ctrl";
139 renesas,function = "sdhi2";
140 };
141
39fa511b
LP
142 mmc1_pins: mmc1 {
143 renesas,groups = "mmc1_data8", "mmc1_ctrl";
144 renesas,function = "mmc1";
145 };
9fe7c4f8
GU
146
147 qspi_pins: spi {
148 renesas,groups = "qspi_ctrl", "qspi_data4";
149 renesas,function = "qspi";
150 };
39fa511b
LP
151};
152
153&mmcif1 {
154 pinctrl-0 = <&mmc1_pins>;
155 pinctrl-names = "default";
156
157 vmmc-supply = <&fixedregulator3v3>;
158 bus-width = <8>;
159 non-removable;
160 status = "okay";
3cc828fd 161};
c6181b9f
VB
162
163&sata1 {
164 status = "okay";
165};
9fe7c4f8
GU
166
167&spi {
168 pinctrl-0 = <&qspi_pins>;
169 pinctrl-names = "default";
170
171 status = "okay";
172
173 flash: flash@0 {
174 #address-cells = <1>;
175 #size-cells = <1>;
176 compatible = "spansion,s25fl512s";
177 reg = <0>;
178 spi-max-frequency = <30000000>;
179 m25p,fast-read;
180
181 partition@0 {
182 label = "loader";
183 reg = <0x00000000 0x00040000>;
184 read-only;
185 };
186 partition@40000 {
187 label = "user";
188 reg = <0x00040000 0x00400000>;
189 read-only;
190 };
191 partition@440000 {
192 label = "flash";
193 reg = <0x00440000 0x03bc0000>;
194 };
195 };
196};
c6119944
KM
197
198&sdhi0 {
199 pinctrl-0 = <&sdhi0_pins>;
200 pinctrl-names = "default";
201
202 vmmc-supply = <&vcc_sdhi0>;
203 vqmmc-supply = <&vccq_sdhi0>;
204 cd-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>;
205 status = "okay";
206};
207
208&sdhi2 {
209 pinctrl-0 = <&sdhi2_pins>;
210 pinctrl-names = "default";
211
212 vmmc-supply = <&vcc_sdhi2>;
213 vqmmc-supply = <&vccq_sdhi2>;
214 cd-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>;
215 status = "okay";
216};
This page took 0.075533 seconds and 5 git commands to generate.