From: Fil Dunsky Describe the CS7542 Clause 22 MDIO register bank and devices on its bus. The firmware initializes the MDC prescaler, which this interface preserves; clock-frequency and preamble suppression are not supported. Signed-off-by: Fil Dunsky --- .../bindings/net/cortina,cs7542-mdio.yaml | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/Documentation/devicetree/bindings/net/cortina,cs7542-mdio.yaml b/Documentation/devicetree/bindings/net/cortina,cs7542-mdio.yaml new file mode 100644 index 000000000..77b5e2f09 --- /dev/null +++ b/Documentation/devicetree/bindings/net/cortina,cs7542-mdio.yaml @@ -0,0 +1,48 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/cortina,cs7542-mdio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cortina Systems CS7542 MDIO controller + +maintainers: + - Fil Dunsky + +description: + Clause 22 MDIO controller. Firmware configures the MDC prescaler before + the operating system starts; the driver retains this setting. + +allOf: + - $ref: mdio.yaml# + +properties: + compatible: + const: cortina,cs7542-mdio + + reg: + maxItems: 1 + + clock-frequency: false + suppress-preamble: false + +required: + - compatible + - reg + - "#address-cells" + - "#size-cells" + +unevaluatedProperties: false + +examples: + - | + mdio@f00700a0 { + compatible = "cortina,cs7542-mdio"; + reg = <0xf00700a0 0x14>; + #address-cells = <1>; + #size-cells = <0>; + + ethernet-phy@0 { + reg = <0>; + }; + }; -- 2.53.0