[PATCH v2 1/5] dt-bindings: input: touchscreen: hynitron,cst816x: axes and panel
From: Daniel Golle
Date: Fri Oct 02 2026 - 08:59:33 EST
The chip hands out coordinates in its own frame and knows nothing of
the panel it is glued to, so how it is oriented against that panel,
which coordinate range the assembly reports and how noisy it is are
properties of the board. Reference touchscreen.yaml so that a board
can state them with the common axis properties. Allow the 'panel'
phandle as well, since these controllers are mounted on the panel and
fed from its rail, which asks for the two to be power sequenced
together.
Signed-off-by: Daniel Golle <daniel@xxxxxxxxxxxxxx>
---
v2:
- allow touchscreen-min-x/y, touchscreen-size-x/y and
touchscreen-fuzz-x/y as well (Sashiko AI review)
- allow the 'panel' phandle
- justify the change in the commit message (Conor Dooley)
.../input/touchscreen/hynitron,cst816x.yaml | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/Documentation/devicetree/bindings/input/touchscreen/hynitron,cst816x.yaml b/Documentation/devicetree/bindings/input/touchscreen/hynitron,cst816x.yaml
index 72d4da636881e..027a2b3dcf2e8 100644
--- a/Documentation/devicetree/bindings/input/touchscreen/hynitron,cst816x.yaml
+++ b/Documentation/devicetree/bindings/input/touchscreen/hynitron,cst816x.yaml
@@ -36,6 +36,18 @@ properties:
- description: Slide right gesture
- description: Long press gesture
+ panel: true
+
+ touchscreen-min-x: true
+ touchscreen-min-y: true
+ touchscreen-size-x: true
+ touchscreen-size-y: true
+ touchscreen-fuzz-x: true
+ touchscreen-fuzz-y: true
+ touchscreen-inverted-x: true
+ touchscreen-inverted-y: true
+ touchscreen-swapped-x-y: true
+
required:
- compatible
- reg
@@ -43,6 +55,9 @@ required:
additionalProperties: false
+allOf:
+ - $ref: touchscreen.yaml#
+
examples:
- |
#include <dt-bindings/gpio/gpio.h>
@@ -59,6 +74,7 @@ examples:
reset-gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
linux,keycodes = <KEY_UP>, <KEY_DOWN>, <KEY_LEFT>, <KEY_RIGHT>,
<BTN_TOOL_TRIPLETAP>;
+ touchscreen-swapped-x-y;
};
};
--
2.55.0