1 From 07419175fdb507be2c9d3aaf4b7d18306a336348 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Wed, 2 Aug 2023 11:38:03 +0100
4 Subject: [PATCH] dt-bindings: input: Add bindings for raspberrypi-button
6 Add bindings for the firmware-based button driver.
8 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
10 .../input/raspberrypi,firmware-button.yaml | 47 +++++++++++++++++++
11 1 file changed, 47 insertions(+)
12 create mode 100644 Documentation/devicetree/bindings/input/raspberrypi,firmware-button.yaml
15 +++ b/Documentation/devicetree/bindings/input/raspberrypi,firmware-button.yaml
17 +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
20 +$id: http://devicetree.org/schemas/input/raspberrypi,firmware-button.yaml#
21 +$schema: http://devicetree.org/meta-schemas/core.yaml#
23 +title: Raspberry Pi firmware buttons
26 + - Phil Elwell <phil@raspberrypi.com>
29 + The Raspberry Pi 5 firmware exposes the state of the power button. The
30 + raspberrypi-button driver generates a keycode when it is pressed.
35 + - raspberrypi,firmware-button
38 + description: A numeric identifier of the button
41 + description: Descriptive name of the button.
44 + description: Key code to emit.
50 +additionalProperties: false
54 + #include <dt-bindings/input/raspberrypi-button.h>
56 + pwr_button: pwr_button {
57 + compatible = "raspberrypi,firmware-button";
58 + id = <RASPBERRYPI_BUTTON_POWER>;
59 + label = "pwr_button";
60 + linux,code = <116>; // KEY_POWER