Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
41 lines
1.0 KiB
Devicetree
41 lines
1.0 KiB
Devicetree
// SPDX-License-Identifier: GPL-2.0 OR MIT
|
|
/*
|
|
* Copyright (C) 2021 StarFive Technology Co., Ltd.
|
|
* Copyright (C) 2021 Emil Renner Berthing <kernel@esmil.dk>
|
|
*/
|
|
|
|
/dts-v1/;
|
|
#include "jh7100-common.dtsi"
|
|
|
|
/ {
|
|
model = "StarFive VisionFive V1";
|
|
compatible = "starfive,visionfive-v1", "starfive,jh7100";
|
|
|
|
gpio-restart {
|
|
compatible = "gpio-restart";
|
|
gpios = <&gpio 63 GPIO_ACTIVE_HIGH>;
|
|
priority = <224>;
|
|
};
|
|
};
|
|
|
|
&gmac {
|
|
phy-handle = <&phy>;
|
|
};
|
|
|
|
/*
|
|
* The board uses a Motorcomm YT8521 PHY supporting RGMII-ID, but requires
|
|
* manual adjustment of the RX internal delay to work properly. The default
|
|
* RX delay provided by the driver (1.95ns) is too high, but applying a 50%
|
|
* reduction seems to mitigate the issue.
|
|
*
|
|
* It is worth noting the adjustment is not necessary on BeagleV Starlight SBC,
|
|
* which uses a Microchip PHY. Hence, most likely the Motorcomm PHY is the one
|
|
* responsible for the misbehaviour, not the GMAC.
|
|
*/
|
|
&mdio {
|
|
phy: ethernet-phy@0 {
|
|
reg = <0>;
|
|
rx-internal-delay-ps = <900>;
|
|
};
|
|
};
|