arm64: dts: qcom: sm8250-edo: Add Samsung touchscreen
authorKonrad Dybcio <konrad.dybcio@somainline.org>
Wed, 16 Jun 2021 12:27:08 +0000 (14:27 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Fri, 18 Jun 2021 17:43:33 +0000 (12:43 -0500)
Add Samsung touchscreen node and relevant pin configuration to make the phones
actually interactable with.

Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Link: https://lore.kernel.org/r/20210616122708.144770-6-konrad.dybcio@somainline.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
arch/arm64/boot/dts/qcom/sm8250-sony-xperia-edo.dtsi

index a789e99..d63f7a9 100644 (file)
        status = "okay";
        clock-frequency = <400000>;
 
-       /* Samsung touchscreen @ 48 */
+       touchscreen@48 {
+               compatible = "samsung,s6sy761";
+               reg = <0x48>;
+               interrupt-parent = <&tlmm>;
+               interrupts = <39 0x2008>;
+               /* It's "vddio" downstream but it works anyway! */
+               vdd-supply = <&vreg_l1c_1p8>;
+               avdd-supply = <&vreg_l10c_3p3>;
+
+               pinctrl-names = "default";
+               pinctrl-0 = <&ts_int_default>;
+       };
 };
 
 &i2c15 {
                bias-disable;
        };
 
+       ts_int_default: ts-int-default {
+               pins = "gpio39";
+               function = "gpio";
+               drive-strength = <2>;
+               bias-disabled;
+               input-enable;
+       };
+
        ap2mdm_default: ap2mdm-default {
                pins = "gpio56", "gpio57";
                function = "gpio";