From: Arturas Moskvinas <arturas.moskvinas@gmail.com>
To: Jonas Karlman <jonas@kwiboo.se>, Heiko Stuebner <heiko@sntech.de>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>
Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 2/2] arm64: dts: rockchip: Add Xunlong Orange Pi 3B
Date: Sat, 8 Mar 2025 16:53:56 +0200 [thread overview]
Message-ID: <d1c600f1-a874-4bb8-8b9f-22a3414edfcc@gmail.com> (raw)
In-Reply-To: <20240626230319.1425316-3-jonas@kwiboo.se>
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
next prev parent reply other threads:[~2025-03-08 14:54 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-26 23:03 [PATCH v2 0/2] arm64: dts: rockchip: Add Xunlong Orange Pi 3B Jonas Karlman
2024-06-26 23:03 ` [PATCH v2 1/2] dt-bindings: arm: " Jonas Karlman
2024-06-27 7:47 ` Krzysztof Kozlowski
2024-06-26 23:03 ` [PATCH v2 2/2] arm64: dts: " Jonas Karlman
2024-06-28 0:01 ` kernel test robot
2024-06-28 10:49 ` kernel test robot
2025-03-08 14:53 ` Arturas Moskvinas [this message]
2025-03-08 16:34 ` Jonas Karlman
2025-03-08 19:03 ` Arturas Moskvinas
2024-06-27 14:34 ` [PATCH v2 0/2] " Rob Herring (Arm)
2024-07-08 22:27 ` Heiko Stuebner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d1c600f1-a874-4bb8-8b9f-22a3414edfcc@gmail.com \
--to=arturas.moskvinas@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=heiko@sntech.de \
--cc=jonas@kwiboo.se \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).