Skip to contentSkip to conversation

dt-bindings: net: Convert mdio-gpio to yaml

PATCH Superseded Corentin Labbe 3 participants 3 messages Apr 29, 2021 – May 6, 2021

Subsystems (4)

v2 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 dt-bindings: net: Convert mdio-gpio to yaml

Converts net/mdio-gpio.txt to yaml

---
Changes since v1:
- fixes yamllint warning about indent
- added maxItems 3

 .../devicetree/bindings/net/mdio-gpio.txt     | 27 ---------
 .../devicetree/bindings/net/mdio-gpio.yaml    | 57 +++++++++++++++++++
 2 files changed, 57 insertions(+), 27 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/net/mdio-gpio.txt
 create mode 100644 Documentation/devicetree/bindings/net/mdio-gpio.yaml
Documentation/devicetree/bindings/net/mdio-gpio.txt deleted +0 -27
deleted file mode 100644
index 4d91a36c5cf5..000000000000
@@ -1,27 +0,0 @@
-MDIO on GPIOs
-
-Currently defined compatibles:
-- virtual,gpio-mdio
-- microchip,mdio-smi0
-
-MDC and MDIO lines connected to GPIO controllers are listed in the
-gpios property as described in section VIII.1 in the following order:
-
-MDC, MDIO.
-
-Note: Each gpio-mdio bus should have an alias correctly numbered in "aliases"
-node.
-
-Example:
-
-aliases {
-	mdio-gpio0 = &mdio0;
-};
-
-mdio0: mdio {
-	compatible = "virtual,mdio-gpio";
-	#address-cells = <1>;
-	#size-cells = <0>;
-	gpios = <&qe_pio_a 11
-		 &qe_pio_c 6>;
-};
Documentation/devicetree/bindings/net/mdio-gpio.yaml new file +57 -0

57 lines not on this page · raw message

Signature · 1 line
2.26.3