[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <d1c600f1-a874-4bb8-8b9f-22a3414edfcc@gmail.com>
Date: Sat, 8 Mar 2025 16:53:56 +0200
From: Arturas Moskvinas <arturas.moskvinas@...il.com>
To: Jonas Karlman <jonas@...boo.se>, Heiko Stuebner <heiko@...ech.de>,
Rob Herring <robh@...nel.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>
Cc: devicetree@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-rockchip@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 2/2] arm64: dts: rockchip: Add Xunlong Orange Pi 3B
On 6/27/24 2:03 AM, Jonas Karlman wrote:
> The Xunlong Orange Pi 3B is a single-board computer based on the
> Rockchip RK3566 SoC.
...> +
> +&gmac1 {
> + phy-handle = <&rgmii_phy1>;
> + status = "okay";
> +};
> +
> +&mdio1 {
> + rgmii_phy1: ethernet-phy@1 {
> + compatible = "ethernet-phy-ieee802.3-c22";
> + reg = <1>;
Jonas, were you able to test V1.1 board's Ethernet?
Whenever I start the board - Ethernet initialization fails with:
```
[ 21.140055] rk_gmac-dwmac fe010000.ethernet eth0: __stmmac_open:
Cannot attach to PHY (error: -19)
```
But if reset is performed inside gmac - initialization succeeds.
Eg. patch:
```
---
linux-6.12.17.orig/arch/arm64/boot/dts/rockchip/rk3566-orangepi-3b-v1.1.dts
+++ linux-6.12.17/arch/arm64/boot/dts/rockchip/rk3566-orangepi-3b-v1.1.dts
@@ -16,14 +16,14 @@
&gmac1 {
phy-handle = <&rgmii_phy1>;
status = "okay";
+ snps,reset-gpio = <&gpio3 RK_PC2 GPIO_ACTIVE_LOW>;
+ snps,reset-active-low;
+ snps,reset-delays-us = <0 50000 200000>;
};
&mdio1 {
rgmii_phy1: ethernet-phy@1 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <1>;
- reset-assert-us = <20000>;
- reset-deassert-us = <50000>;
- reset-gpios = <&gpio3 RK_PC2 GPIO_ACTIVE_LOW>;
};
};
```
> + reset-assert-us = <20000>;
> + reset-deassert-us = <50000>;
> + reset-gpios = <&gpio3 RK_PC2 GPIO_ACTIVE_LOW>;
> + };
> +};
Arturas Moskvinas
Powered by blists - more mailing lists