Describe the SW42902 touchscreen on GENI I2C13 with its interrupt, reset, regulator supplies, pinctrl, and native 1080x2460 touch area.
Signed-off-by: Abdur Rofik <[email protected]> --- arch/arm64/boot/dts/qcom/sm8250-lg-timelm.dts | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250-lg-timelm.dts b/arch/arm64/boot/dts/qcom/sm8250-lg-timelm.dts index 59d6c1518a469..160b6f4c98b17 100644 --- a/arch/arm64/boot/dts/qcom/sm8250-lg-timelm.dts +++ b/arch/arm64/boot/dts/qcom/sm8250-lg-timelm.dts @@ -107,6 +107,24 @@ vph_pwr: vph-pwr-regulator { regulator-always-on; regulator-boot-on; }; + + reg_ts_vcl: regulator-ts-vcl { + compatible = "regulator-fixed"; + regulator-name = "reg_ts_vcl"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&pm8150_gpios 8 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + + reg_ts_vdd: regulator-ts-vdd { + compatible = "regulator-fixed"; + regulator-name = "reg_ts_vdd"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + gpio = <&pm8150_gpios 9 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; }; &apps_rsc { @@ -461,6 +479,29 @@ &gpu_zap_shader { firmware-name = "qcom/sm8250/LG/timelm/a650_zap.mbn"; }; +&i2c13 { + status = "okay"; + clock-frequency = <400000>; + + touchscreen@48 { + compatible = "lg,sw42902"; + reg = <0x48>; + + interrupt-parent = <&tlmm>; + interrupts = <39 IRQ_TYPE_LEVEL_LOW>; + + pinctrl-names = "default"; + pinctrl-0 = <&ts_int_default>; + + reset-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>; + vcl-supply = <®_ts_vcl>; + vdd-supply = <®_ts_vdd>; + + touchscreen-size-x = <1080>; + touchscreen-size-y = <2460>; + }; +}; + &mdss { status = "okay"; }; @@ -580,6 +621,13 @@ sdc2_card_det_n: sd-card-det-n-state { drive-strength = <2>; bias-pull-up; }; + + ts_int_default: ts-int-default-state { + pins = "gpio39"; + function = "gpio"; + drive-strength = <8>; + bias-pull-up; + }; }; &uart12 { -- 2.39.5
