dt-bindings: pinctrl: nvidia,tegra234-pinmux: Restructure common schema
authorRob Herring <robh@kernel.org>
Fri, 2 Feb 2024 22:34:53 +0000 (16:34 -0600)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 9 Feb 2024 13:32:47 +0000 (14:32 +0100)
commit7ac572883f3e252f1965117f3cf4331b44978d90
tree17ae32581bb512c2392fbe4d44bccce54ef4944f
parente15ab05a6b3ed42f2f43f8bd1a1abdbde64afecd
dt-bindings: pinctrl: nvidia,tegra234-pinmux: Restructure common schema

The structure of the NVIDIA Tegra234 common pinmux schema doesn't work
for restricting properties because a child node schema can't be extended
with additional properties from another schema defining the same child
node. The 2 child node schemas are evaluated independently as the
schemas are not recursively combined in any way.

As the common schema is almost all the child node schema anyways, just
remove the parent node from the common schema. Then add 'reg' and adjust
the $ref's in the users of the common schema.

Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20240202223454.1667383-1-robh@kernel.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/devicetree/bindings/pinctrl/nvidia,tegra234-pinmux-aon.yaml
Documentation/devicetree/bindings/pinctrl/nvidia,tegra234-pinmux-common.yaml
Documentation/devicetree/bindings/pinctrl/nvidia,tegra234-pinmux.yaml