ARM: dts: imx6dl-prtvt7: add TSC2046 touchscreen node
authorOleksij Rempel <o.rempel@pengutronix.de>
Tue, 18 May 2021 08:28:42 +0000 (10:28 +0200)
committerShawn Guo <shawnguo@kernel.org>
Tue, 8 Jun 2021 11:48:39 +0000 (19:48 +0800)
Add touchscreen support to the Protonic VT7 board.

Co-Developed-by: Robin van der Gracht <robin@protonic.nl>
Signed-off-by: Robin van der Gracht <robin@protonic.nl>
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6dl-prtvt7.dts

index ae6da24..428ed9f 100644 (file)
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_ecspi2>;
        status = "okay";
+
+       touchscreen@0 {
+               compatible = "ti,tsc2046";
+               reg = <0>;
+               pinctrl-0 = <&pinctrl_tsc>;
+               pinctrl-names ="default";
+               spi-max-frequency = <100000>;
+               interrupts-extended = <&gpio3 20 IRQ_TYPE_EDGE_FALLING>;
+               pendown-gpio = <&gpio3 20 GPIO_ACTIVE_LOW>;
+               touchscreen-max-pressure = <4095>;
+               ti,vref-delay-usecs = /bits/ 16 <100>;
+               ti,x-plate-ohms = /bits/ 16 <800>;
+               ti,y-plate-ohms = /bits/ 16 <300>;
+               wakeup-source;
+       };
 };
 
 &i2c1 {