[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f6c6aeb5-bdec-4283-87c8-e870f59008c8@lunn.ch>
Date: Fri, 7 Mar 2025 15:02:52 +0100
From: Andrew Lunn <andrew@...n.ch>
To: Jonas Karlman <jonas@...boo.se>
Cc: Heiko Stuebner <heiko@...ech.de>, Andrew Lunn <andrew+netdev@...n.ch>,
"David S . Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>, Yao Zi <ziyao@...root.org>,
linux-rockchip@...ts.infradead.org, netdev@...r.kernel.org,
devicetree@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 3/4] arm64: dts: rockchip: Add GMAC nodes for RK3528
So this is a bit more complicated than i first guessed...
> phy-mode = "rmii";
> clock_in_out = "input";
Probably will not get passed the DT maintainers. The clocking needs
investigating.
> phy-handle = <&rmii0_phy>;
>
> mdio0: mdio {
> compatible = "snps,dwmac-mdio";
> #address-cells = <0x1>;
> #size-cells = <0x0>;
>
> rmii0_phy: ethernet-phy@2 {
> compatible = "ethernet-phy-id0044.1400", "ethernet-phy-ieee802.3-c22";
> reg = <2>;
> clocks = <&cru CLK_MACPHY>;
> resets = <&cru SRST_MACPHY>;
Using the ID suggests there might be a chicken/egg with the reset and
clock. The ID registers cannot be read from the PHY?
> phy-is-integrated;
This suggests the possibility exists to route the RMII interface to the
outside world:
phy-is-integrated:
$ref: /schemas/types.yaml#/definitions/flag
description:
If set, indicates that the PHY is integrated into the same
physical package as the Ethernet MAC. If needed, muxers
should be configured to ensure the integrated PHY is
used. The absence of this property indicates the muxers
should be configured so that the external PHY is used.
Given these issues, i suggest you keep with the DT as you have it
now. Adding the PHY node will require access to hardware and some
investigations.
Andrew
Powered by blists - more mailing lists