pinctrl: rockchip: rk3328: Fix pinmux for GPIO2-B and GPIO3-B pins
authorJonas Karlman <jonas@kwiboo.se>
Mon, 6 Jan 2025 21:39:42 +0000 (21:39 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Wed, 19 Feb 2025 15:24:48 +0000 (23:24 +0800)
commitd5a3fb9ef82a99f3d6498d562691a6a3c84c5528
tree7a891d2b0f585aa76b756468ca8a9188cb715bc6
parent110428931cbc5791697a09096bf5f16ad016da20
pinctrl: rockchip: rk3328: Fix pinmux for GPIO2-B and GPIO3-B pins

The pinmux bits for GPIO2-B0 to GPIO2-B6 actually have 2 bits width,
correct the bank flag for GPIO2-B. The pinmux bits for GPIO2-B7 is
recalculated so it remain unchanged. Add missing GPIO3-B1 to GPIO3-B7
pinmux data to rk3328_mux_recalced_data as mux register offset for these
pins does not follow rockchip convention.

This matches changes in following Linux commits:
e8448a6c817c ("pinctrl: rockchip: fix pinmux bits for RK3328 GPIO2-B pins")
5ef6914e0bf5 ("pinctrl: rockchip: fix pinmux bits for RK3328 GPIO3-B pins")
128f71fe014f ("pinctrl: rockchip: correct RK3328 iomux width flag for GPIO2-B pins")

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
drivers/pinctrl/rockchip/pinctrl-rk3328.c