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

Configure Feed

Select the types of activity you want to include in your feed.

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

Converts net/mdio-gpio.txt to yaml

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Link: https://lore.kernel.org/r/20210505202815.2665920-1-clabbe@baylibre.com
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Corentin Labbe and committed by
Rob Herring
d30e82a6 2e64ad1c

+58 -27
-27
Documentation/devicetree/bindings/net/mdio-gpio.txt
··· 1 - MDIO on GPIOs 2 - 3 - Currently defined compatibles: 4 - - virtual,gpio-mdio 5 - - microchip,mdio-smi0 6 - 7 - MDC and MDIO lines connected to GPIO controllers are listed in the 8 - gpios property as described in section VIII.1 in the following order: 9 - 10 - MDC, MDIO. 11 - 12 - Note: Each gpio-mdio bus should have an alias correctly numbered in "aliases" 13 - node. 14 - 15 - Example: 16 - 17 - aliases { 18 - mdio-gpio0 = &mdio0; 19 - }; 20 - 21 - mdio0: mdio { 22 - compatible = "virtual,mdio-gpio"; 23 - #address-cells = <1>; 24 - #size-cells = <0>; 25 - gpios = <&qe_pio_a 11 26 - &qe_pio_c 6>; 27 - };
+58
Documentation/devicetree/bindings/net/mdio-gpio.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/net/mdio-gpio.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: MDIO on GPIOs 8 + 9 + maintainers: 10 + - Andrew Lunn <andrew@lunn.ch> 11 + - Heiner Kallweit <hkallweit1@gmail.com> 12 + - Russell King <linux@armlinux.org.uk> 13 + 14 + allOf: 15 + - $ref: "mdio.yaml#" 16 + 17 + properties: 18 + compatible: 19 + enum: 20 + - virtual,mdio-gpio 21 + - microchip,mdio-smi0 22 + 23 + "#address-cells": 24 + const: 1 25 + 26 + "#size-cells": 27 + const: 0 28 + 29 + gpios: 30 + minItems: 2 31 + maxItems: 3 32 + items: 33 + - description: MDC 34 + - description: MDIO 35 + - description: MDO 36 + 37 + #Note: Each gpio-mdio bus should have an alias correctly numbered in "aliases" 38 + #node. 39 + additionalProperties: 40 + type: object 41 + 42 + examples: 43 + - | 44 + aliases { 45 + mdio-gpio0 = &mdio0; 46 + }; 47 + 48 + mdio0: mdio { 49 + compatible = "virtual,mdio-gpio"; 50 + #address-cells = <1>; 51 + #size-cells = <0>; 52 + gpios = <&qe_pio_a 11>, 53 + <&qe_pio_c 6>; 54 + ethphy0: ethernet-phy@0 { 55 + reg = <0>; 56 + }; 57 + }; 58 + ...