kernel_samsung_a53x/drivers/pinctrl
Huang-Huang Bao 78705ebad7 pinctrl: rockchip: fix pinmux bits for RK3328 GPIO2-B pins
[ Upstream commit e8448a6c817c2aa6c6af785b1d45678bd5977e8d ]

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.

The pinmux bits for those pins are not explicitly specified in RK3328
TRM, however we can get hint from pad name and its correspinding IOMUX
setting for pins in interface descriptions. The correspinding IOMIX
settings for GPIO2-B0 to GPIO2-B6 can be found in the same row next to
occurrences of following pad names in RK3328 TRM.

GPIO2-B0: IO_SPIclkm0_GPIO2B0vccio5
GPIO2-B1: IO_SPItxdm0_GPIO2B1vccio5
GPIO2-B2: IO_SPIrxdm0_GPIO2B2vccio5
GPIO2-B3: IO_SPIcsn0m0_GPIO2B3vccio5
GPIO2-B4: IO_SPIcsn1m0_FLASHvol_sel_GPIO2B4vccio5
GPIO2-B5: IO_ I2C2sda_TSADCshut_GPIO2B5vccio5
GPIO2-B6: IO_ I2C2scl_GPIO2B6vccio5

This fix has been tested on NanoPi R2S for fixing confliting pinmux bits
between GPIO2-B7 with GPIO2-B5.

Signed-off-by: Huang-Huang Bao <i@eh5.me>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Fixes: 3818e4a7678e ("pinctrl: rockchip: Add rk3328 pinctrl support")
Link: https://lore.kernel.org/r/20240606125755.53778-2-i@eh5.me
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 14:19:31 +01:00
..
actions Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
aspeed pinctrl: pinctrl-aspeed-g6: Fix register offset for pinconf of GPIOR-T 2024-11-19 11:32:41 +01:00
bcm Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
berlin Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cirrus pinctrl: lochnagar: Don't build on MIPS 2024-11-18 12:12:11 +01:00
freescale Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mediatek pinctrl: mediatek: paris: Rework support for PIN_CONFIG_{INPUT,OUTPUT}_ENABLE 2024-11-19 11:32:41 +01:00
meson pinctrl/meson: fix typo in PDM's pin name 2024-11-19 11:32:41 +01:00
mvebu Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nomadik Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nuvoton Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pxa Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qcom Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
renesas pinctrl: renesas: checker: Limit cfg reg enum checks to provided IDs 2024-11-19 09:23:14 +01:00
samsung Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sirf Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spear Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sprd Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stm32 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sunxi Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tegra Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ti Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
uniphier Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
visconti Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vt8500 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
zte Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
core.c pinctrl: fix deadlock in create_pinctrl() when handling -EPROBE_DEFER 2024-11-19 14:19:31 +01:00
core.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
devicetree.c pinctrl: devicetree: fix refcount leak in pinctrl_dt_to_map() 2024-11-19 11:32:42 +01:00
devicetree.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinconf-generic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinconf.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinconf.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-amd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-amd.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-artpec6.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-as3722.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-at91-pio4.c pinctrl: at91-pio4: use dedicated lock class for IRQ 2024-11-18 12:11:59 +01:00
pinctrl-at91.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-at91.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-axp209.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-bm1880.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-coh901.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-coh901.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-da850-pupd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-da9062.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-digicolor.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-equilibrium.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-equilibrium.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-falcon.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-gemini.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-ingenic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-lantiq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-lantiq.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-lpc18xx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-max77620.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-mcp23s08.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-mcp23s08.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-mcp23s08_i2c.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-mcp23s08_spi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-ocelot.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-oxnas.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-palmas.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-pic32.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-pic32.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-pistachio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-rk805.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-rockchip.c pinctrl: rockchip: fix pinmux bits for RK3328 GPIO2-B pins 2024-11-19 14:19:31 +01:00
pinctrl-samsung-s2mpm07.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-samsung-s2mps26.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-samsung-s2mpu13.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-samsung-s2mpu14.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-single.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-st.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-stmfx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-sx150x.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-tb10x.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-u300.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-utils.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-utils.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-xway.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-zynq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinmux.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinmux.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00