xref: /freebsd/sys/contrib/device-tree/src/arm64/renesas/white-hawk-single.dtsi (revision ae5de77ed78ae54d86cead5604869212e8008e6b)
12846c905SEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
22846c905SEmmanuel Vadot/*
32846c905SEmmanuel Vadot * Device Tree Source for the White Hawk Single board
42846c905SEmmanuel Vadot *
52846c905SEmmanuel Vadot * Copyright (C) 2023-2024 Glider bv
62846c905SEmmanuel Vadot */
72846c905SEmmanuel Vadot
82846c905SEmmanuel Vadot#include "white-hawk-cpu-common.dtsi"
92846c905SEmmanuel Vadot#include "white-hawk-common.dtsi"
102846c905SEmmanuel Vadot
112846c905SEmmanuel Vadot/ {
122846c905SEmmanuel Vadot	model = "Renesas White Hawk Single board";
132846c905SEmmanuel Vadot	compatible = "renesas,white-hawk-single";
14*ae5de77eSEmmanuel Vadot
15*ae5de77eSEmmanuel Vadot	aliases {
16*ae5de77eSEmmanuel Vadot		ethernet3 = &tsn0;
17*ae5de77eSEmmanuel Vadot	};
182846c905SEmmanuel Vadot};
192846c905SEmmanuel Vadot
202846c905SEmmanuel Vadot&hscif0 {
212846c905SEmmanuel Vadot	uart-has-rtscts;
222846c905SEmmanuel Vadot};
232846c905SEmmanuel Vadot
242846c905SEmmanuel Vadot&hscif0_pins {
252846c905SEmmanuel Vadot	groups = "hscif0_data", "hscif0_ctrl";
262846c905SEmmanuel Vadot	function = "hscif0";
272846c905SEmmanuel Vadot};
282846c905SEmmanuel Vadot
292846c905SEmmanuel Vadot&pfc {
302846c905SEmmanuel Vadot	tsn0_pins: tsn0 {
312846c905SEmmanuel Vadot		mux {
322846c905SEmmanuel Vadot			groups = "tsn0_link", "tsn0_mdio", "tsn0_rgmii",
332846c905SEmmanuel Vadot				 "tsn0_txcrefclk";
342846c905SEmmanuel Vadot			function = "tsn0";
352846c905SEmmanuel Vadot		};
362846c905SEmmanuel Vadot
372846c905SEmmanuel Vadot		link {
382846c905SEmmanuel Vadot			groups = "tsn0_link";
392846c905SEmmanuel Vadot			bias-disable;
402846c905SEmmanuel Vadot		};
412846c905SEmmanuel Vadot
422846c905SEmmanuel Vadot		mdio {
432846c905SEmmanuel Vadot			groups = "tsn0_mdio";
442846c905SEmmanuel Vadot			drive-strength = <24>;
452846c905SEmmanuel Vadot			bias-disable;
462846c905SEmmanuel Vadot		};
472846c905SEmmanuel Vadot
482846c905SEmmanuel Vadot		rgmii {
492846c905SEmmanuel Vadot			groups = "tsn0_rgmii";
502846c905SEmmanuel Vadot			drive-strength = <24>;
512846c905SEmmanuel Vadot			bias-disable;
522846c905SEmmanuel Vadot		};
532846c905SEmmanuel Vadot	};
542846c905SEmmanuel Vadot};
552846c905SEmmanuel Vadot
562846c905SEmmanuel Vadot&tsn0 {
572846c905SEmmanuel Vadot	pinctrl-0 = <&tsn0_pins>;
582846c905SEmmanuel Vadot	pinctrl-names = "default";
592846c905SEmmanuel Vadot	phy-mode = "rgmii";
60*ae5de77eSEmmanuel Vadot	phy-handle = <&tsn0_phy>;
612846c905SEmmanuel Vadot	status = "okay";
622846c905SEmmanuel Vadot
632846c905SEmmanuel Vadot	mdio {
642846c905SEmmanuel Vadot		#address-cells = <1>;
652846c905SEmmanuel Vadot		#size-cells = <0>;
662846c905SEmmanuel Vadot
672846c905SEmmanuel Vadot		reset-gpios = <&gpio1 23 GPIO_ACTIVE_LOW>;
682846c905SEmmanuel Vadot		reset-post-delay-us = <4000>;
692846c905SEmmanuel Vadot
70*ae5de77eSEmmanuel Vadot		tsn0_phy: ethernet-phy@0 {
712846c905SEmmanuel Vadot			compatible = "ethernet-phy-id002b.0980",
722846c905SEmmanuel Vadot				     "ethernet-phy-ieee802.3-c22";
732846c905SEmmanuel Vadot			reg = <0>;
742846c905SEmmanuel Vadot			interrupts-extended = <&gpio4 3 IRQ_TYPE_LEVEL_LOW>;
752846c905SEmmanuel Vadot		};
762846c905SEmmanuel Vadot	};
772846c905SEmmanuel Vadot};
78