Skip to content

Commit 880c0df

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 880c0df

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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 a low-power pushbutton on/off controller with a switch
14+
debouncer and built-in latch. It accepts a noisy input from a mechanical switch
15+
and produces a clean latched output, as well as a one-shot interrupt output.
16+
17+
properties:
18+
compatible:
19+
description: |
20+
Specifies the supported device variants. The MAX16150 and MAX16169 are supported.
21+
enum:
22+
- adi,max16150
23+
- adi,max16169
24+
25+
interrupts:
26+
maxItems: 1
27+
28+
linux,code: true
29+
30+
required:
31+
- compatible
32+
- interrupts
33+
34+
additionalProperties: false
35+
36+
examples:
37+
- |
38+
#include <dt-bindings/interrupt-controller/irq.h>
39+
#include <dt-bindings/input/linux-event-codes.h>
40+
41+
power-button {
42+
compatible = "adi,max16150";
43+
interrupt-parent = <&gpio>;
44+
interrupts = <17 IRQ_TYPE_EDGE_BOTH>;
45+
linux,code = <KEY_POWER>;
46+
};

0 commit comments

Comments
 (0)