[PATCH 2/4] dt-bindings: mfd: syscon: allow two reg regions for gs101-pmu
Peter Griffin
peter.griffin at linaro.org
Fri Dec 13 08:44:39 PST 2024
To avoid dtschema warnings allow google,gs101-pmu to have
two reg regions.
Signed-off-by: Peter Griffin <peter.griffin at linaro.org>
---
I don't really like this patch, but also didn't want to submit the series
with a dtschema warning ;-)
Possibly a better solution is when Robs patch
`mfd: syscon: Allow syscon nodes without a "syscon" compatible` [1]
gets updated with a v2, we could remove syscon compatible from
gs101.dtsi (an ABI issue). If I understood his patch correctly,
it would mean this yaml update would then no longer be required.
Let me know your thoughts
[1] https://lore.kernel.org/lkml/20241211-syscon-fixes-v1-0-b5ac8c219e96@kernel.org/T/#m5ad1ed5c69f693d2a5cc54342a87fbdf3df756d2
---
Documentation/devicetree/bindings/mfd/syscon-common.yaml | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/Documentation/devicetree/bindings/mfd/syscon-common.yaml b/Documentation/devicetree/bindings/mfd/syscon-common.yaml
index 451cbad467a3..9cd9739d5e97 100644
--- a/Documentation/devicetree/bindings/mfd/syscon-common.yaml
+++ b/Documentation/devicetree/bindings/mfd/syscon-common.yaml
@@ -59,6 +59,16 @@ allOf:
compatible:
minItems: 3
maxItems: 5
+ - if:
+ properties:
+ compatible:
+ contains:
+ const:
+ - google,gs101-pmu
+ then:
+ properties:
+ reg:
+ maxItems: 2
additionalProperties: true
--
2.47.1.613.gc27f4b7a9f-goog
More information about the linux-arm-kernel
mailing list