Skip to content

Commit

Permalink
dt-bindings: input: add adi,max16150.yaml
Browse files Browse the repository at this point in the history
Add documentation for device tree bindings for MAX16150/MAX16169

Signed-off-by: Marc Paolo Sosa <[email protected]>
  • Loading branch information
mrcsosa committed Jan 13, 2025
1 parent 303c8fd commit 3a603d9
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions Documentation/devicetree/bindings/input/adi,max16150.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/input/adi,max16150.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Analog Devices MAX16150/MAX16169 nanoPower Pushbutton On/Off Controller

maintainers:
- Marc Paolo Sosa <[email protected]>

description: |
The MAX16150/MAX16169 is an extremely low-power, pushbutton, on/off controller
with a switch debouncer and built-in latch. This device accepts a noisy input
from a mechanical switch and produces a clean, latched output, as well as a
one-shot interrupt output, in response to a switch closure exceeding the
debounce period at PB_IN. A switch closure longer than the shutdown period at
PB_IN results in a longer one-shot interrupt output. The MAX16150 family has
two sets of devices, one in which a longer switch closure greater than the
shutdown period deasserts the latched output, and another in which the latched
output stays asserted.
Specifications about the controller can be found at:
https://www.analog.com/en/products/max16150.html
https://www.analog.com/en/products/max16169.html
properties:
compatible:
enum:
- maxim,max16150

required:
- compatible
- gpios
- interrupt-parent
- interrupts

additionalProperties: false

examples:
- |
max16150: max16150@0 {
compatible = "maxim,max16150";
gpio-controller;
#gpio-cells = <2>;
pinctrl-names = "default";
pinctrl-0 = <&max16150_pins>;
interrupt-parent = <&gpio>;
interrupts = <17 2>;
status = "okay";
max16150_pins: pinmux {
max16150_gpio0 {
pins = "gpio17", "gpio27";
function = "gpio";
bias-pull-up;
};
};
};

0 comments on commit 3a603d9

Please sign in to comment.