[PATCH v3 3/7] dt-bindings: mmc: mtk-sd: add mt7986

From: Frank Wunderlich
Date: Sun Oct 23 2022 - 05:13:40 EST


From: Frank Wunderlich <frank-w@xxxxxxxxxxxxxxx>

Add SoC specific section for defining clock configuration.

Signed-off-by: Frank Wunderlich <frank-w@xxxxxxxxxxxxxxx>

---
v3:
- drop assigned-clocks/assigned-clock-parents
- fix clock description
---
.../devicetree/bindings/mmc/mtk-sd.yaml | 23 +++++++++++++++++++
1 file changed, 23 insertions(+)

diff --git a/Documentation/devicetree/bindings/mmc/mtk-sd.yaml b/Documentation/devicetree/bindings/mmc/mtk-sd.yaml
index 31bb6dc329d2..17b346a60e4c 100644
--- a/Documentation/devicetree/bindings/mmc/mtk-sd.yaml
+++ b/Documentation/devicetree/bindings/mmc/mtk-sd.yaml
@@ -228,6 +228,29 @@ allOf:
- const: source_cg
- const: bus_clk

+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - mediatek,mt7986-mmc
+ then:
+ properties:
+ clocks:
+ minItems: 3
+ items:
+ - description: source clock
+ - description: HCLK which used for host
+ - description: AXI bus clock gate
+ - description: AHB bus clock gate
+ clock-names:
+ minItems: 3
+ items:
+ - const: source
+ - const: hclk
+ - const: axi_cg
+ - const: ahb_cg
+
- if:
properties:
compatible:
--
2.34.1