arm64: dts: qcom: msm8916-samsung-a5u: Add touchscreen
authorStephan Gerhold <stephan@gerhold.net>
Sun, 26 Apr 2020 14:06:42 +0000 (16:06 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 12 May 2020 18:24:01 +0000 (11:24 -0700)
A5U uses a Melfas MMS345L touchscreen that is connected to
blsp_i2c5. Add it to the device tree.

Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Link: https://lore.kernel.org/r/20200426140642.204395-5-stephan@gerhold.net
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
arch/arm64/boot/dts/qcom/msm8916-samsung-a5u-eur.dts

index 6629a62..a555db8 100644 (file)
@@ -9,8 +9,43 @@
        compatible = "samsung,a5u-eur", "qcom,msm8916";
 };
 
+&blsp_i2c5 {
+       status = "okay";
+
+       touchscreen@48 {
+               compatible = "melfas,mms345l";
+
+               reg = <0x48>;
+               interrupt-parent = <&msmgpio>;
+               interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
+
+               touchscreen-size-x = <720>;
+               touchscreen-size-y = <1280>;
+
+               avdd-supply = <&reg_vdd_tsp>;
+               vdd-supply = <&pm8916_l6>;
+
+               pinctrl-names = "default";
+               pinctrl-0 = <&ts_int_default>;
+       };
+};
+
 &pronto {
        iris {
                compatible = "qcom,wcn3680";
        };
 };
+
+&msmgpio {
+       ts_int_default: ts-int-default {
+               pinmux {
+                       function = "gpio";
+                       pins = "gpio13";
+               };
+               pinconf {
+                       pins = "gpio13";
+                       drive-strength = <2>;
+                       bias-disable;
+               };
+       };
+};