1354d7675SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2354d7675SEmmanuel Vadot%YAML 1.2 3354d7675SEmmanuel Vadot--- 4354d7675SEmmanuel Vadot$id: http://devicetree.org/schemas/net/brcm,unimac-mdio.yaml# 5354d7675SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6354d7675SEmmanuel Vadot 7354d7675SEmmanuel Vadottitle: Broadcom UniMAC MDIO bus controller 8354d7675SEmmanuel Vadot 9354d7675SEmmanuel Vadotmaintainers: 10*e67e8565SEmmanuel Vadot - Doug Berger <opendmb@gmail.com> 11*e67e8565SEmmanuel Vadot - Florian Fainelli <f.fainelli@gmail.com> 12354d7675SEmmanuel Vadot - Rafał Miłecki <rafal@milecki.pl> 13354d7675SEmmanuel Vadot 14354d7675SEmmanuel VadotallOf: 15354d7675SEmmanuel Vadot - $ref: mdio.yaml# 16354d7675SEmmanuel Vadot 17354d7675SEmmanuel Vadotproperties: 18354d7675SEmmanuel Vadot compatible: 19354d7675SEmmanuel Vadot enum: 20354d7675SEmmanuel Vadot - brcm,genet-mdio-v1 21354d7675SEmmanuel Vadot - brcm,genet-mdio-v2 22354d7675SEmmanuel Vadot - brcm,genet-mdio-v3 23354d7675SEmmanuel Vadot - brcm,genet-mdio-v4 24354d7675SEmmanuel Vadot - brcm,genet-mdio-v5 25354d7675SEmmanuel Vadot - brcm,unimac-mdio 26354d7675SEmmanuel Vadot 27354d7675SEmmanuel Vadot reg: 28354d7675SEmmanuel Vadot minItems: 1 29354d7675SEmmanuel Vadot items: 30354d7675SEmmanuel Vadot - description: base register 31354d7675SEmmanuel Vadot - description: indirect accesses to larger than 16-bits MDIO transactions 32354d7675SEmmanuel Vadot 33354d7675SEmmanuel Vadot reg-names: 34354d7675SEmmanuel Vadot minItems: 1 35354d7675SEmmanuel Vadot items: 36354d7675SEmmanuel Vadot - const: mdio 37354d7675SEmmanuel Vadot - const: mdio_indir_rw 38354d7675SEmmanuel Vadot 39354d7675SEmmanuel Vadot interrupts: 40354d7675SEmmanuel Vadot oneOf: 41354d7675SEmmanuel Vadot - description: > 42354d7675SEmmanuel Vadot Interrupt shared with the Ethernet MAC or Ethernet switch this MDIO 43354d7675SEmmanuel Vadot block is integrated from 44354d7675SEmmanuel Vadot - items: 45354d7675SEmmanuel Vadot - description: | 46354d7675SEmmanuel Vadot "mdio done" interrupt 47354d7675SEmmanuel Vadot - description: | 48354d7675SEmmanuel Vadot "mdio error" interrupt 49354d7675SEmmanuel Vadot 50354d7675SEmmanuel Vadot interrupt-names: 51354d7675SEmmanuel Vadot oneOf: 52354d7675SEmmanuel Vadot - const: mdio_done_error 53354d7675SEmmanuel Vadot - items: 54354d7675SEmmanuel Vadot - const: mdio_done 55354d7675SEmmanuel Vadot - const: mdio_error 56354d7675SEmmanuel Vadot 57354d7675SEmmanuel Vadot clocks: 58354d7675SEmmanuel Vadot description: A reference to the clock supplying the MDIO bus controller 59354d7675SEmmanuel Vadot 60354d7675SEmmanuel Vadot clock-frequency: 61354d7675SEmmanuel Vadot description: > 62354d7675SEmmanuel Vadot The MDIO bus clock that must be output by the MDIO bus hardware, if 63354d7675SEmmanuel Vadot absent, the default hardware values are used 64354d7675SEmmanuel Vadot 65354d7675SEmmanuel VadotunevaluatedProperties: false 66354d7675SEmmanuel Vadot 67354d7675SEmmanuel Vadotrequired: 68354d7675SEmmanuel Vadot - reg 69354d7675SEmmanuel Vadot - '#address-cells' 70354d7675SEmmanuel Vadot - '#size-cells' 71354d7675SEmmanuel Vadot 72354d7675SEmmanuel Vadotexamples: 73354d7675SEmmanuel Vadot - | 74354d7675SEmmanuel Vadot mdio@403c0 { 75354d7675SEmmanuel Vadot compatible = "brcm,unimac-mdio"; 76354d7675SEmmanuel Vadot reg = <0x403c0 0x8>, <0x40300 0x18>; 77354d7675SEmmanuel Vadot reg-names = "mdio", "mdio_indir_rw"; 78354d7675SEmmanuel Vadot #address-cells = <1>; 79354d7675SEmmanuel Vadot #size-cells = <0>; 80354d7675SEmmanuel Vadot 81354d7675SEmmanuel Vadot ethernet-phy@0 { 82354d7675SEmmanuel Vadot compatible = "ethernet-phy-ieee802.3-c22"; 83354d7675SEmmanuel Vadot reg = <0>; 84354d7675SEmmanuel Vadot }; 85354d7675SEmmanuel Vadot }; 86