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

dt-bindings: mfd: aspeed: Drop 'oneOf' for pinctrl node

The use of 'oneOf' to include 1 of 3 possible child node schemas results
in error messages containing the actual error message(s) for the correct
SoC buried in the tons of error messages from the 2 schemas that don't
apply. It also causes the pinctrl schema to be applied twice as it will
be applied when the compatible matches.

All that's really needed in the parent schema is to ensure one of the
possible compatible strings is present in the pinctrl node so that its
schema will be applied separately.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Reviewed-by: Andrew Jeffery <andrew@codeconstruct.com.au>
Link: https://lore.kernel.org/r/20240430172520.535179-1-robh@kernel.org
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Rob Herring (Arm) and committed by
Lee Jones
dee5183d 3555d80d

+12 -4
+12 -4
Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml
··· 47 47 type: object 48 48 49 49 '^pinctrl(@[0-9a-f]+)?$': 50 - oneOf: 51 - - $ref: /schemas/pinctrl/aspeed,ast2400-pinctrl.yaml 52 - - $ref: /schemas/pinctrl/aspeed,ast2500-pinctrl.yaml 53 - - $ref: /schemas/pinctrl/aspeed,ast2600-pinctrl.yaml 50 + type: object 51 + additionalProperties: true 52 + properties: 53 + compatible: 54 + contains: 55 + enum: 56 + - aspeed,ast2400-pinctrl 57 + - aspeed,ast2500-pinctrl 58 + - aspeed,ast2600-pinctrl 59 + 60 + required: 61 + - compatible 54 62 55 63 '^interrupt-controller@[0-9a-f]+$': 56 64 description: See Documentation/devicetree/bindings/interrupt-controller/aspeed,ast2xxx-scu-ic.txt