ARM: dts: qcom: msm8974-FP2: Add support for touchscreen
authorLuca Weiss <luca@z3ntu.xyz>
Thu, 21 Apr 2022 21:42:41 +0000 (23:42 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 3 May 2022 19:17:02 +0000 (14:17 -0500)
Configure the touchscreen found on the new display module of the FP2.
To add some detail, FP2 has two different screen/touchscreen variants
("display module"), the old module has Synaptics touchscreen, the new
one this Ilitek touchscreen.

We're only supporting the new display module for now.

Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220421214243.352469-1-luca@z3ntu.xyz
arch/arm/boot/dts/qcom-msm8974pro-fairphone-fp2.dts

index 26fc2002e5c329c6c859cfb48d1e3c7b10ee920a..d0ae19a9874ebaf73f07e20757d55d110aee4c2d 100644 (file)
        };
 };
 
+&blsp1_i2c2 {
+       status = "okay";
+
+       touchscreen@41 {
+               compatible = "ilitek,ili2120";
+               reg = <0x41>;
+               interrupt-parent = <&tlmm>;
+               interrupts = <28 IRQ_TYPE_EDGE_FALLING>;
+               reset-gpios = <&tlmm 55 GPIO_ACTIVE_LOW>;
+
+               touchscreen-size-x = <1080>;
+               touchscreen-size-y = <1920>;
+       };
+};
+
 &blsp1_uart2 {
        status = "okay";
 };