Merge tag 'v5.15.57' into rpi-5.15.y
[platform/kernel/linux-rpi.git] / arch / arm / boot / dts / overlays / cap1106-overlay.dts
1 // Overlay for cap1106 from  Microchip Semiconductor
2 // add CONFIG_KEYBOARD_CAP11XX=y
3
4 /dts-v1/;
5 /plugin/;
6
7 / {
8         compatible = "brcm,bcm2835";
9         fragment@0 {
10                 target = <&i2c1>;
11                 __overlay__{
12                         status = "okay";
13                         cap1106: cap1106@28 {
14                                 compatible = "microchip,cap1106";
15                                 pinctrl-0 = <&cap1106_pins>;
16                                 pinctrl-names = "default";
17                                 interrupt-parent = <&gpio>;
18                                 interrupts = <4 2>;
19                                 reg = <0x28>;
20                                 autorepeat;
21                                 microchip,sensor-gain = <2>;
22
23                                 linux,keycodes = <2>,           /* KEY_1 */
24                                                 <3>,            /* KEY_2 */
25                                                 <4>,            /* KEY_3 */
26                                                 <5>,            /* KEY_4 */
27                                                 <6>,            /* KEY_5 */
28                                                 <7>;            /* KEY_6 */
29
30                                 #address-cells = <1>;
31                                 #size-cells = <0>;
32                                 status = "okay";
33
34                         };
35                 };
36         };
37         fragment@1 {
38                 target = <&gpio>;
39                 __overlay__ {
40                         cap1106_pins: cap1106_pins {
41                                 brcm,pins = <4>;
42                                 brcm,function = <0>; /* in */
43                                 brcm,pull = <0>; /* none */
44                         };
45                 };
46         };
47
48         __overrides__ {
49                 int_pin = <&cap1106>, "interrupts:0",
50                           <&cap1106_pins>, "brcm,pins:0";
51         };
52 };