pinctrl: rockchip: fix RK3308 pinmux bits
authorLuca Ceresoli <luca.ceresoli@bootlin.com>
Wed, 20 Apr 2022 14:24:31 +0000 (16:24 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 May 2022 07:14:35 +0000 (09:14 +0200)
commiteea166561f7c70128263637cf99b1576b4bd1be4
treeea5161cfcb15a8a5a026749e8bd152b3d5616d3b
parent86d8076e597109348724212b7796e813dd25051e
pinctrl: rockchip: fix RK3308 pinmux bits

[ Upstream commit 1f3e25a068832f8892a5ff71467622d012f5bc9f ]

Some of the pinmuxing bits described in rk3308_mux_recalced_data are wrong,
pointing to non-existing registers.

Fix the entire table.

Also add a comment in front of each entry with the same string that appears
in the datasheet to make the table easier to compare with the docs.

This fix has been tested on real hardware for the gpio3b3_sel entry.

Fixes: 7825aeb7b208 ("pinctrl: rockchip: add rk3308 SoC support")
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/20220420142432.248565-1-luca.ceresoli@bootlin.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pinctrl/pinctrl-rockchip.c