Thread View: linux.kernel.netdev
2 messages
2 total messages
Started by Krzysztof Kozlowski
Fri, 09 Oct 2026 09:18
Re: [PATCH net-next v2 1/2] dt-bindings: net: realtek,rtl82xx: document RTL8224 packages
Author: Krzysztof Kozlowski
Date: Fri, 09 Oct 2026 09:18
Date: Fri, 09 Oct 2026 09:18
73 lines
8859 bytes
8859 bytes
On Mon, Oct 05, 2026 at 11:15:39PM +0300, Oskari Lemmela wrote:
> RTL8224 packages contain four PHYs at consecutive MDIO addresses,
> but the first address need not be a multiple of four. Document how
> to describe these packages using the existing ethernet-phy-package
> binding so their base address is explicit.
>
> Clarify that child PHY addresses are absolute and that MDI pair
> order and polarity properties describe the individual ports. Add
> an example with a package starting at address 1.
>
> Signed-off-by: Oskari Lemmela <oskari@lemmela.net>
> ---
> .../bindings/net/realtek,rtl82xx.yaml | 52 +++++++++++++++++--
> 1 file changed, 49 insertions(+), 3 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/net/realtek,rtl82xx.yaml b/Documentation/devicetree/bindings/net/realtek,rtl82xx.yaml
> index 07b39ef1fc62..ca52c3ae19f7 100644
> --- a/Documentation/devicetree/bindings/net/realtek,rtl82xx.yaml
> +++ b/Documentation/devicetree/bindings/net/realtek,rtl82xx.yaml
> @@ -12,7 +12,17 @@ maintainers:
> - Heiner Kallweit <hkallweit1@gmail.com>
>
> description:
> - Bindings for Realtek RTL82xx PHYs
> + Bindings for Realtek RTL82xx PHYs.
> +
> + The RTL8224 contains four PHYs at consecutive MDIO addresses. Its PHY
> + nodes may be grouped under an ethernet-phy-package node as described
> + in ethernet-phy-package.yaml. The package reg must identify the first
> + PHY's MDIO address, even if that PHY has no child node. This address
> + need not be a multiple of four. Each child PHY reg is its absolute
> + MDIO address, not an offset from the package base.
> +
> + The enet-phy-pair-order and enet-phy-pair-polarity properties belong
> + to the individual PHY nodes and describe each port's MDI wiring.
>
> properties:
> compatible:
> @@ -90,9 +100,45 @@ examples:
> #address-cells = <1>;
> #size-cells = <0>;
>
> - ethphy1: ethernet-phy@1 {
> + ethernet-phy@1 {
> reg = <1>;
> - realtek,clkout-disable;
> realtek,aldps-enable;
> + realtek,clkout-disable;
> + };
> + };
> + - |
> + mdio {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + ethernet-phy-package@1 {
> + reg = <1>;
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + ethernet-phy@1 {
> + compatible = "ethernet-phy-ieee802.3-c45";
I don't fully get why you are adding to the example generic compatibles,
not relevant to this binding.
> + reg = <1>;
> + enet-phy-pair-order = <0>;
> + };
Best regards,
Krzysztof
Re: [PATCH net-next v2 1/2] dt-bindings: net: realtek,rtl82xx: document RTL8224 packages
Author: Oskari Lemmelรค
Date: Fri, 09 Oct 2026 17:24
Date: Fri, 09 Oct 2026 17:24
43 lines
7458 bytes
7458 bytes
On 10/9/26 12:18, Krzysztof Kozlowski wrote:
> On Mon, Oct 05, 2026 at 11:15:39PM +0300, Oskari Lemmela wrote:
>> + mdio {
>> + #address-cells = <1>;
>> + #size-cells = <0>;
>> +
>> + ethernet-phy-package@1 {
>> + reg = <1>;
>> + #address-cells = <1>;
>> + #size-cells = <0>;
>> +
>> + ethernet-phy@1 {
>> + compatible = "ethernet-phy-ieee802.3-c45";
>
> I don't fully get why you are adding to the example generic compatibles,
> not relevant to this binding.
>
The generic C45 compatible explicitly requests Clause 45 discovery,
matching the management path used by the RTL8224 driver. Without it,
discovery starts with Clause 22 and may rely on the conditional C45
fallback, so I retained it to specify the intended discovery method.
However, I see that this string does not select realtek,rtl82xx.yaml,
so the example does not exercise this binding's constraints.
Andrew suggested that a dedicated RTL8224 package binding would make
sense. Would moving the package documentation and example into a
binding selected by "realtek,rtl8224-package" be appropriate? The child
PHYs would retain their C45 compatibles and be validated directly by
the package binding's child-node schema.
Thanks,
Oskari
>> + reg = <1>;
>> + enet-phy-pair-order = <0>;
>> + };
>
> Best regards,
> Krzysztof
>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads