armbian_build/patch/kernel/archive/meson-6.10/0021-dt-bindings-net-dwmac-meson-Add-the-Ethernet-clock-i.patch
2024-08-04 21:25:36 +02:00

53 lines
1.6 KiB
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Date: Fri, 1 May 2020 23:37:35 +0200
Subject: 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 <martin.blumenstingl@googlemail.com>
---
Documentation/devicetree/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 111111111111..222222222222 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
--
Armbian