diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> | 2022-08-17 17:22:46 +0300 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2022-09-28 16:09:51 +0100 |
commit | f5e90351a31f96e7e42a14a5cc686450b60fb94a (patch) | |
tree | f4d6608cb10523ffc1cb331aaf6983e58f914f91 /Documentation/devicetree/bindings/mfd/syscon.yaml | |
parent | 0a6df9f16f51bae699a2dee067e92d82a2a3ff05 (diff) |
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: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20220817142246.828762-5-krzysztof.kozlowski@linaro.org
Diffstat (limited to 'Documentation/devicetree/bindings/mfd/syscon.yaml')
-rw-r--r-- | Documentation/devicetree/bindings/mfd/syscon.yaml | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Documentation/devicetree/bindings/mfd/syscon.yaml b/Documentation/devicetree/bindings/mfd/syscon.yaml index c958086a5fc3..a64c7a71e6fe 100644 --- a/Documentation/devicetree/bindings/mfd/syscon.yaml +++ b/Documentation/devicetree/bindings/mfd/syscon.yaml @@ -72,7 +72,7 @@ properties: - contains: const: syscon minItems: 2 - maxItems: 4 # Should be enough + maxItems: 5 # Should be enough reg: maxItems: 1 @@ -93,6 +93,18 @@ required: - compatible - reg +allOf: + - if: + properties: + compatible: + contains: + const: simple-mfd + then: + properties: + compatible: + minItems: 3 + maxItems: 5 + additionalProperties: true examples: |