diff mbox series

[v3,5/6] dt-bindings: input: zinitix: Document touch-keys support

Message ID 20220106072840.36851-6-nikita@trvn.ru (mailing list archive)
State New, archived
Headers show
Series Add touch-keys support to the Zinitix touch driver | expand

Commit Message

Nikita Travkin Jan. 6, 2022, 7:28 a.m. UTC
In some configurations the touch controller can support the touch-keys.
Document the linux,keycodes property that enables those keys and
specifies the keycodes that should be used to report the key events.

Signed-off-by: Nikita Travkin <nikita@trvn.ru>
---
Changes in v2:
 - Include input.yaml schema at the top level instead of at the
   property. (Seems like I still can't think of the schema as device
   and not implementation-specific thing...)
 - Reword the description to be more informative.
---
 .../bindings/input/touchscreen/zinitix,bt400.yaml      | 10 ++++++++++
 1 file changed, 10 insertions(+)

Comments

Rob Herring (Arm) Jan. 12, 2022, 1:46 a.m. UTC | #1
On Thu, 06 Jan 2022 12:28:39 +0500, Nikita Travkin wrote:
> In some configurations the touch controller can support the touch-keys.
> Document the linux,keycodes property that enables those keys and
> specifies the keycodes that should be used to report the key events.
> 
> Signed-off-by: Nikita Travkin <nikita@trvn.ru>
> ---
> Changes in v2:
>  - Include input.yaml schema at the top level instead of at the
>    property. (Seems like I still can't think of the schema as device
>    and not implementation-specific thing...)
>  - Reword the description to be more informative.
> ---
>  .../bindings/input/touchscreen/zinitix,bt400.yaml      | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 

Reviewed-by: Rob Herring <robh@kernel.org>
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/input/touchscreen/zinitix,bt400.yaml b/Documentation/devicetree/bindings/input/touchscreen/zinitix,bt400.yaml
index b4e5ba7c0b49..67ed853289b2 100644
--- a/Documentation/devicetree/bindings/input/touchscreen/zinitix,bt400.yaml
+++ b/Documentation/devicetree/bindings/input/touchscreen/zinitix,bt400.yaml
@@ -16,6 +16,7 @@  maintainers:
 
 allOf:
   - $ref: touchscreen.yaml#
+  - $ref: ../input.yaml#
 
 properties:
   $nodename:
@@ -79,6 +80,15 @@  properties:
     $ref: /schemas/types.yaml#/definitions/uint32
     enum: [1, 2]
 
+  linux,keycodes:
+    description: |
+      This property specifies an array of keycodes assigned to the
+      touch-keys that can be present in some touchscreen configurations.
+      If the touch-keys are enabled, controller firmware will assign some
+      touch sense lines to those keys.
+    minItems: 1
+    maxItems: 8
+
   touchscreen-size-x: true
   touchscreen-size-y: true
   touchscreen-fuzz-x: true