Skip to contentSkip to conversation

dt-bindings: net: Convert MDIO mux bindings to DT schema

PATCH Applied Rob Herring 2 participants 4 messages May 26, 2021 – Jun 1, 2021

Subsystems (5)
lore
Share & tools
lore

Rob Herring

author maintainer
#0 lore raw

PATCH v2 1/1 dt-bindings: net: Convert MDIO mux bindings to DT schema

Convert the common MDIO mux bindings to DT schema.

Drop the example from mdio-mux.yaml as mdio-mux-gpio.yaml has the same one.

Cc "David S. Miller" <[email protected]>
Cc Jakub Kicinski <[email protected]>
Cc Ray Jui <[email protected]>
Cc Scott Branden <[email protected]>
Cc Andrew Lunn <[email protected]>
Cc Heiner Kallweit <[email protected]>
Cc Russell King <[email protected]>

---
v2:
- Fix copy-n-paste error: s/I2C/MDIO/

---
 .../bindings/net/brcm,mdio-mux-iproc.txt      |   2 +-
 .../devicetree/bindings/net/mdio-mux-gpio.txt | 119 ---------------
 .../bindings/net/mdio-mux-gpio.yaml           | 135 ++++++++++++++++++
 .../bindings/net/mdio-mux-mmioreg.txt         |  75 ----------
 .../bindings/net/mdio-mux-mmioreg.yaml        |  78 ++++++++++
 .../bindings/net/mdio-mux-multiplexer.txt     |  82 -----------
 .../bindings/net/mdio-mux-multiplexer.yaml    |  82 +++++++++++
 .../devicetree/bindings/net/mdio-mux.txt      | 129 -----------------
 .../devicetree/bindings/net/mdio-mux.yaml     |  44 ++++++
 9 files changed, 340 insertions(+), 406 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/net/mdio-mux-gpio.txt
 create mode 100644 Documentation/devicetree/bindings/net/mdio-mux-gpio.yaml
 delete mode 100644 Documentation/devicetree/bindings/net/mdio-mux-mmioreg.txt
 create mode 100644 Documentation/devicetree/bindings/net/mdio-mux-mmioreg.yaml
 delete mode 100644 Documentation/devicetree/bindings/net/mdio-mux-multiplexer.txt
 create mode 100644 Documentation/devicetree/bindings/net/mdio-mux-multiplexer.yaml
 delete mode 100644 Documentation/devicetree/bindings/net/mdio-mux.txt
 create mode 100644 Documentation/devicetree/bindings/net/mdio-mux.yaml
Documentation/devicetree/bindings/net/brcm,mdio-mux-iproc.txt +1 -1
index b58843f29591..deb9e852ea27 100644
@@ -17,7 +17,7 @@ Optional properties:
 - clocks: phandle of the core clock which drives the mdio block.
 
 Additional information regarding generic multiplexer properties can be found
-at- Documentation/devicetree/bindings/net/mdio-mux.txt
+at- Documentation/devicetree/bindings/net/mdio-mux.yaml
 
 
 for example:
Documentation/devicetree/bindings/net/mdio-mux-gpio.txt deleted +0 -119

119 lines not on this page · raw message

Documentation/devicetree/bindings/net/mdio-mux-gpio.yaml new file +135 -0

135 lines not on this page · raw message

Documentation/devicetree/bindings/net/mdio-mux-mmioreg.txt deleted +0 -75

75 lines not on this page · raw message

Documentation/devicetree/bindings/net/mdio-mux-mmioreg.yaml new file +78 -0

78 lines not on this page · raw message

Documentation/devicetree/bindings/net/mdio-mux-multiplexer.txt deleted +0 -82

82 lines not on this page · raw message

Documentation/devicetree/bindings/net/mdio-mux-multiplexer.yaml new file +82 -0

82 lines not on this page · raw message

Documentation/devicetree/bindings/net/mdio-mux.txt deleted +0 -129

129 lines not on this page · raw message

Documentation/devicetree/bindings/net/mdio-mux.yaml new file +44 -0

44 lines not on this page · raw message

Signature · 1 line
2.27.0
maintainer Reviewed-by on v2 1/1
#1 lore raw
Quoted 4 lines · Rob Herring

Convert the common MDIO mux bindings to DT schema.

Drop the example from mdio-mux.yaml as mdio-mux-gpio.yaml has the same one.

Quoted 11 lines
Cc "David S. Miller" <[email protected]>
Cc Jakub Kicinski <[email protected]>
Cc Ray Jui <[email protected]>
Cc Scott Branden <[email protected]>
Cc Andrew Lunn <[email protected]>
Cc Heiner Kallweit <[email protected]>
Cc Russell King <[email protected]>

Documentation/devicetree/bindings/net/mdio-mux-mmioreg.yaml line 74

Quoted 8 lines
Documentation/devicetree/bindings/net/mdio-mux-mmioreg.yaml new file +8 -0
+        mdio@2 {  // Slot 2 XAUI (FM1)
+            reg = <2>;
+            #address-cells = <1>;
+            #size-cells = <0>;
+
+            ethernet-phy@4 {
+                compatible = "ethernet-phy-ieee802.3-c45";
+                reg = <0>;

reg should really be 4 here. The same error existed in the .txt version. I guess the examples are never actually verified using the yaml?

Andrew

author maintainer
#2 lore raw
Quoted 29 lines · Andrew Lunn
Quoted 4 lines · Rob Herring

Convert the common MDIO mux bindings to DT schema.

Drop the example from mdio-mux.yaml as mdio-mux-gpio.yaml has the same one.

Quoted 11 lines
Cc "David S. Miller" <[email protected]>
Cc Jakub Kicinski <[email protected]>
Cc Ray Jui <[email protected]>
Cc Scott Branden <[email protected]>
Cc Andrew Lunn <[email protected]>
Cc Heiner Kallweit <[email protected]>
Cc Russell King <[email protected]>

Documentation/devicetree/bindings/net/mdio-mux-mmioreg.yaml line 74

Quoted 8 lines
Documentation/devicetree/bindings/net/mdio-mux-mmioreg.yaml new file +8 -0
+        mdio@2 {  // Slot 2 XAUI (FM1)
+            reg = <2>;
+            #address-cells = <1>;
+            #size-cells = <0>;
+
+            ethernet-phy@4 {
+                compatible = "ethernet-phy-ieee802.3-c45";
+                reg = <0>;
Quoted 1 line

reg should really be 4 here. The same error existed in the .txt

Will fixup.

Quoted 2 lines

version. I guess the examples are never actually verified using the yaml?

They are verified in general, but for this specific check it is dtc that does it and only for bus types that it knows about. MDIO isn't one of them.

Rob

author maintainer Applied
#3 lore raw
In reply to Rob Herring
Quoted 29 lines · Rob Herring

Convert the common MDIO mux bindings to DT schema.

Drop the example from mdio-mux.yaml as mdio-mux-gpio.yaml has the same one.

Cc "David S. Miller" <[email protected]>
Cc Jakub Kicinski <[email protected]>
Cc Ray Jui <[email protected]>
Cc Scott Branden <[email protected]>
Cc Andrew Lunn <[email protected]>
Cc Heiner Kallweit <[email protected]>
Cc Russell King <[email protected]>

---
v2:
- Fix copy-n-paste error: s/I2C/MDIO/

---
 .../bindings/net/brcm,mdio-mux-iproc.txt      |   2 +-
 .../devicetree/bindings/net/mdio-mux-gpio.txt | 119 ---------------
 .../bindings/net/mdio-mux-gpio.yaml           | 135 ++++++++++++++++++
 .../bindings/net/mdio-mux-mmioreg.txt         |  75 ----------
 .../bindings/net/mdio-mux-mmioreg.yaml        |  78 ++++++++++
 .../bindings/net/mdio-mux-multiplexer.txt     |  82 -----------
 .../bindings/net/mdio-mux-multiplexer.yaml    |  82 +++++++++++
 .../devicetree/bindings/net/mdio-mux.txt      | 129 -----------------
 .../devicetree/bindings/net/mdio-mux.yaml     |  44 ++++++
 9 files changed, 340 insertions(+), 406 deletions(-)
Quoted 9 lines
 delete mode 100644 Documentation/devicetree/bindings/net/mdio-mux-gpio.txt
 create mode 100644 Documentation/devicetree/bindings/net/mdio-mux-gpio.yaml
 delete mode 100644 Documentation/devicetree/bindings/net/mdio-mux-mmioreg.txt
 create mode 100644 Documentation/devicetree/bindings/net/mdio-mux-mmioreg.yaml
 delete mode 100644 Documentation/devicetree/bindings/net/mdio-mux-multiplexer.txt
 create mode 100644 Documentation/devicetree/bindings/net/mdio-mux-multiplexer.yaml
 delete mode 100644 Documentation/devicetree/bindings/net/mdio-mux.txt
 create mode 100644 Documentation/devicetree/bindings/net/mdio-mux.yaml

Applied, thanks!