File tree 1 file changed +46
-0
lines changed
Documentation/devicetree/bindings/input 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change
1
+ # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2
+ %YAML 1.2
3
+ ---
4
+ $id : http://devicetree.org/schemas/input/adi,max16150.yaml#
5
+ $schema : http://devicetree.org/meta-schemas/core.yaml#
6
+
7
+ title : Analog Devices MAX16150/MAX16169 nanoPower Pushbutton On/Off Controller
8
+
9
+ maintainers :
10
+ - Marc Paolo Sosa <marcpaolo.sosa@analog.com>
11
+
12
+ description : |
13
+ The MAX16150/MAX16169 is a low-power pushbutton on/off controller with a switch
14
+ debouncer and built-in latch. It accepts a noisy input from a mechanical switch
15
+ and produces a clean latched output, as well as a one-shot interrupt output.
16
+
17
+ properties :
18
+ compatible :
19
+ description : |
20
+ Specifies the supported device variants. The MAX16150 and MAX16169 are supported.
21
+ enum :
22
+ - adi,max16150
23
+ - adi,max16169
24
+
25
+ interrupts :
26
+ maxItems : 1
27
+
28
+ linux,code : true
29
+
30
+ required :
31
+ - compatible
32
+ - interrupts
33
+
34
+ additionalProperties : false
35
+
36
+ examples :
37
+ - |
38
+ #include <dt-bindings/interrupt-controller/irq.h>
39
+ #include <dt-bindings/input/linux-event-codes.h>
40
+
41
+ power-button {
42
+ compatible = "adi,max16150";
43
+ interrupt-parent = <&gpio>;
44
+ interrupts = <17 IRQ_TYPE_EDGE_BOTH>;
45
+ linux,code = <KEY_POWER>;
46
+ };
You can’t perform that action at this time.
0 commit comments