Commit f5e90351 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Lee Jones

dt-bindings: mfd: syscon: Require specific compatible also for simple-mfd

The syscon bindings require a device specific compatible, beside the
"syscon".  However schema counts "simple-mfd" as such, which allows
simple-mfd+syscon to sneak in.

Adjust the match to be sure simple-mfd also comes with a device specific
compatible.
Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: default avatarLee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20220817142246.828762-5-krzysztof.kozlowski@linaro.org
parent 0a6df9f1
...@@ -72,7 +72,7 @@ properties: ...@@ -72,7 +72,7 @@ properties:
- contains: - contains:
const: syscon const: syscon
minItems: 2 minItems: 2
maxItems: 4 # Should be enough maxItems: 5 # Should be enough
reg: reg:
maxItems: 1 maxItems: 1
...@@ -93,6 +93,18 @@ required: ...@@ -93,6 +93,18 @@ required:
- compatible - compatible
- reg - reg
allOf:
- if:
properties:
compatible:
contains:
const: simple-mfd
then:
properties:
compatible:
minItems: 3
maxItems: 5
additionalProperties: true additionalProperties: true
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