Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions arch/arm/boot/dts/overlays/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
audiosense-pi.dtbo \
audremap.dtbo \
balena-fin.dtbo \
cap1106.dtbo \
chipdip-i2s-master-dac.dtbo \
cma.dtbo \
dht11.dtbo \
Expand Down
6 changes: 6 additions & 0 deletions arch/arm/boot/dts/overlays/README
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,12 @@ Info: This overlay is now deprecated - see i2c-sensor
Load: <Deprecated>


Name: cap1106
Info: Enables the ability to use the cap1106 touch sensor as a keyboard
Load: dtoverlay=cap1106
Params: <None>


Name: chipdip-i2s-master-dac
Info: Configures Raspberry PI to work as I2S slave with BCLK=64Fs.
Load: dtoverlay=chipdip-i2s-master-dac
Expand Down
54 changes: 54 additions & 0 deletions arch/arm/boot/dts/overlays/cap1106-overlay.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
// Overlay for cap1106 from Microchip Semiconductor
// add CONFIG_KEYBOARD_CAP11XX=y

/dts-v1/;
/plugin/;

/ {
compatible = "brcm,bcm2835";
fragment@0 {
target = <&i2c1>;
__overlay__{
status = "okay";
cap1106: cap1106@28 {
compatible = "microchip,cap1106";
pinctrl-0 = <&cap1106_pins>;
Comment thread
Mr-Bossman marked this conversation as resolved.
Resolved
pinctrl-names = "default";
interrupt-parent = <&gpio>;
interrupts = <4 2>;
reg = <0x28>;
autorepeat;
microchip,sensor-gain = <2>;

linux,keycodes = <2>, /* KEY_1 */
<3>, /* KEY_2 */
<4>, /* KEY_3 */
<5>, /* KEY_4 */
<6>, /* KEY_5 */
<7>; /* KEY_6 */

#address-cells = <1>;
#size-cells = <0>;
status = "okay";

};
};
};
fragment@1 {
target = <&gpio>;
__overlay__ {
cap1106_pins: cap1106_pins {
brcm,pins = <4>;
brcm,function = <0>; /* in */
brcm,pull = <0>; /* none */
};
};
};

__overrides__ {
int_pin = <&cap1106>, "interrupts:0",
<&cap1106_pins>, "brcm,pins:0";
};
};