1// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2/*
3 * Device Tree Source for the White Hawk Single board
4 *
5 * Copyright (C) 2023-2024 Glider bv
6 */
7
8#include "white-hawk-cpu-common.dtsi"
9#include "white-hawk-common.dtsi"
10
11/ {
12	model = "Renesas White Hawk Single board";
13	compatible = "renesas,white-hawk-single";
14};
15
16&hscif0 {
17	uart-has-rtscts;
18};
19
20&hscif0_pins {
21	groups = "hscif0_data", "hscif0_ctrl";
22	function = "hscif0";
23};
24
25&pfc {
26	tsn0_pins: tsn0 {
27		mux {
28			groups = "tsn0_link", "tsn0_mdio", "tsn0_rgmii",
29				 "tsn0_txcrefclk";
30			function = "tsn0";
31		};
32
33		link {
34			groups = "tsn0_link";
35			bias-disable;
36		};
37
38		mdio {
39			groups = "tsn0_mdio";
40			drive-strength = <24>;
41			bias-disable;
42		};
43
44		rgmii {
45			groups = "tsn0_rgmii";
46			drive-strength = <24>;
47			bias-disable;
48		};
49	};
50};
51
52&tsn0 {
53	pinctrl-0 = <&tsn0_pins>;
54	pinctrl-names = "default";
55	phy-mode = "rgmii";
56	phy-handle = <&phy3>;
57	status = "okay";
58
59	mdio {
60		#address-cells = <1>;
61		#size-cells = <0>;
62
63		reset-gpios = <&gpio1 23 GPIO_ACTIVE_LOW>;
64		reset-post-delay-us = <4000>;
65
66		phy3: ethernet-phy@0 {
67			compatible = "ethernet-phy-id002b.0980",
68				     "ethernet-phy-ieee802.3-c22";
69			reg = <0>;
70			interrupts-extended = <&gpio4 3 IRQ_TYPE_LEVEL_LOW>;
71		};
72	};
73};
74