1 From 7c9c2e970b0a047ae2a747752fdd12e31dbb2451 Mon Sep 17 00:00:00 2001
2 From: Jeff LaBundy <jeff@labundy.com>
3 Date: Mon, 28 Jan 2019 23:11:47 -0600
4 Subject: [PATCH] overlays: Add overlay for Azoteq IQS550
6 This patch adds a device tree overlay for the Azoteq IQS550
7 trackpad/touchscreen controller.
9 Signed-off-by: Jeff LaBundy <jeff@labundy.com>
11 arch/arm/boot/dts/overlays/Makefile | 1 +
12 arch/arm/boot/dts/overlays/README | 13 ++++++
13 arch/arm/boot/dts/overlays/iqs550-overlay.dts | 46 +++++++++++++++++++
14 3 files changed, 60 insertions(+)
15 create mode 100644 arch/arm/boot/dts/overlays/iqs550-overlay.dts
17 --- a/arch/arm/boot/dts/overlays/Makefile
18 +++ b/arch/arm/boot/dts/overlays/Makefile
19 @@ -106,6 +106,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
21 iqaudio-dacplus.dtbo \
22 iqaudio-digi-wm8804-audio.dtbo \
27 --- a/arch/arm/boot/dts/overlays/README
28 +++ b/arch/arm/boot/dts/overlays/README
29 @@ -1991,6 +1991,19 @@ Params: card_name Override
34 +Info: Enables I2C connected Azoteq IQS550 trackpad/touchscreen controller
35 + using GPIO 4 (pin 7 on GPIO header) for interrupt.
36 +Load: dtoverlay=iqs550,<param>=<val>
37 +Params: interrupt GPIO used for interrupt (default 4)
38 + reset GPIO used for reset (optional)
39 + sizex Touchscreen size x (default 800)
40 + sizey Touchscreen size y (default 480)
41 + invx Touchscreen inverted x axis
42 + invy Touchscreen inverted y axis
43 + swapxy Touchscreen swapped x y axis
47 Info: Infineon irs1125 TOF camera module.
48 Uses Unicam 1, which is the standard camera connector on most Pi
50 +++ b/arch/arm/boot/dts/overlays/iqs550-overlay.dts
52 +// SPDX-License-Identifier: GPL-2.0-or-later
53 +// Definitions for Azoteq IQS550 trackpad/touchscreen controller
56 +#include <dt-bindings/gpio/gpio.h>
57 +#include <dt-bindings/interrupt-controller/irq.h>
60 + compatible = "brcm,bcm2835";
65 + #address-cells = <1>;
70 + compatible = "azoteq,iqs550";
72 + interrupt-parent = <&gpio>;
73 + interrupts = <4 IRQ_TYPE_LEVEL_HIGH>;
74 + touchscreen-size-x = <800>;
75 + touchscreen-size-y = <480>;
82 + iqs550_reset: __dormant__ {
83 + reset-gpios = <&gpio 255 (GPIO_ACTIVE_LOW |
89 + interrupt = <&iqs550>,"interrupts:0";
90 + reset = <0>,"+1", <&iqs550_reset>,"reset-gpios:4";
91 + sizex = <&iqs550>,"touchscreen-size-x:0";
92 + sizey = <&iqs550>,"touchscreen-size-y:0";
93 + invx = <&iqs550>,"touchscreen-inverted-x?";
94 + invy = <&iqs550>,"touchscreen-inverted-y?";
95 + swapxy = <&iqs550>,"touchscreen-swapped-x-y?";