From e8af3ee493a35512eac595a3a32859fc223749ed Mon Sep 17 00:00:00 2001 From: Shashank Babu Chinta Venkata Date: Thu, 24 Feb 2022 16:35:07 -0800 Subject: [PATCH] ARM: dts: msm: add touch driver nodes for Kalama RCM Kalama RCM uses I2C for touch. Change disables the SPI serial engine node and enables the touch drivers to use I2C bus for RCM target. Change-Id: Id9acf1aaaf37ff1d76eda13fdec84dee44a9db3b --- qcom/kalama-rcm.dtsi | 53 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/qcom/kalama-rcm.dtsi b/qcom/kalama-rcm.dtsi index 318d2cbf..27e03ceb 100644 --- a/qcom/kalama-rcm.dtsi +++ b/qcom/kalama-rcm.dtsi @@ -1 +1,54 @@ #include "kalama-cdp.dtsi" + +&qupv3_se4_spi { + status = "disabled"; +}; + +&qupv3_se4_i2c { + #address-cells = <1>; + #size-cells = <0>; + + status = "ok"; + qcom,i2c-touch-active = "atmel,maxtouch"; + + goodix-berlin@5d { + compatible = "goodix,gt9916"; + reg = <0x5d>; + interrupt-parent = <&tlmm>; + interrupts = <25 0x2008>; + goodix,reset-gpio = <&tlmm 24 0x00>; + goodix,irq-gpio = <&tlmm 25 0x2008>; + goodix,irq-flags = <2>; + goodix,panel-max-x = <1080>; + goodix,panel-max-y = <2400>; + goodix,panel-max-w = <255>; + goodix,panel-max-p = <4096>; + invert_xy; + goodix,firmware-name = "goodix_firmware_i2c.bin"; + goodix,config-name = "goodix_cfg_group_i2c.bin"; + goodix,avdd-name = "avdd"; + goodix,iovdd-name = "iovdd"; + avdd-supply = <&L14B>; + iovdd-supply = <&L12B>; + }; + + atmel_mxt_ts@4a { + compatible = "atmel,maxtouch"; + reg = <0x4a>; + interrupt-parent = <&tlmm>; + interrupts = <25 0x2008>; + avdd-supply = <&L14B>; + vdd-supply = <&L12B>; + pinctrl-names = "pmx_ts_active", "pmx_ts_suspend"; + pinctrl-0 = <&ts_active>; + pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; + + atmel,xy_switch; + atmel,inverty; + atmel,invertx; + reset-gpios = <&tlmm 24 0x00>; + irq-gpios = <&tlmm 25 0x2008>; + atmel,panel-coords = <0 0 479 799>; + atmel,display-coords = <0 0 339 729>; + }; +};