xref: /freebsd/sys/contrib/device-tree/src/arm64/renesas/r8a779g2-white-hawk-single.dts (revision b2d2a78ad80ec68d4a17f5aef97d21686cb1e29b)
101950c46SEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
201950c46SEmmanuel Vadot/*
301950c46SEmmanuel Vadot * Device Tree Source for the R-Car V4H ES2.0 White Hawk Single board
401950c46SEmmanuel Vadot *
501950c46SEmmanuel Vadot * Copyright (C) 2023 Glider bv
601950c46SEmmanuel Vadot */
701950c46SEmmanuel Vadot
801950c46SEmmanuel Vadot/dts-v1/;
901950c46SEmmanuel Vadot#include "r8a779g2.dtsi"
1001950c46SEmmanuel Vadot#include "white-hawk-cpu-common.dtsi"
1101950c46SEmmanuel Vadot#include "white-hawk-common.dtsi"
1201950c46SEmmanuel Vadot
1301950c46SEmmanuel Vadot/ {
1401950c46SEmmanuel Vadot	model = "Renesas White Hawk Single board based on r8a779g2";
1501950c46SEmmanuel Vadot	compatible = "renesas,white-hawk-single", "renesas,r8a779g2",
1601950c46SEmmanuel Vadot		     "renesas,r8a779g0";
1701950c46SEmmanuel Vadot};
1801950c46SEmmanuel Vadot
1901950c46SEmmanuel Vadot&hscif0 {
2001950c46SEmmanuel Vadot	uart-has-rtscts;
2101950c46SEmmanuel Vadot};
2201950c46SEmmanuel Vadot
2301950c46SEmmanuel Vadot&hscif0_pins {
2401950c46SEmmanuel Vadot	groups = "hscif0_data", "hscif0_ctrl";
2501950c46SEmmanuel Vadot	function = "hscif0";
2601950c46SEmmanuel Vadot};
27*b2d2a78aSEmmanuel Vadot
28*b2d2a78aSEmmanuel Vadot&pfc {
29*b2d2a78aSEmmanuel Vadot	tsn0_pins: tsn0 {
30*b2d2a78aSEmmanuel Vadot		mux {
31*b2d2a78aSEmmanuel Vadot			groups = "tsn0_link", "tsn0_mdio", "tsn0_rgmii",
32*b2d2a78aSEmmanuel Vadot				 "tsn0_txcrefclk";
33*b2d2a78aSEmmanuel Vadot			function = "tsn0";
34*b2d2a78aSEmmanuel Vadot		};
35*b2d2a78aSEmmanuel Vadot
36*b2d2a78aSEmmanuel Vadot		link {
37*b2d2a78aSEmmanuel Vadot			groups = "tsn0_link";
38*b2d2a78aSEmmanuel Vadot			bias-disable;
39*b2d2a78aSEmmanuel Vadot		};
40*b2d2a78aSEmmanuel Vadot
41*b2d2a78aSEmmanuel Vadot		mdio {
42*b2d2a78aSEmmanuel Vadot			groups = "tsn0_mdio";
43*b2d2a78aSEmmanuel Vadot			drive-strength = <24>;
44*b2d2a78aSEmmanuel Vadot			bias-disable;
45*b2d2a78aSEmmanuel Vadot		};
46*b2d2a78aSEmmanuel Vadot
47*b2d2a78aSEmmanuel Vadot		rgmii {
48*b2d2a78aSEmmanuel Vadot			groups = "tsn0_rgmii";
49*b2d2a78aSEmmanuel Vadot			drive-strength = <24>;
50*b2d2a78aSEmmanuel Vadot			bias-disable;
51*b2d2a78aSEmmanuel Vadot		};
52*b2d2a78aSEmmanuel Vadot	};
53*b2d2a78aSEmmanuel Vadot};
54*b2d2a78aSEmmanuel Vadot
55*b2d2a78aSEmmanuel Vadot&tsn0 {
56*b2d2a78aSEmmanuel Vadot	pinctrl-0 = <&tsn0_pins>;
57*b2d2a78aSEmmanuel Vadot	pinctrl-names = "default";
58*b2d2a78aSEmmanuel Vadot	phy-mode = "rgmii";
59*b2d2a78aSEmmanuel Vadot	phy-handle = <&phy3>;
60*b2d2a78aSEmmanuel Vadot	status = "okay";
61*b2d2a78aSEmmanuel Vadot
62*b2d2a78aSEmmanuel Vadot	mdio {
63*b2d2a78aSEmmanuel Vadot		#address-cells = <1>;
64*b2d2a78aSEmmanuel Vadot		#size-cells = <0>;
65*b2d2a78aSEmmanuel Vadot
66*b2d2a78aSEmmanuel Vadot		reset-gpios = <&gpio1 23 GPIO_ACTIVE_LOW>;
67*b2d2a78aSEmmanuel Vadot		reset-post-delay-us = <4000>;
68*b2d2a78aSEmmanuel Vadot
69*b2d2a78aSEmmanuel Vadot		phy3: ethernet-phy@0 {
70*b2d2a78aSEmmanuel Vadot			compatible = "ethernet-phy-id002b.0980",
71*b2d2a78aSEmmanuel Vadot				     "ethernet-phy-ieee802.3-c22";
72*b2d2a78aSEmmanuel Vadot			reg = <0>;
73*b2d2a78aSEmmanuel Vadot			interrupt-parent = <&gpio4>;
74*b2d2a78aSEmmanuel Vadot			interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
75*b2d2a78aSEmmanuel Vadot		};
76*b2d2a78aSEmmanuel Vadot	};
77*b2d2a78aSEmmanuel Vadot};
78