Skip to content

Commit 3a603d9

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 3a603d9

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 a switch 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 the shutdown period at
18+
PB_IN results in a longer one-shot interrupt output. The MAX16150 family has
19+
two sets 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 controller 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+
- maxim,max16150
31+
32+
required:
33+
- compatible
34+
- gpios
35+
- interrupt-parent
36+
- interrupts
37+
38+
additionalProperties: false
39+
40+
examples:
41+
- |
42+
max16150: max16150@0 {
43+
compatible = "maxim,max16150";
44+
gpio-controller;
45+
#gpio-cells = <2>;
46+
47+
pinctrl-names = "default";
48+
pinctrl-0 = <&max16150_pins>;
49+
50+
interrupt-parent = <&gpio>;
51+
interrupts = <17 2>;
52+
53+
status = "okay";
54+
55+
max16150_pins: pinmux {
56+
max16150_gpio0 {
57+
pins = "gpio17", "gpio27";
58+
function = "gpio";
59+
bias-pull-up;
60+
};
61+
};
62+
};

0 commit comments

Comments
 (0)