[PATCH] pinctrl: qcom: sm8750: add the I2C strong pull-up bit
From: Zhendong Liu via B4 Relay
Date: Sat Dec 05 2026 - 05:56:21 EST
From: Zhendong Liu <yzddmr6@xxxxxxxxx>
The SM8750 TLMM has the I2C strong pull-up control in bit 13 of the pin
config register, like SM8550, SM8650, X1E80100, Milos and Kaanapali,
but the driver does not describe it, so "bias-pull-up = <2200>" silently
falls back to the normal pull-up. sm8750-mtp.dts already asks for it on
the QUP1 SE3 pins (gpio44/45).
The downstream SM8750 kernel writes the same bit for its "qcom,i2c_pull"
pin property, and sets it on the SDA/SCL pins of the I2C-capable serial
engines, gpio44/45 included.
With the bit described, a plain "bias-pull-up" also clears bit 13
instead of leaving it as the boot firmware set it, as on the SoCs above.
Tested on a Xiaomi Pad 8 Pro with "bias-pull-up = <2200>" on gpio0/1
(QUP2 SE0): pinconf-groups reads back "input bias pull up (2200 ohms)",
so the bit is implemented and holds its value, and the devices on that
bus and on two other buses set up the same way work. The electrical
effect of the bit was not measured.
The missing field was found with the help of an AI coding assistant.
Fixes: afe9803e3b82 ("pinctrl: qcom: Add sm8750 pinctrl driver")
Signed-off-by: Zhendong Liu <yzddmr6@xxxxxxxxx>
---
The readback was taken on our downstream SM8750 tablet kernel with this
patch applied. Like mainline, its pinctrl-msm.c reports 2200 ohms only
when bit 13 reads back set. Built with W=1 (arm64 defconfig) on the
base commit below, no new warnings.
I used an AI coding assistant for this work. It compared the TLMM
description with the downstream kernel and the sibling drivers, and
drafted this patch and changelog. I have reviewed the change and the
test results.
---
drivers/pinctrl/qcom/pinctrl-sm8750.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/pinctrl/qcom/pinctrl-sm8750.c b/drivers/pinctrl/qcom/pinctrl-sm8750.c
index f27e55c088d5..129a32a408d8 100644
--- a/drivers/pinctrl/qcom/pinctrl-sm8750.c
+++ b/drivers/pinctrl/qcom/pinctrl-sm8750.c
@@ -38,6 +38,7 @@
.mux_bit = 2, \
.pull_bit = 0, \
.drv_bit = 6, \
+ .i2c_pull_bit = 13, \
.egpio_enable = 12, \
.egpio_present = 11, \
.oe_bit = 9, \
---
base-commit: 2a670cba36ef501faef8357b4648192cc37d417b
change-id: 20261205-upstream3-pinctrl-sm8750-i2c-pull-2046ffb64cd6
Best regards,
--
Zhendong Liu <yzddmr6@xxxxxxxxx>