File tree Expand file tree Collapse file tree 1 file changed +56
-0
lines changed
Documentation/devicetree/bindings/input Expand file tree Collapse file tree 1 file changed +56
-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
14
+ switch debouncer and built-in latch. It accepts a noisy input from a
15
+ mechanical switch and produces a clean latched output, as well as a one-shot
16
+ interrupt output.
17
+
18
+ properties :
19
+ compatible :
20
+ description :
21
+ Specifies the supported device variants. The MAX16150 and MAX16169 are supported.
22
+ enum :
23
+ - adi,max16150a
24
+ - adi,max16150b
25
+ - adi,max16169a
26
+ - adi,max16169b
27
+
28
+ interrupt-gpio :
29
+ maxItems : 1
30
+
31
+ clr-gpio :
32
+ description :
33
+ Clear Input. Pulling CLR low deasserts the latched OUT signal. If OUT is
34
+ already deasserted when CLR is pulled low, the state of OUT is unchanged.
35
+ maxItems : 1
36
+
37
+ linux,code :
38
+ default : KEY_POWER
39
+
40
+ required :
41
+ - compatible
42
+ - interrupt-gpio
43
+
44
+ additionalProperties : false
45
+
46
+ examples :
47
+ - |
48
+ #include <dt-bindings/input/linux-event-codes.h>
49
+ #include <dt-bindings/gpio/gpio.h>
50
+
51
+ power-button {
52
+ compatible = "adi,max16150a";
53
+ interrupt-gpio = <&gpio 17 GPIO_ACTIVE_HIGH>;
54
+ clr-gpio = <&gpio 4 GPIO_ACTIVE_LOW>;
55
+ linux,code = <KEY_POWER>;
56
+ };
You can’t perform that action at this time.
0 commit comments