From a2f6824d3140baec1ba1b0748b0b3ee08f083185 Mon Sep 17 00:00:00 2001 From: Martin Blumenstingl Date: Fri, 1 May 2020 23:37:35 +0200 Subject: [PATCH 21/96] dt-bindings: net: dwmac-meson: Add the Ethernet clock input for Meson6/8 The additional DWMAC register on Amlogic Meson6 and Meson8 SoCs take a clock input (which is provided by the HHI clock controller). For RMII mode this clock is derived from the RMII reference clock. Document this clock input so the clock can be enabled when needed. Signed-off-by: Martin Blumenstingl --- .../bindings/net/amlogic,meson-dwmac.yaml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml b/Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml index ee7a65b52..ea4b75ef6 100644 --- a/Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml +++ b/Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml @@ -127,6 +127,28 @@ allOf: - 2800 - 3000 + - if: + properties: + compatible: + contains: + enum: + - amlogic,meson6-dwmac + then: + properties: + clocks: + minItems: 1 + maxItems: 2 + items: + - description: GMAC main clock + - description: The RMII reference clock + + clock-names: + minItems: 1 + maxItems: 2 + items: + - const: stmmaceth + - const: ethernet + properties: compatible: additionalItems: true -- 2.45.1