Commit d30e82a6 authored by Corentin Labbe's avatar Corentin Labbe Committed by Rob Herring

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

Converts net/mdio-gpio.txt to yaml
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarCorentin Labbe <clabbe@baylibre.com>
Link: https://lore.kernel.org/r/20210505202815.2665920-1-clabbe@baylibre.comSigned-off-by: default avatarRob Herring <robh@kernel.org>
parent 2e64ad1c
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>;
};
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/net/mdio-gpio.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: MDIO on GPIOs
maintainers:
- Andrew Lunn <andrew@lunn.ch>
- Heiner Kallweit <hkallweit1@gmail.com>
- Russell King <linux@armlinux.org.uk>
allOf:
- $ref: "mdio.yaml#"
properties:
compatible:
enum:
- virtual,mdio-gpio
- microchip,mdio-smi0
"#address-cells":
const: 1
"#size-cells":
const: 0
gpios:
minItems: 2
maxItems: 3
items:
- description: MDC
- description: MDIO
- description: MDO
#Note: Each gpio-mdio bus should have an alias correctly numbered in "aliases"
#node.
additionalProperties:
type: object
examples:
- |
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>;
ethphy0: ethernet-phy@0 {
reg = <0>;
};
};
...
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment