Skip to content

Commit 59e9c5e

Browse files
amergnatmbgg
authored andcommitted
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>
1 parent bd0a62a commit 59e9c5e

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

Documentation/devicetree/bindings/soc/mediatek/mediatek,mutex.yaml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,30 @@ properties:
7171
4 arguments defined in this property. Each GCE subsys id is mapping to
7272
a client defined in the header include/dt-bindings/gce/<chip>-gce.h.
7373

74+
allOf:
75+
- if:
76+
properties:
77+
compatible:
78+
contains:
79+
enum:
80+
- mediatek,mt2701-disp-mutex
81+
- mediatek,mt2712-disp-mutex
82+
- mediatek,mt6795-disp-mutex
83+
- mediatek,mt8173-disp-mutex
84+
- mediatek,mt8186-disp-mutex
85+
- mediatek,mt8186-mdp3-mutex
86+
- mediatek,mt8192-disp-mutex
87+
- mediatek,mt8195-disp-mutex
88+
then:
89+
required:
90+
- clocks
91+
92+
7493
required:
7594
- compatible
7695
- reg
7796
- interrupts
7897
- power-domains
79-
- clocks
8098

8199
additionalProperties: false
82100

0 commit comments

Comments
 (0)