blob: e33e4047b0b0c9207494e8cb3e30e4f2ac7bc6ee [file] [log] [blame]
Sergei Shtylyov4b37ab02014-04-25 02:42:41 +04001/*
2 * Device Tree Source for the Henninger board
3 *
4 * Copyright (C) 2014 Renesas Solutions Corp.
5 * Copyright (C) 2014 Cogent Embedded, Inc.
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/;
13#include "r8a7791.dtsi"
Sergei Shtylyov1299df02014-05-03 21:04:34 +040014#include <dt-bindings/gpio/gpio.h>
Sergei Shtylyov4b37ab02014-04-25 02:42:41 +040015
16/ {
17 model = "Henninger";
18 compatible = "renesas,henninger", "renesas,r8a7791";
19
20 aliases {
21 serial0 = &scif0;
22 };
23
24 chosen {
Sergei Shtylyov26b0d2c2014-04-25 02:44:12 +040025 bootargs = "console=ttySC0,38400 ignore_loglevel rw root=/dev/nfs ip=dhcp";
Geert Uytterhoeven8590e2d2014-10-03 17:11:41 +020026 stdout-path = &scif0;
Sergei Shtylyov4b37ab02014-04-25 02:42:41 +040027 };
28
29 memory@40000000 {
30 device_type = "memory";
31 reg = <0 0x40000000 0 0x40000000>;
32 };
33
34 memory@200000000 {
35 device_type = "memory";
36 reg = <2 0x00000000 0 0x40000000>;
37 };
Sergei Shtylyov1299df02014-05-03 21:04:34 +040038
39 vcc_sdhi0: regulator@0 {
40 compatible = "regulator-fixed";
41
42 regulator-name = "SDHI0 Vcc";
43 regulator-min-microvolt = <3300000>;
44 regulator-max-microvolt = <3300000>;
45 regulator-always-on;
46 };
47
48 vccq_sdhi0: regulator@1 {
49 compatible = "regulator-gpio";
50
51 regulator-name = "SDHI0 VccQ";
52 regulator-min-microvolt = <1800000>;
53 regulator-max-microvolt = <3300000>;
54
55 gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>;
56 gpios-states = <1>;
57 states = <3300000 1
58 1800000 0>;
59 };
60
61 vcc_sdhi2: regulator@2 {
62 compatible = "regulator-fixed";
63
64 regulator-name = "SDHI2 Vcc";
65 regulator-min-microvolt = <3300000>;
66 regulator-max-microvolt = <3300000>;
67 regulator-always-on;
68 };
69
70 vccq_sdhi2: regulator@3 {
71 compatible = "regulator-gpio";
72
73 regulator-name = "SDHI2 VccQ";
74 regulator-min-microvolt = <1800000>;
75 regulator-max-microvolt = <3300000>;
76
77 gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>;
78 gpios-states = <1>;
79 states = <3300000 1
80 1800000 0>;
81 };
Sergei Shtylyov4b37ab02014-04-25 02:42:41 +040082};
83
Sergei Shtylyov2af0d932014-05-02 02:56:33 +040084&extal_clk {
85 clock-frequency = <20000000>;
86};
87
Sergei Shtylyov4b37ab02014-04-25 02:42:41 +040088&pfc {
89 scif0_pins: serial0 {
90 renesas,groups = "scif0_data_d";
91 renesas,function = "scif0";
92 };
Sergei Shtylyov26b0d2c2014-04-25 02:44:12 +040093
94 ether_pins: ether {
95 renesas,groups = "eth_link", "eth_mdio", "eth_rmii";
96 renesas,function = "eth";
97 };
98
99 phy1_pins: phy1 {
100 renesas,groups = "intc_irq0";
101 renesas,function = "intc";
102 };
Sergei Shtylyov1299df02014-05-03 21:04:34 +0400103
104 sdhi0_pins: sd0 {
105 renesas,groups = "sdhi0_data4", "sdhi0_ctrl";
106 renesas,function = "sdhi0";
107 };
108
109 sdhi2_pins: sd2 {
110 renesas,groups = "sdhi2_data4", "sdhi2_ctrl";
111 renesas,function = "sdhi2";
112 };
Sergei Shtylyovf59838d2014-05-06 02:45:31 +0400113
Sergei Shtylyov29a647c2014-06-11 02:45:21 +0400114 i2c2_pins: i2c2 {
115 renesas,groups = "i2c2";
116 renesas,function = "i2c2";
117 };
118
Sergei Shtylyovf59838d2014-05-06 02:45:31 +0400119 qspi_pins: spi0 {
120 renesas,groups = "qspi_ctrl", "qspi_data4";
121 renesas,function = "qspi";
122 };
Sergei Shtylyov667366b2014-05-07 00:47:59 +0400123
124 msiof0_pins: spi1 {
125 renesas,groups = "msiof0_clk", "msiof0_sync", "msiof0_rx",
126 "msiof0_tx";
127 renesas,function = "msiof0";
128 };
Sergei Shtylyov83ccfa82014-06-24 22:13:38 +0400129
130 usb0_pins: usb0 {
131 renesas,groups = "usb0";
132 renesas,function = "usb0";
133 };
134
135 usb1_pins: usb1 {
136 renesas,groups = "usb1";
137 renesas,function = "usb1";
138 };
Sergei Shtylyov8d62f4f2014-08-02 04:05:54 +0400139
140 vin0_pins: vin0 {
141 renesas,groups = "vin0_data8", "vin0_clk";
142 renesas,function = "vin0";
143 };
Sergei Shtylyov457acc42015-01-06 01:26:45 +0300144
145 can0_pins: can0 {
146 renesas,groups = "can0_data";
147 renesas,function = "can0";
148 };
Sergei Shtylyov4b37ab02014-04-25 02:42:41 +0400149};
150
151&scif0 {
152 pinctrl-0 = <&scif0_pins>;
153 pinctrl-names = "default";
154
155 status = "okay";
156};
Sergei Shtylyov26b0d2c2014-04-25 02:44:12 +0400157
158&ether {
159 pinctrl-0 = <&ether_pins &phy1_pins>;
160 pinctrl-names = "default";
161
162 phy-handle = <&phy1>;
163 renesas,ether-link-active-low;
Geert Uytterhoevendeb9eb32014-12-09 12:25:02 +0100164 status = "okay";
Sergei Shtylyov26b0d2c2014-04-25 02:44:12 +0400165
166 phy1: ethernet-phy@1 {
167 reg = <1>;
168 interrupt-parent = <&irqc0>;
169 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
170 micrel,led-mode = <1>;
171 };
172};
Sergei Shtylyov5a62ec572014-04-26 02:51:27 +0400173
174&sata0 {
Simon Hormaneb0f12e2014-07-07 08:47:36 +0200175 status = "okay";
Sergei Shtylyov5a62ec572014-04-26 02:51:27 +0400176};
Sergei Shtylyov1299df02014-05-03 21:04:34 +0400177
178&sdhi0 {
179 pinctrl-0 = <&sdhi0_pins>;
180 pinctrl-names = "default";
181
182 vmmc-supply = <&vcc_sdhi0>;
183 vqmmc-supply = <&vccq_sdhi0>;
184 cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
185 wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
186 status = "okay";
187};
188
189&sdhi2 {
190 pinctrl-0 = <&sdhi2_pins>;
191 pinctrl-names = "default";
192
193 vmmc-supply = <&vcc_sdhi2>;
194 vqmmc-supply = <&vccq_sdhi2>;
195 cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>;
196 status = "okay";
197};
Sergei Shtylyovf59838d2014-05-06 02:45:31 +0400198
Sergei Shtylyov29a647c2014-06-11 02:45:21 +0400199&i2c2 {
200 pinctrl-0 = <&i2c2_pins>;
201 pinctrl-names = "default";
202
203 status = "okay";
204 clock-frequency = <400000>;
Sergei Shtylyov8d62f4f2014-08-02 04:05:54 +0400205
206 composite-in@20 {
207 compatible = "adi,adv7180";
208 reg = <0x20>;
209 remote = <&vin0>;
210
211 port {
212 adv7180: endpoint {
213 bus-width = <8>;
214 remote-endpoint = <&vin0ep>;
215 };
216 };
217 };
Sergei Shtylyov29a647c2014-06-11 02:45:21 +0400218};
219
Sergei Shtylyovf59838d2014-05-06 02:45:31 +0400220&qspi {
221 pinctrl-0 = <&qspi_pins>;
222 pinctrl-names = "default";
223
224 status = "okay";
225
226 flash@0 {
227 #address-cells = <1>;
228 #size-cells = <1>;
229 compatible = "spansion,s25fl512s";
230 reg = <0>;
231 spi-max-frequency = <30000000>;
232 spi-tx-bus-width = <4>;
233 spi-rx-bus-width = <4>;
234 m25p,fast-read;
235
236 partition@0 {
237 label = "loader_prg";
238 reg = <0x00000000 0x00040000>;
239 read-only;
240 };
241 partition@40000 {
242 label = "user_prg";
243 reg = <0x00040000 0x00400000>;
244 read-only;
245 };
246 partition@440000 {
247 label = "flash_fs";
248 reg = <0x00440000 0x03bc0000>;
249 };
250 };
251};
Sergei Shtylyov667366b2014-05-07 00:47:59 +0400252
253&msiof0 {
254 pinctrl-0 = <&msiof0_pins>;
255 pinctrl-names = "default";
256
257 status = "okay";
258
259 pmic@0 {
260 compatible = "renesas,r2a11302ft";
261 reg = <0>;
262 spi-max-frequency = <6000000>;
263 spi-cpol;
264 spi-cpha;
265 };
266};
Phil Edworthy485f3ce2014-06-13 10:37:22 +0100267
Sergei Shtylyov83ccfa82014-06-24 22:13:38 +0400268&pci0 {
269 status = "okay";
270 pinctrl-0 = <&usb0_pins>;
271 pinctrl-names = "default";
272};
273
274&pci1 {
275 status = "okay";
276 pinctrl-0 = <&usb1_pins>;
277 pinctrl-names = "default";
278};
279
Yoshihiro Shimoda6f4f71562014-10-24 19:45:08 +0900280&hsusb {
281 status = "okay";
282 pinctrl-0 = <&usb0_pins>;
283 pinctrl-names = "default";
284 renesas,enable-gpio = <&gpio5 31 GPIO_ACTIVE_HIGH>;
285};
286
Sergei Shtylyovfa03f6b2014-09-27 01:10:46 +0400287&usbphy {
288 status = "okay";
289};
290
Phil Edworthy485f3ce2014-06-13 10:37:22 +0100291&pcie_bus_clk {
292 status = "okay";
293};
294
295&pciec {
296 status = "okay";
297};
Sergei Shtylyov8d62f4f2014-08-02 04:05:54 +0400298
299/* composite video input */
300&vin0 {
Geert Uytterhoevendeb9eb32014-12-09 12:25:02 +0100301 status = "okay";
Sergei Shtylyov8d62f4f2014-08-02 04:05:54 +0400302 pinctrl-0 = <&vin0_pins>;
303 pinctrl-names = "default";
304
305 port {
306 #address-cells = <1>;
307 #size-cells = <0>;
308
309 vin0ep: endpoint {
310 remote-endpoint = <&adv7180>;
311 bus-width = <8>;
312 };
313 };
314};
Sergei Shtylyov457acc42015-01-06 01:26:45 +0300315
316&can0 {
317 pinctrl-0 = <&can0_pins>;
318 pinctrl-names = "default";
319 status = "okay";
320};