Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm64: dts: mediatek: mt8192-asurada-spherion: Mark trackpads as fail-needs-probe

Different Spherion variants use different trackpads on the same I2C2
bus. Instead of enabling all of them by default, mark them as
"fail-needs-probe" and let the implementation determine which one is
actually present.

Additionally, move the trackpad pinctrl entry back to the individual
trackpad nodes.

Signed-off-by: Laura Nao <laura.nao@collabora.com>
Reviewed-by: Chen-Yu Tsai <wenst@chromium.org>
Reviewed-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
Tested-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20250318102259.189289-3-laura.nao@collabora.com
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>

authored by

Laura Nao and committed by
AngeloGioacchino Del Regno
1fcb7608 85c767d2

+11 -2
+7
arch/arm64/boot/dts/mediatek/mt8192-asurada-spherion-r0.dts
··· 85 85 trackpad@2c { 86 86 compatible = "hid-over-i2c"; 87 87 reg = <0x2c>; 88 + pinctrl-names = "default"; 89 + pinctrl-0 = <&trackpad_pins>; 88 90 hid-descr-addr = <0x20>; 89 91 interrupts-extended = <&pio 15 IRQ_TYPE_LEVEL_LOW>; 90 92 wakeup-source; 93 + status = "fail-needs-probe"; 91 94 }; 95 + }; 96 + 97 + &trackpad { 98 + status = "fail-needs-probe"; 92 99 };
+4 -2
arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi
··· 346 346 clock-frequency = <400000>; 347 347 clock-stretch-ns = <12600>; 348 348 pinctrl-names = "default"; 349 - pinctrl-0 = <&i2c2_pins>, <&trackpad_pins>; 349 + pinctrl-0 = <&i2c2_pins>; 350 350 351 - trackpad@15 { 351 + trackpad: trackpad@15 { 352 352 compatible = "elan,ekth3000"; 353 353 reg = <0x15>; 354 + pinctrl-names = "default"; 355 + pinctrl-0 = <&trackpad_pins>; 354 356 interrupts-extended = <&pio 15 IRQ_TYPE_LEVEL_LOW>; 355 357 vcc-supply = <&pp3300_u>; 356 358 wakeup-source;