|
| 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 | + |
| 32 | + reg: |
| 33 | + maxItems: 1 |
| 34 | + |
| 35 | +required: |
| 36 | + - compatible |
| 37 | + |
| 38 | +additionalProperties: false |
| 39 | + |
| 40 | +examples: |
| 41 | + - | |
| 42 | + gpio { |
| 43 | + max16150_pins: max16150_pins { |
| 44 | + brcm,pins = <17 0>, <27 0>; |
| 45 | + brcm,function = <0 0>; |
| 46 | + }; |
| 47 | + }; |
| 48 | +
|
| 49 | + max16150@0 { |
| 50 | + compatible = "maxim,max16150"; |
| 51 | + gpios = <&gpio 17 0>, <&gpio 27 0>; |
| 52 | + interrupt-parent = <&gpio>; |
| 53 | + interrupts = <17 2>; |
| 54 | +
|
| 55 | + status = "okay"; |
| 56 | + }; |
0 commit comments