dt-bindings: pinctrl: stm32: Fix 'st,syscfg' schema
Subsystems (5)
Rob Herring
maintainerPATCH 1/1 dt-bindings: pinctrl: stm32: Fix 'st,syscfg' schema
The proper way to add additional contraints to an existing json-schema is using 'allOf' to reference the base schema. Using just '$ref' doesn't work. Fix this for the 'st,syscfg' property.
Cc Linus Walleij <[email protected]>
Cc Mark Rutland <[email protected]>
Cc Maxime Coquelin <[email protected]>
Cc Alexandre Torgue <[email protected]>
Signed-off-by Rob Herring <[email protected]>
---
I've got some other fixes queued up and can take this via the DT tree.
Rob
.../devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml +2 -1
@@ -37,7 +37,8 @@ properties: hwlocks: true st,syscfg: - $ref: "/schemas/types.yaml#/definitions/phandle-array" + allOf: + - $ref: "/schemas/types.yaml#/definitions/phandle-array" description: Should be phandle/offset/mask items: - description: Phandle to the syscon node which includes IRQ mux selection.
Signature · 1 line
2.20.1
Quoted 12 lines · Rob Herring
The proper way to add additional contraints to an existing json-schema is using 'allOf' to reference the base schema. Using just '$ref' doesn't work. Fix this for the 'st,syscfg' property.
Cc Linus Walleij <[email protected]>Cc Mark Rutland <[email protected]>Cc Maxime Coquelin <[email protected]>Cc Alexandre Torgue <[email protected]>Signed-off-by Rob Herring <[email protected]>
Quoted 2 lines
---
I've got some other fixes queued up and can take this via the DT tree.
OK!
Reviewed-by Linus Walleij <[email protected]>
Yours,
Linus Walleij