dt-bindings: pinctrl: mt8195: Use real world values for drive-strength arguments
authorChen-Yu Tsai <wenst@chromium.org>
Mon, 26 Jul 2021 11:19:41 +0000 (19:19 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 11 Aug 2021 09:05:14 +0000 (11:05 +0200)
commit936c985478716b228f42f47c075d4ea10dfa98bb
tree3a64fa055d97b8e04fe75b3e6e233db51ce97073
parent379e28b5b36f523e5afd9c129505580024613e22
dt-bindings: pinctrl: mt8195: Use real world values for drive-strength arguments

The original binding submission for MT8195 pinctrl described the
possible drive strength values in micro-amps in its description, but
then proceeded to list register values in its device tree binding
constraints.

However, the macros used with the Mediatek pinctrl bindings directly
specify the drive strength in micro-amps, instead of hardware register
values. The current driver implementation in Linux does convert the
value from micro-amps to hardware register values. This implementation
is also used with MT7622 and MT8183, which use real world values in
their device trees.

Given the above, it was likely an oversight to use the raw register
values in the binding. Correct the values in the binding. Also drop
the description since the binding combined with its parent,
pinctrl/pincfg.yaml, the binding is now self-describing.

Fixes: 7f7663899d94 ("dt-bindings: pinctrl: mt8195: add pinctrl file and binding document")
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Acked-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20210726111941.1447057-1-wenst@chromium.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/devicetree/bindings/pinctrl/pinctrl-mt8195.yaml