xref: /linux/arch/arm64/boot/dts/renesas/r8a779h0-gray-hawk-single.dts (revision 63275d848a6e883c6d37843cfed2504013cc6f0b)
1// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2/*
3 * Device Tree Source for the R-Car V4M Gray Hawk Single board
4 *
5 * Copyright (C) 2023 Renesas Electronics Corp.
6 * Copyright (C) 2024 Glider bv
7 */
8
9/dts-v1/;
10
11#include <dt-bindings/gpio/gpio.h>
12
13#include "r8a779h0.dtsi"
14
15/ {
16	model = "Renesas Gray Hawk Single board based on r8a779h0";
17	compatible = "renesas,gray-hawk-single", "renesas,r8a779h0";
18
19	aliases {
20		serial0 = &hscif0;
21		ethernet0 = &avb0;
22	};
23
24	chosen {
25		bootargs = "ignore_loglevel";
26		stdout-path = "serial0:921600n8";
27	};
28
29	memory@48000000 {
30		device_type = "memory";
31		/* first 128MB is reserved for secure area. */
32		reg = <0x0 0x48000000 0x0 0x78000000>;
33	};
34
35	memory@480000000 {
36		device_type = "memory";
37		reg = <0x4 0x80000000 0x1 0x80000000>;
38	};
39};
40
41&avb0 {
42	pinctrl-0 = <&avb0_pins>;
43	pinctrl-names = "default";
44	phy-handle = <&phy0>;
45	tx-internal-delay-ps = <2000>;
46	status = "okay";
47
48	phy0: ethernet-phy@0 {
49		compatible = "ethernet-phy-id0022.1622",
50			     "ethernet-phy-ieee802.3-c22";
51		rxc-skew-ps = <1500>;
52		reg = <0>;
53		interrupt-parent = <&gpio7>;
54		interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
55		reset-gpios = <&gpio7 10 GPIO_ACTIVE_LOW>;
56	};
57};
58
59&extal_clk {
60	clock-frequency = <16666666>;
61};
62
63&extalr_clk {
64	clock-frequency = <32768>;
65};
66
67&hscif0 {
68	pinctrl-0 = <&hscif0_pins>;
69	pinctrl-names = "default";
70
71	uart-has-rtscts;
72	status = "okay";
73};
74
75&i2c0 {
76	pinctrl-0 = <&i2c0_pins>;
77	pinctrl-names = "default";
78
79	status = "okay";
80	clock-frequency = <400000>;
81
82	eeprom@50 {
83		compatible = "rohm,br24g01", "atmel,24c01";
84		label = "cpu-board";
85		reg = <0x50>;
86		pagesize = <8>;
87	};
88
89	eeprom@51 {
90		compatible = "rohm,br24g01", "atmel,24c01";
91		label = "breakout-board";
92		reg = <0x51>;
93		pagesize = <8>;
94	};
95
96	eeprom@52 {
97		compatible = "rohm,br24g01", "atmel,24c01";
98		label = "csi-dsi-sub-board-id";
99		reg = <0x52>;
100		pagesize = <8>;
101	};
102
103	eeprom@53 {
104		compatible = "rohm,br24g01", "atmel,24c01";
105		label = "ethernet-sub-board-id";
106		reg = <0x53>;
107		pagesize = <8>;
108	};
109};
110
111&pfc {
112	pinctrl-0 = <&scif_clk_pins>;
113	pinctrl-names = "default";
114
115	avb0_pins: avb0 {
116		mux {
117			groups = "avb0_link", "avb0_mdio", "avb0_rgmii",
118				 "avb0_txcrefclk";
119			function = "avb0";
120		};
121
122		pins_mdio {
123			groups = "avb0_mdio";
124			drive-strength = <21>;
125		};
126
127		pins_mii {
128			groups = "avb0_rgmii";
129			drive-strength = <21>;
130		};
131	};
132
133	hscif0_pins: hscif0 {
134		groups = "hscif0_data", "hscif0_ctrl";
135		function = "hscif0";
136	};
137
138	i2c0_pins: i2c0 {
139		groups = "i2c0";
140		function = "i2c0";
141	};
142
143	scif_clk_pins: scif-clk {
144		groups = "scif_clk";
145		function = "scif_clk";
146	};
147};
148
149&rwdt {
150	timeout-sec = <60>;
151	status = "okay";
152};
153
154&scif_clk {
155	clock-frequency = <24000000>;
156};
157