1 From 62ae8907efb221f232126726bf4df5c9da23a8b4 Mon Sep 17 00:00:00 2001
2 From: Jesse Taube <Mr.Bossman075@gmail.com>
3 Date: Thu, 8 Jul 2021 16:32:16 -0400
4 Subject: [PATCH] overlays: Add overlay for cap1106 capacitive touch
7 Signed-off-by: Jesse Taube <mr.bossman075@gmail.com>
9 arch/arm/boot/dts/overlays/Makefile | 1 +
10 arch/arm/boot/dts/overlays/README | 6 +++
11 .../arm/boot/dts/overlays/cap1106-overlay.dts | 52 +++++++++++++++++++
12 3 files changed, 59 insertions(+)
13 create mode 100644 arch/arm/boot/dts/overlays/cap1106-overlay.dts
15 --- a/arch/arm/boot/dts/overlays/Makefile
16 +++ b/arch/arm/boot/dts/overlays/Makefile
17 @@ -30,6 +30,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
22 chipdip-i2s-master-dac.dtbo \
25 --- a/arch/arm/boot/dts/overlays/README
26 +++ b/arch/arm/boot/dts/overlays/README
27 @@ -622,6 +622,12 @@ Info: This overlay is now deprecated -
32 +Info: Enables the ability to use the cap1106 touch sensor as a keyboard
33 +Load: dtoverlay=cap1106,<param>=<val>
34 +Params: int_pin GPIO pin for interrupt signal (default 23)
37 Name: chipdip-i2s-master-dac
38 Info: Configures Raspberry PI to work as I2S slave with BCLK=64Fs.
39 Load: dtoverlay=chipdip-i2s-master-dac
41 +++ b/arch/arm/boot/dts/overlays/cap1106-overlay.dts
43 +// Overlay for cap1106 from Microchip Semiconductor
44 +// add CONFIG_KEYBOARD_CAP11XX=y
50 + compatible = "brcm,bcm2835";
55 + cap1106: cap1106@28 {
56 + compatible = "microchip,cap1106";
57 + pinctrl-0 = <&cap1106_pins>;
58 + pinctrl-names = "default";
59 + interrupt-parent = <&gpio>;
63 + microchip,sensor-gain = <2>;
65 + linux,keycodes = <2>, /* KEY_1 */
72 + #address-cells = <1>;
82 + cap1106_pins: cap1106_pins {
84 + brcm,function = <0>; /* in */
85 + brcm,pull = <0>; /* none */
91 + int_pin = <&cap1106>, "interrupts:0",
92 + <&cap1106_pins>, "brcm,pins:0";