diff mbox series

ARM: dts: imx6q-logicpd: Enable ili2117a Touchscreen

Message ID 20191105133555.21893-1-aford173@gmail.com (mailing list archive)
State New, archived
Headers show
Series ARM: dts: imx6q-logicpd: Enable ili2117a Touchscreen | expand

Commit Message

Adam Ford Nov. 5, 2019, 1:35 p.m. UTC
The LCD used with the imx6q-logicpd board has an integrated
ili2117a touch controller connected to i2c1.

ili2117 support is scheduled to be introduced for Kernel v5.5.

This patch adds the node to enable this feature.

Signed-off-by: Adam Ford <aford173@gmail.com>

Comments

Fabio Estevam Nov. 5, 2019, 1:39 p.m. UTC | #1
On Tue, Nov 5, 2019 at 10:36 AM Adam Ford <aford173@gmail.com> wrote:
>
> The LCD used with the imx6q-logicpd board has an integrated
> ili2117a touch controller connected to i2c1.
>
> ili2117 support is scheduled to be introduced for Kernel v5.5.

Maybe this sentence could be put below the --- line?

It will look strange to read this commit log in the future :-)

> This patch adds the node to enable this feature.
>
> Signed-off-by: Adam Ford <aford173@gmail.com>
>
> diff --git a/arch/arm/boot/dts/imx6q-logicpd.dts b/arch/arm/boot/dts/imx6q-logicpd.dts
> index d96ae54be338..a5025f3009a9 100644
> --- a/arch/arm/boot/dts/imx6q-logicpd.dts
> +++ b/arch/arm/boot/dts/imx6q-logicpd.dts
> @@ -73,6 +73,16 @@
>         status = "okay";
>  };
>
> +&i2c1 {
> +       ili_touch: ilitouch@26 {

node names should be generic, so:

touchscreen@26
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/imx6q-logicpd.dts b/arch/arm/boot/dts/imx6q-logicpd.dts
index d96ae54be338..a5025f3009a9 100644
--- a/arch/arm/boot/dts/imx6q-logicpd.dts
+++ b/arch/arm/boot/dts/imx6q-logicpd.dts
@@ -73,6 +73,16 @@ 
 	status = "okay";
 };
 
+&i2c1 {
+	ili_touch: ilitouch@26 {
+		compatible = "ilitek,ili2117";
+		reg = <0x26>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&pinctrl_touchscreen>;
+		interrupts-extended = <&gpio1 6 IRQ_TYPE_EDGE_RISING>;
+	};
+};
+
 &ldb {
 	status = "okay";