Introduce device-tree binding documentation for MaxLinear LGM Network Processor Signed-off-by: Jack Ping CHNG --- .../devicetree/bindings/net/mxl,lgm-eth.yaml | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/mxl,lgm-eth.yaml diff --git a/Documentation/devicetree/bindings/net/mxl,lgm-eth.yaml b/Documentation/devicetree/bindings/net/mxl,lgm-eth.yaml new file mode 100644 index 000000000000..3d5b32b5b650 --- /dev/null +++ b/Documentation/devicetree/bindings/net/mxl,lgm-eth.yaml @@ -0,0 +1,59 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/net/mxl,lgm-eth.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: MaxLinear LGM Ethernet Controller + +maintainers: + - Jack Ping Chng + +description: + Binding for MaxLinear LGM Ethernet controller + +properties: + compatible: + enum: + - mxl,lgm-eth + + clocks: + maxItems: 1 + + clock-names: + items: + - const: ethif + + resets: + maxItems: 1 + +patternProperties: + "^interface$": + type: object + properties: + compatible: + enum: + - mxl,lgm-mac + required: + - compatible + additionalProperties: false + +required: + - compatible + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + eth { + compatible = "mxl,lgm-eth"; + clocks = <&cgu0 32>; + clock-names = "ethif"; + resets = <&rcu0 0x70 8>; + + interface { + compatible = "mxl,lgm-mac"; + }; + }; -- 2.34.1