]> www.infradead.org Git - users/jedix/linux-maple.git/commit
arm64: dts: qcom: x1e80100-t14s: add another trackpad support
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Fri, 4 Oct 2024 13:08:49 +0000 (14:08 +0100)
committerBjorn Andersson <andersson@kernel.org>
Mon, 14 Oct 2024 23:46:46 +0000 (18:46 -0500)
commit8847c970ea06b4ab6f5d713a4adfe01982e4fa20
tree44f04730435fe165c2206183a62f54a5d9967421
parentf5b788d0e8cdaac7df6ec9a24926672965d87dfc
arm64: dts: qcom: x1e80100-t14s: add another trackpad support

Trackpad HID device on T14s could be found on two possible slave addresses
(hid@15 and hid@2c) on i2c0 instance.
With the current state of DT boot, there is no way to patch the device
tree at runtime during boot. This, however results in non-functional
trackpad on Product Models 21N2ZC5PUS which have trackpad on hid@2c
slave address.

This patch adds hid@2c device along with hid@15 to get it working on
both the variants. This should work as i2c-hid driver will stop
probing the device if there is nothing on the slave address, we can
actually keep both devices enabled in DT, and i2c-hid driver will
only probe the existing one.

The only problem is that we cannot setup pinctrl in both device nodes,
as two devices with the same pinctrl will cause pin conflict that makes
the second device fail to probe.  Let's move the pinctrl state up to
parent node along with the parent pinctrl to solve this problem.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20241004130849.2944-1-srinivas.kandagatla@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dts