| 1 |
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause |
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/net/brcm,unimac-mdio.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: Broadcom UniMAC MDIO bus controller |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Doug Berger <[email protected]> |
| 11 |
- Florian Fainelli <[email protected]> |
| 12 |
- Rafał Miłecki <[email protected]> |
| 13 |
|
| 14 |
allOf: |
| 15 |
- $ref: mdio.yaml# |
| 16 |
|
| 17 |
properties: |
| 18 |
compatible: |
| 19 |
enum: |
| 20 |
- brcm,genet-mdio-v1 |
| 21 |
- brcm,genet-mdio-v2 |
| 22 |
- brcm,genet-mdio-v3 |
| 23 |
- brcm,genet-mdio-v4 |
| 24 |
- brcm,genet-mdio-v5 |
| 25 |
- brcm,asp-v2.1-mdio |
| 26 |
- brcm,asp-v2.2-mdio |
| 27 |
- brcm,asp-v3.0-mdio |
| 28 |
- brcm,unimac-mdio |
| 29 |
- brcm,bcm6846-mdio |
| 30 |
|
| 31 |
reg: |
| 32 |
minItems: 1 |
| 33 |
items: |
| 34 |
- description: base register |
| 35 |
- description: indirect accesses to larger than 16-bits MDIO transactions |
| 36 |
|
| 37 |
reg-names: |
| 38 |
minItems: 1 |
| 39 |
items: |
| 40 |
- const: mdio |
| 41 |
- const: mdio_indir_rw |
| 42 |
|
| 43 |
interrupts: |
| 44 |
oneOf: |
| 45 |
- description: > |
| 46 |
Interrupt shared with the Ethernet MAC or Ethernet switch this MDIO |
| 47 |
block is integrated from |
| 48 |
- items: |
| 49 |
- description: | |
| 50 |
"mdio done" interrupt |
| 51 |
- description: | |
| 52 |
"mdio error" interrupt |
| 53 |
|
| 54 |
interrupt-names: |
| 55 |
oneOf: |
| 56 |
- const: mdio_done_error |
| 57 |
- items: |
| 58 |
- const: mdio_done |
| 59 |
- const: mdio_error |
| 60 |
|
| 61 |
clocks: |
| 62 |
description: A reference to the clock supplying the MDIO bus controller |
| 63 |
|
| 64 |
clock-frequency: |
| 65 |
description: > |
| 66 |
The MDIO bus clock that must be output by the MDIO bus hardware, if |
| 67 |
absent, the default hardware values are used |
| 68 |
|
| 69 |
unevaluatedProperties: false |
| 70 |
|
| 71 |
required: |
| 72 |
- reg |
| 73 |
- '#address-cells' |
| 74 |
- '#size-cells' |
| 75 |
|
| 76 |
examples: |
| 77 |
- | |
| 78 |
mdio@403c0 { |
| 79 |
compatible = "brcm,unimac-mdio"; |
| 80 |
reg = <0x403c0 0x8>, <0x40300 0x18>; |
| 81 |
reg-names = "mdio", "mdio_indir_rw"; |
| 82 |
#address-cells = <1>; |
| 83 |
#size-cells = <0>; |
| 84 |
|
| 85 |
ethernet-phy@0 { |
| 86 |
compatible = "ethernet-phy-ieee802.3-c22"; |
| 87 |
reg = <0>; |
| 88 |
}; |
| 89 |
}; |