[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20221022090530.16265-6-linux@fw-web.de>
Date: Sat, 22 Oct 2022 11:05:30 +0200
From: Frank Wunderlich <linux@...web.de>
To: linux-mediatek@...ts.infradead.org
Cc: Frank Wunderlich <frank-w@...lic-files.de>,
Chaotian Jing <chaotian.jing@...iatek.com>,
Ulf Hansson <ulf.hansson@...aro.org>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Matthias Brugger <matthias.bgg@...il.com>,
Wenbin Mei <wenbin.mei@...iatek.com>,
linux-mmc@...r.kernel.org, devicetree@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: [PATCH v2 5/5] dt-bindings: mmc: mtk-sd: add mt7986
From: Frank Wunderlich <frank-w@...lic-files.de>
Add SoC specific section for defining clock configuration.
Add compatible in "not" section to avoid override the settings again.
Signed-off-by: Frank Wunderlich <frank-w@...lic-files.de>
---
.../devicetree/bindings/mmc/mtk-sd.yaml | 28 +++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/Documentation/devicetree/bindings/mmc/mtk-sd.yaml b/Documentation/devicetree/bindings/mmc/mtk-sd.yaml
index c7bcf0c3dd5d..9df63c461f1f 100644
--- a/Documentation/devicetree/bindings/mmc/mtk-sd.yaml
+++ b/Documentation/devicetree/bindings/mmc/mtk-sd.yaml
@@ -229,6 +229,33 @@ allOf:
- const: hclk
- const: source_cg
- const: bus_clk
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - mediatek,mt7986-mmc
+ then:
+ properties:
+ assigned-clock-parents:
+ maxItems: 2
+ assigned-clocks:
+ maxItems: 2
+ clocks:
+ minItems: 3
+ items:
+ - description: source clock
+ - description: HCLK which used for host
+ - description: independent source clock gate
+ - description: bus clock used for internal register access
+ - description: msdc subsys clock gate
+ clock-names:
+ minItems: 3
+ items:
+ - const: source
+ - const: hclk
+ - const: axi_cg
+ - const: ahb_cg
- if:
not:
properties:
@@ -237,6 +264,7 @@ allOf:
enum:
- mediatek,mt2712-mmc
- mediatek,mt8192-mmc
+ - mediatek,mt7986-mmc
then:
properties:
clocks:
--
2.34.1
Powered by blists - more mailing lists