arm64: dts: mediatek: mt6795-xperia-m5: Add Synaptics RMI4 Touchscreen
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Mon, 27 Mar 2023 08:36:43 +0000 (10:36 +0200)
committerMatthias Brugger <matthias.bgg@gmail.com>
Tue, 11 Apr 2023 16:38:21 +0000 (18:38 +0200)
Add the RMI4 Touchscreen on I2C2 and its pin definitions.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20230327083647.22017-14-angelogioacchino.delregno@collabora.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
arch/arm64/boot/dts/mediatek/mt6795-sony-xperia-m5.dts

index 6df1c84..edab90f 100644 (file)
        pinctrl-names = "default";
        pinctrl-0 = <&i2c2_pins>;
        status = "okay";
+
+       touchscreen@20 {
+               compatible = "syna,rmi4-i2c";
+               reg = <0x20>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+               interrupts-extended = <&pio 6 IRQ_TYPE_EDGE_FALLING>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&ts_pins>;
+               syna,startup-delay-ms = <160>;
+               syna,reset-delay-ms = <90>;
+
+               rmi4-f01@1 {
+                       reg = <0x1>;
+                       syna,nosleep-mode = <1>;
+               };
+
+               rmi4-f12@12 {
+                       reg = <0x12>;
+                       syna,sensor-type = <1>;
+               };
+       };
 };
 
 &i2c3 {
 };
 
 &pio {
+       ts_pins: touchscreen-pins {
+               pins-irq {
+                       pinmux = <PINMUX_GPIO6__FUNC_GPIO6>;
+                       bias-pull-up;
+                       input-enable;
+               };
+
+               pins-rst {
+                       pinmux = <PINMUX_GPIO102__FUNC_GPIO102>;
+                       output-high;
+               };
+       };
+
        i2c0_pins: i2c0-pins {
                pins-bus {
                        pinmux = <PINMUX_GPIO45__FUNC_SDA0>,