diff options
author | Oleksandr Suvorov <oleksandr.suvorov@toradex.com> | 2021-02-12 16:56:07 +0200 |
---|---|---|
committer | Oleksandr Suvorov <oleksandr.suvorov@toradex.com> | 2021-02-16 14:03:01 +0000 |
commit | ec0666af9eefddb92cae8388906685e2250642e1 (patch) | |
tree | e3c9968168bee742bd9be58285803c5e8e33846f | |
parent | fd347ddb3464abcc8a186bd91be57f039cb79453 (diff) |
arm64: dts: apalis-imx8x: add ad7879 device
Add the common settings of AD7879 and related stuff to the main
devicetree to keep the overlay as simple as possible.
Related-to: ELB-3242
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
-rw-r--r-- | arch/arm64/boot/dts/freescale/imx8qxp-apalis.dtsi | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/freescale/imx8qxp-apalis.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp-apalis.dtsi index c311ad10ebf6..236a9052034c 100644 --- a/arch/arm64/boot/dts/freescale/imx8qxp-apalis.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8qxp-apalis.dtsi @@ -409,6 +409,24 @@ clock-frequency = <100000>; status = "okay"; + /* Touch controller */ + ad7879_ts: touchscreen@2c { + compatible = "adi,ad7879-1"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_ad7879_int>; + reg = <0x2c>; + interrupt-parent = <&lsio_gpio3>; + interrupts = <5 IRQ_TYPE_EDGE_FALLING>; + touchscreen-max-pressure = <4096>; + adi,resistance-plate-x = <120>; + adi,first-conversion-delay = /bits/ 8 <3>; + adi,acquisition-time = /bits/ 8 <1>; + adi,median-filter-size = /bits/ 8 <2>; + adi,averaging = /bits/ 8 <1>; + adi,conversion-interval = /bits/ 8 <255>; + status = "disabled"; + }; + /* On-Module EEPROM */ eeprom: eeprom@50 { compatible = "atmel,24c02"; @@ -508,6 +526,13 @@ <&pinctrl_wifi_sclk>; apalis-imx8qxp { + /* On-module touch pen-down interrupt */ + pinctrl_ad7879_int: ad7879-int { + fsl,pins = < + IMX8QXP_MIPI_CSI0_I2C0_SCL_LSIO_GPIO3_IO05 0x21 /* TOUCH_PEN_IRQ */ + >; + }; + /* Apalis AN1_ADC */ pinctrl_adc0: adc0grp { fsl,pins = < |