mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-02 08:32:55 +00:00

v1.3B: v1.3B uses motorcomm YT8531(rgmii-id phy) x2, need delay and inverse configurations. The tx_clk of v1.3B uses an external clock and needs to be switched to an external clock source. v1.2A: v1.2A gmac0 uses motorcomm YT8531(rgmii-id) PHY, and needs delay configurations. v1.2A gmac1 uses motorcomm YT8512(rmii) PHY, and needs to switch rx and rx to external clock sources. Tested-by: Tommaso Merciai <tomm.merciai@gmail.com> Signed-off-by: Samin Guo <samin.guo@starfivetech.com> [conor: squashed a fix from Samin to use the actual properties] Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
27 lines
643 B
Plaintext
27 lines
643 B
Plaintext
// SPDX-License-Identifier: GPL-2.0 OR MIT
|
|
/*
|
|
* Copyright (C) 2022 StarFive Technology Co., Ltd.
|
|
* Copyright (C) 2022 Emil Renner Berthing <kernel@esmil.dk>
|
|
*/
|
|
|
|
/dts-v1/;
|
|
#include "jh7110-starfive-visionfive-2.dtsi"
|
|
|
|
/ {
|
|
model = "StarFive VisionFive 2 v1.2A";
|
|
compatible = "starfive,visionfive-2-v1.2a", "starfive,jh7110";
|
|
};
|
|
|
|
&gmac1 {
|
|
phy-mode = "rmii";
|
|
assigned-clocks = <&syscrg JH7110_SYSCLK_GMAC1_TX>,
|
|
<&syscrg JH7110_SYSCLK_GMAC1_RX>;
|
|
assigned-clock-parents = <&syscrg JH7110_SYSCLK_GMAC1_RMII_RTX>,
|
|
<&syscrg JH7110_SYSCLK_GMAC1_RMII_RTX>;
|
|
};
|
|
|
|
&phy0 {
|
|
rx-internal-delay-ps = <1900>;
|
|
tx-internal-delay-ps = <1350>;
|
|
};
|