xref: /linux/arch/arm64/boot/dts/renesas/r8a77980-v3hsk.dts (revision 7f71507851fc7764b36a3221839607d3a45c2025)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Device Tree Source for the V3H Starter Kit board
4 *
5 * Copyright (C) 2018 Renesas Electronics Corp.
6 * Copyright (C) 2018 Cogent Embedded, Inc.
7 */
8
9/dts-v1/;
10#include "r8a77980.dtsi"
11#include <dt-bindings/gpio/gpio.h>
12
13/ {
14	model = "Renesas V3H Starter Kit board";
15	compatible = "renesas,v3hsk", "renesas,r8a77980";
16
17	aliases {
18		i2c0 = &i2c0;
19		i2c1 = &i2c1;
20		i2c2 = &i2c2;
21		i2c3 = &i2c3;
22		i2c4 = &i2c4;
23		i2c5 = &i2c5;
24		serial0 = &scif0;
25		ethernet0 = &gether;
26	};
27
28	chosen {
29		stdout-path = "serial0:115200n8";
30	};
31
32	hdmi-out {
33		compatible = "hdmi-connector";
34		type = "a";
35
36		port {
37			hdmi_con: endpoint {
38				remote-endpoint = <&adv7511_out>;
39			};
40		};
41	};
42
43	lvds-decoder {
44		compatible = "thine,thc63lvd1024";
45		vcc-supply = <&vcc3v3_d5>;
46
47		ports {
48			#address-cells = <1>;
49			#size-cells = <0>;
50
51			port@0 {
52				reg = <0>;
53				thc63lvd1024_in: endpoint {
54					remote-endpoint = <&lvds0_out>;
55				};
56			};
57
58			port@2 {
59				reg = <2>;
60				thc63lvd1024_out: endpoint {
61					remote-endpoint = <&adv7511_in>;
62				};
63			};
64		};
65	};
66
67	memory@48000000 {
68		device_type = "memory";
69		/* first 128MB is reserved for secure area. */
70		reg = <0 0x48000000 0 0x78000000>;
71	};
72
73	osc1_clk: osc1-clock {
74		compatible = "fixed-clock";
75		#clock-cells = <0>;
76		clock-frequency = <148500000>;
77	};
78
79	vcc1v8_d4: regulator-0 {
80		compatible = "regulator-fixed";
81		regulator-name = "VCC1V8_D4";
82		regulator-min-microvolt = <1800000>;
83		regulator-max-microvolt = <1800000>;
84		regulator-boot-on;
85		regulator-always-on;
86	};
87
88	vcc3v3_d5: regulator-1 {
89		compatible = "regulator-fixed";
90		regulator-name = "VCC3V3_D5";
91		regulator-min-microvolt = <3300000>;
92		regulator-max-microvolt = <3300000>;
93		regulator-boot-on;
94		regulator-always-on;
95	};
96};
97
98&du {
99	clocks = <&cpg CPG_MOD 724>,
100		 <&osc1_clk>;
101	clock-names = "du.0", "dclkin.0";
102	status = "okay";
103};
104
105&extal_clk {
106	clock-frequency = <16666666>;
107};
108
109&extalr_clk {
110	clock-frequency = <32768>;
111};
112
113&gether {
114	pinctrl-0 = <&gether_pins>;
115	pinctrl-names = "default";
116
117	phy-mode = "rgmii";
118	phy-handle = <&phy0>;
119	renesas,no-ether-link;
120	status = "okay";
121
122	phy0: ethernet-phy@0 {
123		compatible = "ethernet-phy-id0022.1622",
124			     "ethernet-phy-ieee802.3-c22";
125		rxc-skew-ps = <1500>;
126		reg = <0>;
127		interrupts-extended = <&gpio4 23 IRQ_TYPE_LEVEL_LOW>;
128		reset-gpios = <&gpio4 22 GPIO_ACTIVE_LOW>;
129	};
130};
131
132&i2c0 {
133	pinctrl-0 = <&i2c0_pins>;
134	pinctrl-names = "default";
135
136	status = "okay";
137	clock-frequency = <400000>;
138
139	hdmi@39 {
140		compatible = "adi,adv7511w";
141		#sound-dai-cells = <0>;
142		reg = <0x39>;
143		interrupts-extended = <&gpio1 20 IRQ_TYPE_LEVEL_LOW>;
144		avdd-supply = <&vcc1v8_d4>;
145		dvdd-supply = <&vcc1v8_d4>;
146		pvdd-supply = <&vcc1v8_d4>;
147		bgvdd-supply = <&vcc1v8_d4>;
148		dvdd-3v-supply = <&vcc3v3_d5>;
149
150		adi,input-depth = <8>;
151		adi,input-colorspace = "rgb";
152		adi,input-clock = "1x";
153
154		ports {
155			#address-cells = <1>;
156			#size-cells = <0>;
157
158			port@0 {
159				reg = <0>;
160				adv7511_in: endpoint {
161					remote-endpoint = <&thc63lvd1024_out>;
162				};
163			};
164
165			port@1 {
166				reg = <1>;
167				adv7511_out: endpoint {
168					remote-endpoint = <&hdmi_con>;
169				};
170			};
171		};
172	};
173};
174
175&lvds0 {
176	status = "okay";
177
178	ports {
179		port@1 {
180			lvds0_out: endpoint {
181				remote-endpoint = <&thc63lvd1024_in>;
182			};
183		};
184	};
185};
186
187&pfc {
188	gether_pins: gether {
189		groups = "gether_mdio_a", "gether_rgmii",
190			 "gether_txcrefclk", "gether_txcrefclk_mega";
191		function = "gether";
192	};
193
194	i2c0_pins: i2c0 {
195		groups = "i2c0";
196		function = "i2c0";
197	};
198
199	qspi0_pins: qspi0 {
200		groups = "qspi0_ctrl", "qspi0_data4";
201		function = "qspi0";
202	};
203
204	scif0_pins: scif0 {
205		groups = "scif0_data";
206		function = "scif0";
207	};
208
209	scif_clk_pins: scif_clk {
210		groups = "scif_clk_b";
211		function = "scif_clk";
212	};
213};
214
215&rpc {
216	pinctrl-0 = <&qspi0_pins>;
217	pinctrl-names = "default";
218
219	status = "okay";
220
221	flash@0 {
222		compatible = "spansion,s25fs512s", "jedec,spi-nor";
223		reg = <0>;
224		spi-max-frequency = <50000000>;
225		spi-rx-bus-width = <4>;
226
227		partitions {
228			compatible = "fixed-partitions";
229			#address-cells = <1>;
230			#size-cells = <1>;
231
232			bootparam@0 {
233				reg = <0x00000000 0x040000>;
234				read-only;
235			};
236			cr7@40000 {
237				reg = <0x00040000 0x080000>;
238				read-only;
239			};
240			cert_header_sa3@c0000 {
241				reg = <0x000c0000 0x080000>;
242				read-only;
243			};
244			bl2@140000 {
245				reg = <0x00140000 0x040000>;
246				read-only;
247			};
248			cert_header_sa6@180000 {
249				reg = <0x00180000 0x040000>;
250				read-only;
251			};
252			bl31@1c0000 {
253				reg = <0x001c0000 0x460000>;
254				read-only;
255			};
256			uboot@640000 {
257				reg = <0x00640000 0x0c0000>;
258				read-only;
259			};
260			uboot-env@700000 {
261				reg = <0x00700000 0x040000>;
262				read-only;
263			};
264			dtb@740000 {
265				reg = <0x00740000 0x080000>;
266			};
267			kernel@7c0000 {
268				reg = <0x007c0000 0x1400000>;
269			};
270			user@1bc0000 {
271				reg = <0x01bc0000 0x2440000>;
272			};
273		};
274	};
275};
276
277&rwdt {
278	timeout-sec = <60>;
279	status = "okay";
280};
281
282&scif0 {
283	pinctrl-0 = <&scif0_pins>, <&scif_clk_pins>;
284	pinctrl-names = "default";
285
286	status = "okay";
287};
288
289&scif_clk {
290	clock-frequency = <14745600>;
291};
292