OSDN Git Service

arm64: dts: imx8mq-librem5: add pinctrl for the touchscreen description
authorMartin Kepplinger <martin.kepplinger@puri.sm>
Tue, 22 Dec 2020 15:13:45 +0000 (16:13 +0100)
committerShawn Guo <shawnguo@kernel.org>
Mon, 11 Jan 2021 00:27:40 +0000 (08:27 +0800)
In order for the touchscreen interrupt line to work, describe it properly.
Otherwise it can work if defaults are ok, but we cannot be sure.

Fixes: 8f0216b006e5 ("arm64: dts: Add a device tree for the Librem 5 phone")
Signed-off-by: Martin Kepplinger <martin.kepplinger@puri.sm>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi

index 55268fc..8fceeca 100644 (file)
                >;
        };
 
+       pinctrl_touch: touchgrp {
+               fsl,pins = <
+                       /* TP_INT */
+                       MX8MQ_IOMUXC_ENET_RD1_GPIO1_IO27        0x80
+               >;
+       };
+
        pinctrl_typec: typecgrp {
                fsl,pins = <
                        /* TYPEC_MUX_EN */
        touchscreen@38 {
                compatible = "edt,edt-ft5506";
                reg = <0x38>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_touch>;
                interrupt-parent = <&gpio1>;
                interrupts = <27 IRQ_TYPE_EDGE_FALLING>;
                touchscreen-size-x = <720>;