xref: /openbmc/u-boot/arch/arm/dts/r8a77995-draak.dts (revision 78a88f79)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Device Tree Source for the Draak board
4 *
5 * Copyright (C) 2016 Renesas Electronics Corp.
6 * Copyright (C) 2017 Glider bvba
7 */
8
9/dts-v1/;
10#include "r8a77995.dtsi"
11#include <dt-bindings/gpio/gpio.h>
12
13/ {
14	model = "Renesas Draak board based on r8a77995";
15	compatible = "renesas,draak", "renesas,r8a77995";
16
17	aliases {
18		serial0 = &scif2;
19		ethernet0 = &avb;
20	};
21
22	chosen {
23		bootargs = "ignore_loglevel";
24		stdout-path = "serial0:115200n8";
25	};
26
27	vga {
28		compatible = "vga-connector";
29
30		port {
31			vga_in: endpoint {
32				remote-endpoint = <&adv7123_out>;
33			};
34		};
35	};
36
37	vga-encoder {
38		compatible = "adi,adv7123";
39
40		ports {
41			#address-cells = <1>;
42			#size-cells = <0>;
43
44			port@0 {
45				reg = <0>;
46				adv7123_in: endpoint {
47					remote-endpoint = <&du_out_rgb>;
48				};
49			};
50			port@1 {
51				reg = <1>;
52				adv7123_out: endpoint {
53					remote-endpoint = <&vga_in>;
54				};
55			};
56		};
57	};
58
59	memory@48000000 {
60		device_type = "memory";
61		/* first 128MB is reserved for secure area. */
62		reg = <0x0 0x48000000 0x0 0x18000000>;
63	};
64
65	reg_1p8v: regulator0 {
66		compatible = "regulator-fixed";
67		regulator-name = "fixed-1.8V";
68		regulator-min-microvolt = <1800000>;
69		regulator-max-microvolt = <1800000>;
70		regulator-boot-on;
71		regulator-always-on;
72	};
73
74	reg_3p3v: regulator1 {
75		compatible = "regulator-fixed";
76		regulator-name = "fixed-3.3V";
77		regulator-min-microvolt = <3300000>;
78		regulator-max-microvolt = <3300000>;
79		regulator-boot-on;
80		regulator-always-on;
81	};
82};
83
84&extal_clk {
85	clock-frequency = <48000000>;
86};
87
88&pfc {
89	avb0_pins: avb {
90		mux {
91			groups = "avb0_link", "avb0_mdc", "avb0_mii";
92			function = "avb0";
93		};
94	};
95
96	du_pins: du {
97		groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0";
98		function = "du";
99	};
100
101	i2c0_pins: i2c0 {
102		groups = "i2c0";
103		function = "i2c0";
104	};
105
106	i2c1_pins: i2c1 {
107		groups = "i2c1";
108		function = "i2c1";
109	};
110
111	pwm0_pins: pwm0 {
112		groups = "pwm0_c";
113		function = "pwm0";
114	};
115
116	pwm1_pins: pwm1 {
117		groups = "pwm1_c";
118		function = "pwm1";
119	};
120
121	scif2_pins: scif2 {
122		groups = "scif2_data";
123		function = "scif2";
124	};
125
126	sdhi2_pins: sd2 {
127		groups = "mmc_data8", "mmc_ctrl";
128		function = "mmc";
129		power-source = <1800>;
130	};
131
132	sdhi2_pins_uhs: sd2_uhs {
133		groups = "mmc_data8", "mmc_ctrl";
134		function = "mmc";
135		power-source = <1800>;
136	};
137
138	usb0_pins: usb0 {
139		groups = "usb0";
140		function = "usb0";
141	};
142};
143
144&i2c0 {
145	pinctrl-0 = <&i2c0_pins>;
146	pinctrl-names = "default";
147	status = "okay";
148
149	eeprom@50 {
150		compatible = "rohm,br24t01", "atmel,24c01";
151		reg = <0x50>;
152		pagesize = <8>;
153	};
154};
155
156&i2c1 {
157	pinctrl-0 = <&i2c1_pins>;
158	pinctrl-names = "default";
159	status = "okay";
160};
161
162&du {
163	pinctrl-0 = <&du_pins>;
164	pinctrl-names = "default";
165	status = "okay";
166
167	ports {
168		port@0 {
169			endpoint {
170				remote-endpoint = <&adv7123_in>;
171			};
172		};
173	};
174};
175
176&ehci0 {
177	status = "okay";
178};
179
180&ohci0 {
181	status = "okay";
182};
183
184&avb {
185	pinctrl-0 = <&avb0_pins>;
186	pinctrl-names = "default";
187	renesas,no-ether-link;
188	phy-handle = <&phy0>;
189	phy-mode = "rgmii-txid";
190	status = "okay";
191
192	phy0: ethernet-phy@0 {
193		rxc-skew-ps = <1500>;
194		reg = <0>;
195		interrupt-parent = <&gpio5>;
196		interrupts = <19 IRQ_TYPE_LEVEL_LOW>;
197	};
198};
199
200&scif2 {
201	pinctrl-0 = <&scif2_pins>;
202	pinctrl-names = "default";
203
204	status = "okay";
205};
206
207&sdhi2 {
208	/* used for on-board eMMC */
209	pinctrl-0 = <&sdhi2_pins>;
210	pinctrl-1 = <&sdhi2_pins_uhs>;
211	pinctrl-names = "default", "state_uhs";
212
213	vmmc-supply = <&reg_3p3v>;
214	vqmmc-supply = <&reg_1p8v>;
215	bus-width = <8>;
216	mmc-hs200-1_8v;
217	non-removable;
218	status = "okay";
219};
220
221&usb2_phy0 {
222	pinctrl-0 = <&usb0_pins>;
223	pinctrl-names = "default";
224
225	status = "okay";
226};
227
228&pwm0 {
229	pinctrl-0 = <&pwm0_pins>;
230	pinctrl-names = "default";
231
232	status = "okay";
233};
234
235&pwm1 {
236	pinctrl-0 = <&pwm1_pins>;
237	pinctrl-names = "default";
238
239	status = "okay";
240};
241
242&rwdt {
243	timeout-sec = <60>;
244	status = "okay";
245};
246