mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-01 06:39:05 +00:00

- Add the missing "ethernet3" alias for the Ethernet TSN port, so
U-Boot will fill its local-mac-address property based on the
"eth3addr" environment variable (if set), avoiding a random MAC
address being assigned by the OS,
- Rename the numerical Ethernet PHY label to "tsn0_phy", to avoid
future conflicts, and for consistency with the "avbN_phy" labels.
Fixes: 3d8e475bd7
("arm64: dts: renesas: white-hawk-single: Wire-up Ethernet TSN")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Link: https://lore.kernel.org/367f10a18aa196ff1c96734dd9bd5634b312c421.1746624368.git.geert+renesas@glider.be
78 lines
1.3 KiB
Plaintext
78 lines
1.3 KiB
Plaintext
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
/*
|
|
* Device Tree Source for the White Hawk Single board
|
|
*
|
|
* Copyright (C) 2023-2024 Glider bv
|
|
*/
|
|
|
|
#include "white-hawk-cpu-common.dtsi"
|
|
#include "white-hawk-common.dtsi"
|
|
|
|
/ {
|
|
model = "Renesas White Hawk Single board";
|
|
compatible = "renesas,white-hawk-single";
|
|
|
|
aliases {
|
|
ethernet3 = &tsn0;
|
|
};
|
|
};
|
|
|
|
&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 = <&tsn0_phy>;
|
|
status = "okay";
|
|
|
|
mdio {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
reset-gpios = <&gpio1 23 GPIO_ACTIVE_LOW>;
|
|
reset-post-delay-us = <4000>;
|
|
|
|
tsn0_phy: ethernet-phy@0 {
|
|
compatible = "ethernet-phy-id002b.0980",
|
|
"ethernet-phy-ieee802.3-c22";
|
|
reg = <0>;
|
|
interrupts-extended = <&gpio4 3 IRQ_TYPE_LEVEL_LOW>;
|
|
};
|
|
};
|
|
};
|