arm64: dts: qcom: msm8916-alcatel-idol347: enable touchscreen
authorVincent Knecht <vincent.knecht@mailoo.org>
Fri, 28 May 2021 11:43:45 +0000 (13:43 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 31 May 2021 17:12:10 +0000 (12:12 -0500)
Enable the MStar msg2638 touchscreen.

Reviewed-by: Stephan Gerhold <stephan@gerhold.net>
Signed-off-by: Vincent Knecht <vincent.knecht@mailoo.org>
Link: https://lore.kernel.org/r/20210528114345.543761-1-vincent.knecht@mailoo.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
arch/arm64/boot/dts/qcom/msm8916-alcatel-idol347.dts

index 540b1fa..670bd1b 100644 (file)
        status = "okay";
 };
 
+&blsp_i2c4 {
+       status = "okay";
+
+       touchscreen@26 {
+               compatible = "mstar,msg2638";
+               reg = <0x26>;
+               interrupt-parent = <&msmgpio>;
+               interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
+               reset-gpios = <&msmgpio 100 GPIO_ACTIVE_LOW>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&ts_int_reset_default>;
+               vdd-supply = <&pm8916_l17>;
+               vddio-supply = <&pm8916_l5>;
+               touchscreen-size-x = <2048>;
+               touchscreen-size-y = <2048>;
+       };
+};
+
 &blsp_i2c5 {
        status = "okay";
 
                bias-pull-up;
        };
 
+       ts_int_reset_default: ts-int-reset-default {
+               pins = "gpio13", "gpio100";
+               function = "gpio";
+
+               drive-strength = <2>;
+               bias-disable;
+       };
+
        usb_id_default: usb-id-default {
                pins = "gpio69";
                function = "gpio";