* [PATCH 1/2] dt-bindings: input: touchscreen: hynitron,cst816x: Reference touchscreen.yaml
2026-11-22 9:34 [PATCH 0/2] dt-bindings: input: touchscreen: hynitron,cst816x: Common properties and supply Gerard Marull-Paretas
@ 2026-11-22 9:34 ` Gerard Marull-Paretas
2026-11-22 9:34 ` [PATCH 2/2] dt-bindings: input: touchscreen: hynitron,cst816x: Add supply Gerard Marull-Paretas
1 sibling, 0 replies; 3+ messages in thread
From: Gerard Marull-Paretas @ 2026-11-22 9:34 UTC (permalink / raw)
To: Dmitry Torokhov, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Oleh Kuzhylnyi
Cc: linux-input, devicetree
The controller reports positions in the coordinate range of the panel
it is fitted to, and how the panel is mounted varies from one board to
another. Reference the common touchscreen schema, so that boards can
describe them with the common properties (touchscreen-size-x/y,
touchscreen-inverted-x/y, touchscreen-swapped-x-y, ...), as other
touchscreen controller bindings do.
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
---
Notes:
Checked with dtschema 2026.9: the steps of dt_binding_check run by hand (host make too old), yamllint and dt-check-style --mode=strict.
.../bindings/input/touchscreen/hynitron,cst816x.yaml | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/input/touchscreen/hynitron,cst816x.yaml b/Documentation/devicetree/bindings/input/touchscreen/hynitron,cst816x.yaml
index 72d4da636881..df52431b1d49 100644
--- a/Documentation/devicetree/bindings/input/touchscreen/hynitron,cst816x.yaml
+++ b/Documentation/devicetree/bindings/input/touchscreen/hynitron,cst816x.yaml
@@ -13,6 +13,9 @@ description: |
Bindings for CST816x high performance self-capacitance touch chip series
with single point gesture and real two-point operation.
+allOf:
+ - $ref: touchscreen.yaml#
+
properties:
compatible:
enum:
@@ -41,7 +44,7 @@ required:
- reg
- interrupts
-additionalProperties: false
+unevaluatedProperties: false
examples:
- |
@@ -57,6 +60,8 @@ examples:
interrupt-parent = <&gpio0>;
interrupts = <4 IRQ_TYPE_EDGE_RISING>;
reset-gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
+ touchscreen-size-x = <240>;
+ touchscreen-size-y = <240>;
linux,keycodes = <KEY_UP>, <KEY_DOWN>, <KEY_LEFT>, <KEY_RIGHT>,
<BTN_TOOL_TRIPLETAP>;
};
--
2.45.2
^ permalink raw reply related [flat|nested] 3+ messages in thread* [PATCH 2/2] dt-bindings: input: touchscreen: hynitron,cst816x: Add supply
2026-11-22 9:34 [PATCH 0/2] dt-bindings: input: touchscreen: hynitron,cst816x: Common properties and supply Gerard Marull-Paretas
2026-11-22 9:34 ` [PATCH 1/2] dt-bindings: input: touchscreen: hynitron,cst816x: Reference touchscreen.yaml Gerard Marull-Paretas
@ 2026-11-22 9:34 ` Gerard Marull-Paretas
1 sibling, 0 replies; 3+ messages in thread
From: Gerard Marull-Paretas @ 2026-11-22 9:34 UTC (permalink / raw)
To: Dmitry Torokhov, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Oleh Kuzhylnyi
Cc: linux-input, devicetree
The controllers run from a single 2.8 V to 3.6 V supply. Boards may
switch it, for example along with the display panel the touchscreen is
laminated to, so document it.
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
---
Notes:
Checked with dtschema 2026.9: the steps of dt_binding_check run by hand (host make too old), yamllint and dt-check-style --mode=strict.
.../bindings/input/touchscreen/hynitron,cst816x.yaml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/Documentation/devicetree/bindings/input/touchscreen/hynitron,cst816x.yaml b/Documentation/devicetree/bindings/input/touchscreen/hynitron,cst816x.yaml
index df52431b1d49..ae8424693534 100644
--- a/Documentation/devicetree/bindings/input/touchscreen/hynitron,cst816x.yaml
+++ b/Documentation/devicetree/bindings/input/touchscreen/hynitron,cst816x.yaml
@@ -30,6 +30,9 @@ properties:
reset-gpios:
maxItems: 1
+ vdd-supply:
+ description: Power supply of the controller.
+
linux,keycodes:
minItems: 1
items:
@@ -60,6 +63,7 @@ examples:
interrupt-parent = <&gpio0>;
interrupts = <4 IRQ_TYPE_EDGE_RISING>;
reset-gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
+ vdd-supply = <&vdd_ts>;
touchscreen-size-x = <240>;
touchscreen-size-y = <240>;
linux,keycodes = <KEY_UP>, <KEY_DOWN>, <KEY_LEFT>, <KEY_RIGHT>,
--
2.45.2
^ permalink raw reply related [flat|nested] 3+ messages in thread