From: Fil Dunsky Describe the Clause 22 controller, its MDC prescaler and the devices on its management bus. The driver preserves firmware-assigned MDC, so exclude the common clock-frequency property. Reported-by: Sashiko Link: https://lore.kernel.org/all/179644615714.3146.7992850630581806957@kernel.org/ Signed-off-by: Fil Dunsky --- .../bindings/net/cortina,cs7542-mdio.yaml | 55 ++++++++++++++++++++++ 1 file changed, 55 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..a20d10a5c --- /dev/null +++ b/Documentation/devicetree/bindings/net/cortina,cs7542-mdio.yaml @@ -0,0 +1,55 @@ +# 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 with a programmable 16-bit MDC prescaler. + Firmware configures the prescaler before the operating system starts. + +allOf: + - $ref: mdio.yaml# + +properties: + compatible: + const: cortina,cs7542-mdio + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + description: APB input clock + + clock-frequency: false + + suppress-preamble: false + +required: + - compatible + - reg + - clocks + - "#address-cells" + - "#size-cells" + +unevaluatedProperties: false + +examples: + - | + mdio@f00700a0 { + compatible = "cortina,cs7542-mdio"; + reg = <0xf00700a0 0x14>; + clocks = <&apb_clk>; + #address-cells = <1>; + #size-cells = <0>; + + ethernet-phy@0 { + reg = <0>; + }; + }; -- 2.53.0