Commit a1499b75 authored by Rob Herring's avatar Rob Herring

media: dt-bindings: samsung,s5p-mfc: Fix iommu properties schemas

The iommus and iommu-names property schemas have several issues. First,
'iommus-names' in the if/then schemas is the wrong name. As all the names
are the same, they can be defined at the top level instead. Then the
if/then schemas just need to define how many entries. The iommus if/then
schemas are also redundant. Best I can tell, the desire was to require 2
entries for "samsung,exynos5433-mfc", "samsung,mfc-v5", "samsung,mfc-v6",
and "samsung,mfc-v8".
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: default avatarAakarsh Jain <aakarsh.jain@samsung.com>
Link: https://lore.kernel.org/r/20231214195553.862920-1-robh@kernel.orgSigned-off-by: default avatarRob Herring <robh@kernel.org>
parent 9de97e2a
...@@ -49,7 +49,9 @@ properties: ...@@ -49,7 +49,9 @@ properties:
iommu-names: iommu-names:
minItems: 1 minItems: 1
maxItems: 2 items:
- const: left
- const: right
power-domains: power-domains:
maxItems: 1 maxItems: 1
...@@ -84,7 +86,7 @@ allOf: ...@@ -84,7 +86,7 @@ allOf:
- const: sclk_mfc - const: sclk_mfc
iommus: iommus:
maxItems: 1 maxItems: 1
iommus-names: false iommu-names: false
- if: - if:
properties: properties:
...@@ -102,11 +104,9 @@ allOf: ...@@ -102,11 +104,9 @@ allOf:
- const: aclk - const: aclk
- const: aclk_xiu - const: aclk_xiu
iommus: iommus:
maxItems: 2 minItems: 2
iommus-names: iommu-names:
items: minItems: 2
- const: left
- const: right
- if: - if:
properties: properties:
...@@ -123,11 +123,9 @@ allOf: ...@@ -123,11 +123,9 @@ allOf:
- const: mfc - const: mfc
- const: sclk_mfc - const: sclk_mfc
iommus: iommus:
maxItems: 2 minItems: 2
iommus-names: iommu-names:
items: minItems: 2
- const: left
- const: right
- if: - if:
properties: properties:
...@@ -144,11 +142,9 @@ allOf: ...@@ -144,11 +142,9 @@ allOf:
items: items:
- const: mfc - const: mfc
iommus: iommus:
maxItems: 2 minItems: 2
iommus-names: iommu-names:
items: minItems: 2
- const: left
- const: right
- if: - if:
properties: properties:
...@@ -161,9 +157,6 @@ allOf: ...@@ -161,9 +157,6 @@ allOf:
clocks: clocks:
minItems: 1 minItems: 1
maxItems: 2 maxItems: 2
iommus:
minItems: 1
maxItems: 2
examples: examples:
- | - |
......
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