arm64: dts: mt8192-asurada-spherion: Add Synaptics trackpad support
authorPin-yen Lin <treapking@chromium.org>
Thu, 12 Sep 2024 15:44:29 +0000 (23:44 +0800)
committerAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Wed, 2 Oct 2024 09:20:32 +0000 (11:20 +0200)
Some spherion variants use Synaptics trackpad at address 0x2c in the
I2C2 bus with the generic HID-over-i2c driver, and this cannot be
distinguished from the firmware compatible string.

Support both trackpads in the same devicetree by moving the trackpad
pinctrl property to i2c2 and adding the node for Synaptics trackpad.

Signed-off-by: Pin-yen Lin <treapking@chromium.org>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Link: https://lore.kernel.org/r/20240912154451.3447081-1-treapking@chromium.org
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
arch/arm64/boot/dts/mediatek/mt8192-asurada-spherion-r0.dts
arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi

index 29aa87e938882f94cb5358fe735e5b839687b366..8c485c3ced2c818af3d0ea64c92ba72590f1d7ce 100644 (file)
 &touchscreen {
        compatible = "elan,ekth3500";
 };
+
+&i2c2 {
+       /* synaptics touchpad */
+       trackpad@2c {
+               compatible = "hid-over-i2c";
+               reg = <0x2c>;
+               hid-descr-addr = <0x20>;
+               interrupts-extended = <&pio 15 IRQ_TYPE_LEVEL_LOW>;
+               wakeup-source;
+       };
+};
index 08d71ddf36683e08b12384fee7a3abc6111ba6f6..8dda8b63765bad349e851e3ed2753d2df1785472 100644 (file)
        clock-frequency = <400000>;
        clock-stretch-ns = <12600>;
        pinctrl-names = "default";
-       pinctrl-0 = <&i2c2_pins>;
+       pinctrl-0 = <&i2c2_pins>, <&trackpad_pins>;
 
        trackpad@15 {
                compatible = "elan,ekth3000";
                reg = <0x15>;
                interrupts-extended = <&pio 15 IRQ_TYPE_LEVEL_LOW>;
-               pinctrl-names = "default";
-               pinctrl-0 = <&trackpad_pins>;
                vcc-supply = <&pp3300_u>;
                wakeup-source;
        };