Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20240330131228.1541227-1-niklas.soderlund+renesas@ragnatech.se
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Niklas Söderlund and committed by
Jakub Kicinski
8da89172 eb05529a

+14 -19
+14 -19
Documentation/devicetree/bindings/net/renesas,ethertsn.yaml
··· 71 71 enum: [0, 2000] 72 72 default: 0 73 73 74 - '#address-cells': 75 - const: 1 76 - 77 - '#size-cells': 78 - const: 0 79 - 80 - patternProperties: 81 - "^ethernet-phy@[0-9a-f]$": 82 - type: object 83 - $ref: ethernet-phy.yaml# 74 + mdio: 75 + $ref: /schemas/net/mdio.yaml# 84 76 unevaluatedProperties: false 85 77 86 78 required: ··· 86 94 - resets 87 95 - phy-mode 88 96 - phy-handle 89 - - '#address-cells' 90 - - '#size-cells' 97 + - mdio 91 98 92 99 additionalProperties: false 93 100 ··· 113 122 tx-internal-delay-ps = <2000>; 114 123 phy-handle = <&phy3>; 115 124 116 - #address-cells = <1>; 117 - #size-cells = <0>; 125 + mdio { 126 + #address-cells = <1>; 127 + #size-cells = <0>; 118 128 119 - phy3: ethernet-phy@3 { 120 - compatible = "ethernet-phy-ieee802.3-c45"; 121 - reg = <0>; 122 - interrupt-parent = <&gpio4>; 123 - interrupts = <3 IRQ_TYPE_LEVEL_LOW>; 124 129 reset-gpios = <&gpio1 23 GPIO_ACTIVE_LOW>; 130 + reset-post-delay-us = <4000>; 131 + 132 + phy3: ethernet-phy@0 { 133 + compatible = "ethernet-phy-ieee802.3-c45"; 134 + reg = <0>; 135 + interrupt-parent = <&gpio4>; 136 + interrupts = <3 IRQ_TYPE_LEVEL_LOW>; 137 + }; 125 138 }; 126 139 };