Commit aeb73790 authored by AngeloGioacchino Del Regno's avatar AngeloGioacchino Del Regno Committed by Boris Brezillon

dt-bindings: gpu: mali-bifrost: Fix power-domain-names validation

Commit ("dt-bindings: gpu: mali-bifrost: Add Mediatek MT8183")
incorrectly introduced power domain names for MT8183, causing
validation issues.

Add power-domain-names to the base schema, allowing a maximum of
five elements; since platforms having a single power domain don't
need any actual domain name, disallow that for each sub-schema.

Fixes: a7a596cd ("dt-bindings: gpu: mali-bifrost: Add Mediatek MT8183")
Signed-off-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tested-by: default avatarChen-Yu Tsai <wenst@chromium.org>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarBoris Brezillon <boris.brezillon@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230316102041.210269-4-angelogioacchino.delregno@collabora.com
parent eccda274
...@@ -65,6 +65,10 @@ properties: ...@@ -65,6 +65,10 @@ properties:
minItems: 1 minItems: 1
maxItems: 5 maxItems: 5
power-domain-names:
minItems: 2
maxItems: 5
resets: resets:
minItems: 1 minItems: 1
maxItems: 3 maxItems: 3
...@@ -112,6 +116,7 @@ allOf: ...@@ -112,6 +116,7 @@ allOf:
properties: properties:
power-domains: power-domains:
maxItems: 1 maxItems: 1
power-domain-names: false
required: required:
- resets - resets
- if: - if:
...@@ -136,6 +141,7 @@ allOf: ...@@ -136,6 +141,7 @@ allOf:
- const: bus_ace - const: bus_ace
power-domains: power-domains:
maxItems: 1 maxItems: 1
power-domain-names: false
resets: resets:
minItems: 3 minItems: 3
reset-names: reset-names:
...@@ -186,6 +192,7 @@ allOf: ...@@ -186,6 +192,7 @@ allOf:
- const: bus - const: bus
power-domains: power-domains:
maxItems: 1 maxItems: 1
power-domain-names: false
required: required:
- clock-names - clock-names
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment