]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: sunxi: Add I/O bias setting for H6 R-PIO
authorSamuel Holland <samuel@sholland.org>
Wed, 13 Jul 2022 02:52:29 +0000 (21:52 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Aug 2022 09:18:24 +0000 (11:18 +0200)
commitf434586b6ad18f6ef9a73412971066499885e55c
treebf7479fd6f0ecf4171b2c1dffcf1466027473ea5
parentf2b76934ac1a5036fdbc4bb95ff69e3cf4b63511
pinctrl: sunxi: Add I/O bias setting for H6 R-PIO

commit c9b30536aa92d70b1169cf8c95d44981f5770dbb upstream.

H6 requires I/O bias configuration on both of its PIO devices.
Previously it was only done for the main PIO.

The setting for Port L is at bit 0, so the bank calculation needs to
account for the pin base. Otherwise the wrong bit is used.

Fixes: 50301be9fca7 ("pinctrl: sunxi: Support I/O bias voltage setting on H6")
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Samuel Holland <samuel@sholland.org>
Link: https://lore.kernel.org/r/20220713025233.27248-3-samuel@sholland.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pinctrl/sunxi/pinctrl-sun50i-h6-r.c
drivers/pinctrl/sunxi/pinctrl-sunxi.c