xref: /freebsd/sys/contrib/device-tree/Bindings/input/max77650-onkey.yaml (revision 8ddb146abcdf061be9f2c0db7e391697dafad85c)
1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/input/max77650-onkey.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Onkey driver for MAX77650 PMIC from Maxim Integrated.
8
9maintainers:
10  - Bartosz Golaszewski <bgolaszewski@baylibre.com>
11
12description: |
13  This module is part of the MAX77650 MFD device. For more details
14  see Documentation/devicetree/bindings/mfd/max77650.yaml.
15
16  The onkey controller is represented as a sub-node of the PMIC node on
17  the device tree.
18
19properties:
20  compatible:
21    const: maxim,max77650-onkey
22
23  linux,code:
24    $ref: /schemas/types.yaml#/definitions/uint32
25    description:
26      The key-code to be reported when the key is pressed. Defaults
27      to KEY_POWER.
28
29  maxim,onkey-slide:
30    $ref: /schemas/types.yaml#/definitions/flag
31    description:
32      The system's button is a slide switch, not the default push button.
33
34required:
35  - compatible
36additionalProperties: false
37
38...
39