aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorAlexandre Mergnat <amergnat@baylibre.com>2023-03-09 15:23:03 +0100
committerMatthias Brugger <matthias.bgg@gmail.com>2023-03-31 16:41:34 +0200
commit59e9c5e2bdabf134b03229a6cd8b50e7c658b05f (patch)
tree15cee8f811da1fd5b9bd4fb1612f9dfe2da56469
parentsoc: mediatek: mtk-svs: add thermal voltage compensation if needed (diff)
downloadwireguard-linux-59e9c5e2bdabf134b03229a6cd8b50e7c658b05f.tar.xz
wireguard-linux-59e9c5e2bdabf134b03229a6cd8b50e7c658b05f.zip
dt-bindings: soc: mediatek: specify which compatible requires clocks property
According to the mtk-mutex.c driver and the SoC DTS, the clock isn't required to work properly for some of MTK SoC. Improve the clock requirement by adding a condition which is function to the compatible. Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com> Link: https://lore.kernel.org/r/20230220-display-v1-14-45cbc68e188b@baylibre.com Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
-rw-r--r--Documentation/devicetree/bindings/soc/mediatek/mediatek,mutex.yaml20
1 files changed, 19 insertions, 1 deletions
diff --git a/Documentation/devicetree/bindings/soc/mediatek/mediatek,mutex.yaml b/Documentation/devicetree/bindings/soc/mediatek/mediatek,mutex.yaml
index 74c1061d32f1..4bb4a5935398 100644
--- a/Documentation/devicetree/bindings/soc/mediatek/mediatek,mutex.yaml
+++ b/Documentation/devicetree/bindings/soc/mediatek/mediatek,mutex.yaml
@@ -71,12 +71,30 @@ properties:
4 arguments defined in this property. Each GCE subsys id is mapping to
a client defined in the header include/dt-bindings/gce/<chip>-gce.h.
+allOf:
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - mediatek,mt2701-disp-mutex
+ - mediatek,mt2712-disp-mutex
+ - mediatek,mt6795-disp-mutex
+ - mediatek,mt8173-disp-mutex
+ - mediatek,mt8186-disp-mutex
+ - mediatek,mt8186-mdp3-mutex
+ - mediatek,mt8192-disp-mutex
+ - mediatek,mt8195-disp-mutex
+ then:
+ required:
+ - clocks
+
+
required:
- compatible
- reg
- interrupts
- power-domains
- - clocks
additionalProperties: false