mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 13:11:40 +00:00
6ed97afd75
The MDIO block in the BCM6846 is not identical to any of the previous versions, but has extended registers not present in the other variants. For this reason we need to use a new compatible especially for this SoC. Suggested-by: Florian Fainelli <florian.fainelli@broadcom.com> Link: https://lore.kernel.org/linux-devicetree/b542b2e8-115c-4234-a464-e73aa6bece5c@broadcom.com/ Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: Rob Herring (Arm) <robh@kernel.org> Link: https://patch.msgid.link/20241012-bcm6846-mdio-v1-1-c703ca83e962@linaro.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
90 lines
2.0 KiB
YAML
90 lines
2.0 KiB
YAML
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/net/brcm,unimac-mdio.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Broadcom UniMAC MDIO bus controller
|
|
|
|
maintainers:
|
|
- Doug Berger <opendmb@gmail.com>
|
|
- Florian Fainelli <f.fainelli@gmail.com>
|
|
- Rafał Miłecki <rafal@milecki.pl>
|
|
|
|
allOf:
|
|
- $ref: mdio.yaml#
|
|
|
|
properties:
|
|
compatible:
|
|
enum:
|
|
- brcm,genet-mdio-v1
|
|
- brcm,genet-mdio-v2
|
|
- brcm,genet-mdio-v3
|
|
- brcm,genet-mdio-v4
|
|
- brcm,genet-mdio-v5
|
|
- brcm,asp-v2.0-mdio
|
|
- brcm,asp-v2.1-mdio
|
|
- brcm,asp-v2.2-mdio
|
|
- brcm,unimac-mdio
|
|
- brcm,bcm6846-mdio
|
|
|
|
reg:
|
|
minItems: 1
|
|
items:
|
|
- description: base register
|
|
- description: indirect accesses to larger than 16-bits MDIO transactions
|
|
|
|
reg-names:
|
|
minItems: 1
|
|
items:
|
|
- const: mdio
|
|
- const: mdio_indir_rw
|
|
|
|
interrupts:
|
|
oneOf:
|
|
- description: >
|
|
Interrupt shared with the Ethernet MAC or Ethernet switch this MDIO
|
|
block is integrated from
|
|
- items:
|
|
- description: |
|
|
"mdio done" interrupt
|
|
- description: |
|
|
"mdio error" interrupt
|
|
|
|
interrupt-names:
|
|
oneOf:
|
|
- const: mdio_done_error
|
|
- items:
|
|
- const: mdio_done
|
|
- const: mdio_error
|
|
|
|
clocks:
|
|
description: A reference to the clock supplying the MDIO bus controller
|
|
|
|
clock-frequency:
|
|
description: >
|
|
The MDIO bus clock that must be output by the MDIO bus hardware, if
|
|
absent, the default hardware values are used
|
|
|
|
unevaluatedProperties: false
|
|
|
|
required:
|
|
- reg
|
|
- '#address-cells'
|
|
- '#size-cells'
|
|
|
|
examples:
|
|
- |
|
|
mdio@403c0 {
|
|
compatible = "brcm,unimac-mdio";
|
|
reg = <0x403c0 0x8>, <0x40300 0x18>;
|
|
reg-names = "mdio", "mdio_indir_rw";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
ethernet-phy@0 {
|
|
compatible = "ethernet-phy-ieee802.3-c22";
|
|
reg = <0>;
|
|
};
|
|
};
|