arm64: dts: qcom: msm8916-samsung-grandmax: Add touchscreen
authorLin, Meng-Bo <linmengbo06890@proton.me>
Thu, 18 Jul 2024 11:28:57 +0000 (11:28 +0000)
committerBjorn Andersson <andersson@kernel.org>
Mon, 29 Jul 2024 03:00:40 +0000 (22:00 -0500)
Grand Max uses an Imagis IST3038 touchscreen that is connected to
blsp_i2c5. Add it to the device tree.

Signed-off-by: Lin, Meng-Bo <linmengbo06890@proton.me>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20240718112715.6117-1-linmengbo06890@proton.me
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/msm8916-samsung-grandmax.dts

index 135df17..5ddb69b 100644 (file)
        constant-charge-voltage-max-microvolt = <4400000>;
 };
 
+&blsp_i2c5 {
+       status = "okay";
+
+       touchscreen@50 {
+               compatible = "imagis,ist3038";
+               reg = <0x50>;
+
+               interrupts-extended = <&tlmm 13 IRQ_TYPE_EDGE_FALLING>;
+
+               touchscreen-size-x = <720>;
+               touchscreen-size-y = <1280>;
+
+               vdd-supply = <&reg_vdd_tsp_a>;
+               vddio-supply = <&pm8916_l6>;
+
+               pinctrl-0 = <&ts_int_default>;
+               pinctrl-names = "default";
+
+               linux,keycodes = <KEY_APPSELECT KEY_BACK>;
+       };
+};
+
 &reg_motor_vdd {
        gpio = <&tlmm 72 GPIO_ACTIVE_HIGH>;
 };
 
 &reg_touch_key {
-       status = "disabled";
+       status = "disabled"; /* Using Imagis touch key */
 };
 
 &sound {