15956d97fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 25956d97fSEmmanuel Vadot%YAML 1.2 35956d97fSEmmanuel Vadot--- 45956d97fSEmmanuel Vadot$id: http://devicetree.org/schemas/net/mdio-gpio.yaml# 55956d97fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 65956d97fSEmmanuel Vadot 75956d97fSEmmanuel Vadottitle: MDIO on GPIOs 85956d97fSEmmanuel Vadot 95956d97fSEmmanuel Vadotmaintainers: 105956d97fSEmmanuel Vadot - Andrew Lunn <andrew@lunn.ch> 115956d97fSEmmanuel Vadot - Heiner Kallweit <hkallweit1@gmail.com> 125956d97fSEmmanuel Vadot - Russell King <linux@armlinux.org.uk> 135956d97fSEmmanuel Vadot 145956d97fSEmmanuel VadotallOf: 15*fac71e4eSEmmanuel Vadot - $ref: mdio.yaml# 165956d97fSEmmanuel Vadot 175956d97fSEmmanuel Vadotproperties: 185956d97fSEmmanuel Vadot compatible: 195956d97fSEmmanuel Vadot enum: 205956d97fSEmmanuel Vadot - virtual,mdio-gpio 215956d97fSEmmanuel Vadot - microchip,mdio-smi0 225956d97fSEmmanuel Vadot 235956d97fSEmmanuel Vadot "#address-cells": 245956d97fSEmmanuel Vadot const: 1 255956d97fSEmmanuel Vadot 265956d97fSEmmanuel Vadot "#size-cells": 275956d97fSEmmanuel Vadot const: 0 285956d97fSEmmanuel Vadot 295956d97fSEmmanuel Vadot gpios: 305956d97fSEmmanuel Vadot minItems: 2 315956d97fSEmmanuel Vadot items: 325956d97fSEmmanuel Vadot - description: MDC 335956d97fSEmmanuel Vadot - description: MDIO 345956d97fSEmmanuel Vadot - description: MDO 355956d97fSEmmanuel Vadot 365956d97fSEmmanuel Vadot# Note: Each gpio-mdio bus should have an alias correctly numbered in "aliases" 375956d97fSEmmanuel Vadot# node. 385956d97fSEmmanuel VadotadditionalProperties: 395956d97fSEmmanuel Vadot type: object 405956d97fSEmmanuel Vadot 415956d97fSEmmanuel Vadotexamples: 425956d97fSEmmanuel Vadot - | 435956d97fSEmmanuel Vadot aliases { 445956d97fSEmmanuel Vadot mdio-gpio0 = &mdio0; 455956d97fSEmmanuel Vadot }; 465956d97fSEmmanuel Vadot 475956d97fSEmmanuel Vadot mdio0: mdio { 485956d97fSEmmanuel Vadot compatible = "virtual,mdio-gpio"; 495956d97fSEmmanuel Vadot #address-cells = <1>; 505956d97fSEmmanuel Vadot #size-cells = <0>; 515956d97fSEmmanuel Vadot gpios = <&qe_pio_a 11>, 525956d97fSEmmanuel Vadot <&qe_pio_c 6>; 535956d97fSEmmanuel Vadot ethphy0: ethernet-phy@0 { 545956d97fSEmmanuel Vadot reg = <0>; 555956d97fSEmmanuel Vadot }; 565956d97fSEmmanuel Vadot }; 575956d97fSEmmanuel Vadot... 58