[PATCH] pinctrl: rockchip: Fix pull configuration readback on RK3506
Heiko Stübner
heiko at sntech.de
Sat Nov 21 08:09:29 PST 2026
Am Samstag, 21. November 2026, 16:58:09 Mitteleuropäische Normalzeit schrieb Jonas Karlman:
> rockchip_get_pull() is missing a RK3506 case and instead returns -EINVAL
> for all pins. As a result, the pinconf-pins debugfs file omits the pull
> configuration for all pins on RK3506:
>
> pin 0 (gpio0-0): ..., pin output (1 level)
> pin 1 (gpio0-1): ..., pin output (1 level)
> pin 2 (gpio0-2): ..., pin output (1 level)
> pin 3 (gpio0-3): ..., pin output (0 level)
>
> Add RK3506 to the case that decodes the pull configuration from the
> register value to fix pull configuration readback on RK3506.
>
> After this the pinconf-pins debugfs file includes pull configuration:
>
> pin 0 (gpio0-0): input bias pull up (1 ohms), ..., pin output (1 level)
> pin 1 (gpio0-1): input bias pull down (1 ohms), ..., pin output (1 level)
> pin 2 (gpio0-2): input bias pull up (1 ohms), ..., pin output (1 level)
> pin 3 (gpio0-3): input bias pull down (1 ohms), ..., pin output (0 level)
>
> Fixes: dbd2317d7b9f ("pinctrl: rockchip: Add rk3506 pinctrl support")
> Signed-off-by: Jonas Karlman <jonas at kwiboo.se>
rockchip_set_pull has that case statenment, rockchip_get_pull is
missing it.
Reviewed-by: Heiko Stuebner <heiko at sntech.de>
More information about the Linux-rockchip
mailing list