]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ARM: dts: imx: e70k02: Add touchscreen
authorAndreas Kemnade <andreas@kemnade.info>
Sat, 7 Jan 2023 12:36:21 +0000 (13:36 +0100)
committerShawn Guo <shawnguo@kernel.org>
Thu, 26 Jan 2023 00:03:52 +0000 (08:03 +0800)
Add the touchscreen now, since the driver is available.

Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/e70k02.dtsi
arch/arm/boot/dts/imx6sl-tolino-vision5.dts
arch/arm/boot/dts/imx6sll-kobo-librah2o.dts

index 27ef9a62b23cf4c9dd09fbc13130078e0a0e2001..ace3eb8a97b87c4002be0db5e21cb294d9aeccb1 100644 (file)
        clock-frequency = <100000>;
        status = "okay";
 
-       /* TODO: CYTTSP5 touch controller at 0x24 */
+       touchscreen@24 {
+               compatible = "cypress,tt21000";
+               reg = <0x24>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_cyttsp5_gpio>;
+               interrupt-parent = <&gpio4>;
+               interrupts = <24 IRQ_TYPE_EDGE_FALLING>;
+               reset-gpios = <&gpio4 18 GPIO_ACTIVE_LOW>;
+               vdd-supply = <&ldo5_reg>;
+       };
 
        /* TODO: SY7636 PMIC for E Ink at 0x62 */
 
index ff6118df3946033fa6d03e3ecde5d1d6858b8de8..6bc342035e2b6f3bdd68ed42f7c4682dd470fd21 100644 (file)
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_hog>;
 
+       pinctrl_cyttsp5_gpio: cyttsp5-gpiogrp {
+               fsl,pins = <
+                       MX6SL_PAD_FEC_TXD0__GPIO4_IO24          0x17059 /* TP_INT */
+                       MX6SL_PAD_FEC_RXD1__GPIO4_IO18          0x10059 /* TP_RST */
+               >;
+       };
+
        pinctrl_gpio_keys: gpio-keysgrp {
                fsl,pins = <
                        MX6SL_PAD_FEC_CRS_DV__GPIO4_IO25        0x17059 /* PWR_SW */
index a8b0e88064d9f126ade062ba4e965e0b3657c543..7e4f38dd11e20b456c7685b70c48c74d2f3e1003 100644 (file)
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_hog>;
 
+       pinctrl_cyttsp5_gpio: cyttsp5-gpiogrp {
+               fsl,pins = <
+                       MX6SLL_PAD_GPIO4_IO24__GPIO4_IO24       0x17059 /* TP_INT */
+                       MX6SLL_PAD_GPIO4_IO18__GPIO4_IO18       0x10059 /* TP_RST */
+               >;
+       };
+
        pinctrl_gpio_keys: gpio-keysgrp {
                fsl,pins = <
                        MX6SLL_PAD_GPIO4_IO25__GPIO4_IO25       0x17059 /* PWR_SW */