From: Heiko Stuebner <heiko@sntech.de>
To: FUKAUMI Naoki <naoki@radxa.com>,
michael.riesch@wolfvision.net, Anand Moon <linux.amoon@gmail.com>
Cc: linux-rockchip@lists.infradead.org, FUKAUMI Naoki <naoki@radxa.com>
Subject: Re: [PATCH] arm64: dts: rockchip: rock-3a: make ethernet work
Date: Fri, 14 Jul 2023 17:46:04 +0200 [thread overview]
Message-ID: <25008843.6Emhk5qWAg@phil> (raw)
In-Reply-To: <20230714063027.74489-1-naoki@radxa.com>
Am Freitag, 14. Juli 2023, 08:30:27 CEST schrieb FUKAUMI Naoki:
> ethernet on Radxa ROCK 3A is not working by following error:
>
> rk_gmac-dwmac fe010000.ethernet eth0: no phy at addr -1
> rk_gmac-dwmac fe010000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)
>
> to fix this problem, align related properties with vendor kernel
> https://github.com/radxa/kernel/blob/linux-5.10-gen-rkr4.1/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts
>
> Fixes: 22a442e6586c ("arm64: dts: rockchip: add basic dts for the radxa rock3 model a")
> Signed-off-by: FUKAUMI Naoki <naoki@radxa.com>
There also is a second patch in the mix adding the gmac1_clkin
ef9f4b4a5020 ("arm64: dts: rockchip: Add support of external clock to ethernet node on Rock 3A SBC")
And this patch does the exact opposite as the original nodes.
Can someone please mention board versions? Or did the gmac1 never
really work in the first place?
Thanks
Heiko
> ---
> .../boot/dts/rockchip/rk3568-rock-3a.dts | 32 ++++++-------------
> 1 file changed, 10 insertions(+), 22 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts
> index 917f5b2b8aab..f9381ab9629b 100644
> --- a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts
> +++ b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts
> @@ -32,13 +32,6 @@ hdmi_con_in: endpoint {
> };
> };
>
> - gmac1_clkin: external-gmac1-clock {
> - compatible = "fixed-clock";
> - clock-frequency = <125000000>;
> - clock-output-names = "gmac1_clkin";
> - #clock-cells = <0>;
> - };
> -
> leds {
> compatible = "gpio-leds";
>
> @@ -256,18 +249,24 @@ &cpu3 {
>
> &gmac1 {
> assigned-clocks = <&cru SCLK_GMAC1_RX_TX>, <&cru SCLK_GMAC1>;
> - assigned-clock-parents = <&cru SCLK_GMAC1_RGMII_SPEED>, <&gmac1_clkin>;
> - clock_in_out = "input";
> + assigned-clock-parents = <&cru SCLK_GMAC1_RGMII_SPEED>;
> + assigned-clock-rates = <0>, <125000000>;
> + clock_in_out = "output";
> phy-handle = <&rgmii_phy1>;
> - phy-mode = "rgmii-id";
> + phy-mode = "rgmii";
> phy-supply = <&vcc_3v3>;
> pinctrl-names = "default";
> pinctrl-0 = <&gmac1m1_miim
> &gmac1m1_tx_bus2
> &gmac1m1_rx_bus2
> &gmac1m1_rgmii_clk
> - &gmac1m1_clkinout
> &gmac1m1_rgmii_bus>;
> + snps,reset-gpio = <&gpio3 RK_PB0 GPIO_ACTIVE_LOW>;
> + snps,reset-active-low;
> + /* Reset time is 20ms, 100ms for rtl8211f */
> + snps,reset-delays-us = <0 20000 100000>;
> + tx_delay = <0x42>;
> + rx_delay = <0x28>;
> status = "okay";
> };
>
> @@ -588,11 +587,6 @@ &mdio1 {
> rgmii_phy1: ethernet-phy@0 {
> compatible = "ethernet-phy-ieee802.3-c22";
> reg = <0x0>;
> - pinctrl-names = "default";
> - pinctrl-0 = <ð_phy_rst>;
> - reset-assert-us = <20000>;
> - reset-deassert-us = <100000>;
> - reset-gpios = <&gpio3 RK_PB0 GPIO_ACTIVE_LOW>;
> };
> };
>
> @@ -630,12 +624,6 @@ vcc_mipi_en: vcc_mipi_en {
> };
> };
>
> - ethernet {
> - eth_phy_rst: eth_phy_rst {
> - rockchip,pins = <3 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
> - };
> - };
> -
> hym8563 {
> hym8563_int: hym8563-int {
> rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_up>;
>
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
next prev parent reply other threads:[~2023-07-14 15:46 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-14 6:30 [PATCH] arm64: dts: rockchip: rock-3a: make ethernet work FUKAUMI Naoki
2023-07-14 15:46 ` Heiko Stuebner [this message]
2023-07-14 16:24 ` Jonas Karlman
2023-07-15 4:49 ` FUKAUMI Naoki
2023-07-16 13:50 ` Jonas Karlman
2023-07-17 7:40 ` Michael Riesch
2023-07-17 17:11 ` Jonas Karlman
2023-07-23 22:54 ` Jonas Karlman
2023-07-24 5:09 ` FUKAUMI Naoki
2023-07-24 18:48 ` Heiko Stuebner
2023-08-05 16:22 ` Richard Kojedzinszky
2023-08-05 21:40 ` Jonas Karlman
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=25008843.6Emhk5qWAg@phil \
--to=heiko@sntech.de \
--cc=linux-rockchip@lists.infradead.org \
--cc=linux.amoon@gmail.com \
--cc=michael.riesch@wolfvision.net \
--cc=naoki@radxa.com \
/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