Skip to contentSkip to conversation

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

PATCH Superseded Rob Herring 2 participants 2 messages May 19, 2021

Subsystems (5)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Rob Herring

author maintainer
#0 lore raw

PATCH 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]>
Cc Peter Rosin <[email protected]>

---
This is an addition to my mux binding conversions[1].

Rob

[1] https://lore.kernel.org/linux-devicetree/[email protected]/

 .../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
#1 lore raw
Quoted 21 lines
Documentation/devicetree/bindings/net/mdio-mux.yaml new file +15 -0
new file mode 100644
index 000000000000..92163fa45f39
@@ -0,0 +1,44 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/net/mdio-mux.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Common MDIO bus multiplexer/switch properties.
+
+maintainers:
+  - Andrew Lunn <[email protected]>
+
+description: |+
+  An MDIO bus multiplexer/switch will have several child busses that are
+  numbered uniquely in a device dependent manner.  The nodes for an MDIO
+  bus multiplexer/switch will have one child node for each child bus.

Documentation/devicetree/bindings/net/mdio-mux.yaml line 25

Quoted 10 lines
Documentation/devicetree/bindings/net/mdio-mux.yaml new file +10 -0
+
+properties:
+  $nodename:
+    pattern: '^mdio-mux[\-@]?'
+
+  mdio-parent-bus:
+    $ref: /schemas/types.yaml#/definitions/phandle
+    description:
+      The phandle of the I2C bus that this multiplexer's master-side port is
+      connected to.

I2C? This seems like a cut/paste error?

Andrew