Skip to contentSkip to conversation

pinctrl: rockchip: Fix pull configuration readback on RK3506

PATCH In review Jonas Karlman 2 participants 2 messages Nov 21

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pinctrl: rockchip: Fix pull configuration readback on RK3506

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")

---
Based-on: <[email protected]>

---
 drivers/pinctrl/pinctrl-rockchip.c | 1 +
 1 file changed, 1 insertion(+)
drivers/pinctrl/pinctrl-rockchip.c +1 -0
index 97a73f8c4f6e..cad602fa41ae 100644
@@ -3910,6 +3910,7 @@ static int rockchip_get_pull(struct rockchip_pin_bank *bank, int pin_num)
 	case RK3328:
 	case RK3368:
 	case RK3399:
+	case RK3506:
 	case RK3528:
 	case RK3562:
 	case RK3568:
Signature · 1 line
2.56.1
maintainer Reviewed-by on v1 1/1
#1 lore raw

Am Samstag, 21. November 2026, 16:58:09 Mitteleuropäische Normalzeit schrieb Jonas Karlman:

Quoted 14 lines

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:

Quoted 7 lines

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")

rockchip_set_pull has that case statenment, rockchip_get_pull is missing it.