summaryrefslogtreecommitdiffstats
path: root/arch/arm64/boot/dts/renesas/r8a779g2-white-hawk-single.dts
blob: 50a428572d9bd93343c7e630145b1a5125ac5181 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
/*
 * Device Tree Source for the R-Car V4H ES2.0 White Hawk Single board
 *
 * Copyright (C) 2023 Glider bv
 */

/dts-v1/;
#include "r8a779g2.dtsi"
#include "white-hawk-cpu-common.dtsi"
#include "white-hawk-common.dtsi"

/ {
	model = "Renesas White Hawk Single board based on r8a779g2";
	compatible = "renesas,white-hawk-single", "renesas,r8a779g2",
		     "renesas,r8a779g0";
};

&hscif0 {
	uart-has-rtscts;
};

&hscif0_pins {
	groups = "hscif0_data", "hscif0_ctrl";
	function = "hscif0";
};

&pfc {
	tsn0_pins: tsn0 {
		mux {
			groups = "tsn0_link", "tsn0_mdio", "tsn0_rgmii",
				 "tsn0_txcrefclk";
			function = "tsn0";
		};

		link {
			groups = "tsn0_link";
			bias-disable;
		};

		mdio {
			groups = "tsn0_mdio";
			drive-strength = <24>;
			bias-disable;
		};

		rgmii {
			groups = "tsn0_rgmii";
			drive-strength = <24>;
			bias-disable;
		};
	};
};

&tsn0 {
	pinctrl-0 = <&tsn0_pins>;
	pinctrl-names = "default";
	phy-mode = "rgmii";
	phy-handle = <&phy3>;
	status = "okay";

	mdio {
		#address-cells = <1>;
		#size-cells = <0>;

		reset-gpios = <&gpio1 23 GPIO_ACTIVE_LOW>;
		reset-post-delay-us = <4000>;

		phy3: ethernet-phy@0 {
			compatible = "ethernet-phy-id002b.0980",
				     "ethernet-phy-ieee802.3-c22";
			reg = <0>;
			interrupt-parent = <&gpio4>;
			interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
		};
	};
};