xref: /freebsd/sys/contrib/device-tree/Bindings/input/max77650-onkey.yaml (revision 9f44a47fd07924afc035991af15d84e6585dea4f)
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
19allOf:
20  - $ref: input.yaml#
21
22properties:
23  compatible:
24    const: maxim,max77650-onkey
25
26  linux,code:
27    default: 116  # 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