Skip to content

Commit ac28c75

Browse files
Julien Massotbebarino
authored andcommitted
dt-bindings: clock: mediatek: Add power-domains property
The mt8183-mfgcfg node uses a power domain in its device tree node. To prevent schema validation warnings, add the optional `power-domains` property to the binding schema for mediatek syscon clocks. Fixes: 1781f2c ("arm64: dts: mediatek: mt8183: Add power-domains properity to mfgcfg") Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Signed-off-by: Julien Massot <julien.massot@collabora.com> Acked-by: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent 7c85e4d commit ac28c75

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

Documentation/devicetree/bindings/clock/mediatek,syscon.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ properties:
7676
- const: mediatek,mt2701-vdecsys
7777
- const: syscon
7878

79+
power-domains:
80+
maxItems: 1
81+
7982
reg:
8083
maxItems: 1
8184

@@ -86,6 +89,18 @@ required:
8689
- compatible
8790
- '#clock-cells'
8891

92+
if:
93+
properties:
94+
compatible:
95+
contains:
96+
const: mediatek,mt8183-mfgcfg
97+
then:
98+
properties:
99+
power-domains: true
100+
else:
101+
properties:
102+
power-domains: false
103+
89104
additionalProperties: false
90105

91106
examples:

0 commit comments

Comments
 (0)