Commit 8da89172 authored by Niklas Söderlund's avatar Niklas Söderlund Committed by Jakub Kicinski
Browse files

dt-bindings: net: renesas,ethertsn: Create child-node for MDIO bus



The bindings for Renesas Ethernet TSN was just merged in v6.9 and the
design for the bindings followed that of other Renesas Ethernet drivers
and thus did not force a child-node for the MDIO bus. As there
are no upstream drivers or users of this binding yet take the
opportunity to correct this and force the usage of a child-node for the
MDIO bus.

Signed-off-by: default avatarNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20240330131228.1541227-1-niklas.soderlund+renesas@ragnatech.se


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent eb05529a
Loading
Loading
Loading
Loading
+14 −19
Original line number Diff line number Diff line
@@ -71,16 +71,8 @@ properties:
    enum: [0, 2000]
    default: 0

  '#address-cells':
    const: 1

  '#size-cells':
    const: 0

patternProperties:
  "^ethernet-phy@[0-9a-f]$":
    type: object
    $ref: ethernet-phy.yaml#
  mdio:
    $ref: /schemas/net/mdio.yaml#
    unevaluatedProperties: false

required:
@@ -94,8 +86,7 @@ required:
  - resets
  - phy-mode
  - phy-handle
  - '#address-cells'
  - '#size-cells'
  - mdio

additionalProperties: false

@@ -122,14 +113,18 @@ examples:
        tx-internal-delay-ps = <2000>;
        phy-handle = <&phy3>;

        mdio {
            #address-cells = <1>;
            #size-cells = <0>;

        phy3: ethernet-phy@3 {
            reset-gpios = <&gpio1 23 GPIO_ACTIVE_LOW>;
            reset-post-delay-us = <4000>;

            phy3: ethernet-phy@0 {
                compatible = "ethernet-phy-ieee802.3-c45";
                reg = <0>;
                interrupt-parent = <&gpio4>;
                interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
            reset-gpios = <&gpio1 23 GPIO_ACTIVE_LOW>;
            };
        };
    };