diff mbox series

[RFC,v2,2/5] dt-bindings: input: melfas-mip4: document linux,keycodes property

Message ID 20250613-mip4-touchkey-v2-2-9bbbe14c016d@disroot.org
State New
Headers show
Series Support for MELFAS MIP4 touchkey devices | expand

Commit Message

Kaustabh Chakraborty June 12, 2025, 7:41 p.m. UTC
Document the linux,keycodes property. The property values are key codes
which are used in input key events generated by the touchkey device.

Signed-off-by: Kaustabh Chakraborty <kauschluss@disroot.org>
---
 .../devicetree/bindings/input/touchscreen/melfas,mip4_ts.yaml       | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/input/touchscreen/melfas,mip4_ts.yaml b/Documentation/devicetree/bindings/input/touchscreen/melfas,mip4_ts.yaml
index 5532d46f85a235127e2b3513846259aa7372bda5..6d5e0f4b062f44f83484eccd82353d6f150f9d8f 100644
--- a/Documentation/devicetree/bindings/input/touchscreen/melfas,mip4_ts.yaml
+++ b/Documentation/devicetree/bindings/input/touchscreen/melfas,mip4_ts.yaml
@@ -29,6 +29,11 @@  properties:
   ce-gpios:
     description: GPIO connected to the CE (chip enable) pin of the chip
 
+  linux,keycodes:
+    description: Array of keycodes to be reported by touchkeys
+    minItems: 1
+    maxItems: 4
+
 additionalProperties: false
 
 required:
@@ -49,6 +54,7 @@  examples:
         interrupt-parent = <&gpio>;
         interrupts = <0 IRQ_TYPE_EDGE_FALLING>;
         ce-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
+        linux,keycodes = <KEY_MENU>, <KEY_BACK>;
       };
     };