-
Notifications
You must be signed in to change notification settings - Fork 856
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dt-bindings: input: add adi,max16150.yaml
Add documentation for device tree bindings for MAX16150/MAX16169 Signed-off-by: Marc Paolo Sosa <[email protected]>
- Loading branch information
Showing
1 changed file
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}; | ||
}; | ||
}; |