dt-bindings: pinctrl: mt8195: fix bias-pull-{up,down} checks
authorChen-Yu Tsai <wenst@chromium.org>
Wed, 2 Feb 2022 15:35:28 +0000 (23:35 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 11 Feb 2022 00:45:40 +0000 (01:45 +0100)
commitc76eeb14ec4e645a23ed8d627c7e38eca048c527
tree773a10333f19de87c9a557f8739dd170aabcc197
parenta6ff90f3fbd4d902aad8777f0329cef3a2768bde
dt-bindings: pinctrl: mt8195: fix bias-pull-{up,down} checks

When the constraints and description for bias-pull-{up,down} were added,
the constraints were not indented correctly, resulting in them being
parsed as part of the description. This effectively nullified their
purpose.

Move the constraints out of the description block, make each description
part of the same associative array as the enum its describing, and
reindent them correctly so they take effect.

Also add "type: boolean" to the list of valid values. This corresponds
to having bias-pull-{up,down} without any arguments.

Fixes: 91e7edceda96 ("dt-bindings: pinctrl: mt8195: change pull up/down description")
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220202153528.707185-1-wenst@chromium.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/devicetree/bindings/pinctrl/pinctrl-mt8195.yaml