Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: mfd: samsung,s2mps11: Add comment about interrupts properties

Document why the binding uses oneOf when specifying just one of the
interrupt properties is supposed to be enough.

dtschema's fixups.py has special treatment of the interrupts and
interrupts-extended properties, but that appears to work at the top
level only. Elsewhere, an explicit oneOf is required.

Signed-off-by: André Draszik <andre.draszik@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20250627-s2mpg10-binding-comment-v1-1-f37e5187f0fd@linaro.org
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

André Draszik and committed by
Lee Jones
96ecc71f c371040f

+3
+3
Documentation/devicetree/bindings/mfd/samsung,s2mps11.yaml
··· 81 81 samsung,s2mps11-acokb-ground: false 82 82 samsung,s2mps11-wrstbi-ground: false 83 83 84 + # oneOf is required, because dtschema's fixups.py doesn't handle this 85 + # nesting here. Its special treatment to allow either interrupt property 86 + # when only one is specified in the binding works at the top level only. 84 87 oneOf: 85 88 - required: [interrupts] 86 89 - required: [interrupts-extended]