Skip to content

Commit 186e735

Browse files
committed
dt-bindings: input: add adi,max16150.yaml
Add documentation for device tree bindings for MAX16150/MAX16169 Signed-off-by: Marc Paolo Sosa <marcpaolo.sosa@analog.com>
1 parent 303c8fd commit 186e735

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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 an extremely low-power, pushbutton, on/off controller
14+
with avswitch debouncer and built-in latch. This device accepts a noisy input
15+
from a mechanical switch and produces a clean, latched output, as well as a
16+
one-shot interrupt output, in response to a switch closure exceeding the
17+
debounce period at PB_IN. A switch closure longer than shutdown period at
18+
PB_IN results in a longer one-shot interrupt output. The MAX16150 family has
19+
two set of devices, one in which a longer switch closure greater than the
20+
shutdown period deasserts the latched output, and another in which the latched
21+
output stays asserted.
22+
23+
Specifications about the charger can be found at:
24+
https://www.analog.com/en/products/max16150.html
25+
https://www.analog.com/en/products/max16169.html
26+
27+
properties:
28+
compatible:
29+
enum:
30+
- adi,max16150
31+
- adi,max16169
32+
33+
reg:
34+
maxItems: 1
35+
36+
required:
37+
- compatible
38+
- adi,variant
39+
40+
additionalProperties: false
41+
42+
examples:
43+
- |
44+
gpio {
45+
max161x_pins: max161x_pins {
46+
brcm,pins = <17 18 22 23>;
47+
brcm,function = <0>;
48+
brcm,pull = <0>;
49+
};
50+
};
51+
52+
max161x@0 {
53+
compatible = "adi,max16150";
54+
adi,variant = "A";
55+
56+
gpio-pb_in = <&gpio 17 1>;
57+
gpio-out = <&gpio 18 0>;
58+
gpio-clr = <&gpio 22 1>;
59+
gpio-int = <&gpio 23 0>;
60+
61+
status = "okay";
62+
};

0 commit comments

Comments
 (0)