1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/net/marvell,orion-mdio.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Marvell MDIO Ethernet Controller interface 8 9maintainers: 10 - Andrew Lunn <andrew@lunn.ch> 11 12description: | 13 The Ethernet controllers of the Marvel Kirkwood, Dove, Orion5x, MV78xx0, 14 Armada 370, Armada XP, Armada 7k and Armada 8k have an identical unit that 15 provides an interface with the MDIO bus. Additionally, Armada 7k and Armada 16 8k has a second unit which provides an interface with the xMDIO bus. This 17 driver handles these interfaces. 18 19properties: 20 compatible: 21 enum: 22 - marvell,orion-mdio 23 - marvell,xmdio 24 25 reg: 26 maxItems: 1 27 28 interrupts: 29 maxItems: 1 30 31 clocks: 32 minItems: 1 33 maxItems: 4 34 35required: 36 - compatible 37 - reg 38 39allOf: 40 - $ref: mdio.yaml# 41 42 - if: 43 required: 44 - interrupts 45 46 then: 47 properties: 48 reg: 49 items: 50 - items: 51 - $ref: /schemas/types.yaml#/definitions/cell 52 - const: 0x84 53 54 else: 55 properties: 56 reg: 57 items: 58 - items: 59 - $ref: /schemas/types.yaml#/definitions/cell 60 - enum: 61 - 0x4 62 - 0x10 63 64unevaluatedProperties: false 65 66examples: 67 - | 68 mdio@d0072004 { 69 compatible = "marvell,orion-mdio"; 70 reg = <0xd0072004 0x84>; 71 #address-cells = <1>; 72 #size-cells = <0>; 73 interrupts = <30>; 74 75 phy0: ethernet-phy@0 { 76 reg = <0>; 77 }; 78 79 phy1: ethernet-phy@1 { 80 reg = <1>; 81 }; 82 }; 83