Devicetree
 help / color / mirror / Atom feed
* [PATCH 0/2] dt-bindings: input: touchscreen: hynitron,cst816x: Common properties and supply
@ 2026-11-22  9:34 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 ` [PATCH 2/2] dt-bindings: input: touchscreen: hynitron,cst816x: Add supply Gerard Marull-Paretas
  0 siblings, 2 replies; 5+ 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 CST816x binding allows no properties besides the controller's
resources and gesture keycodes. Boards also need to describe the
coordinate range and orientation of the panel the controller is fitted
to, and its supply, which is often switched along with the display.

Patch 1 references the common touchscreen schema, patch 2 documents the
supply.

Gerard Marull-Paretas (2):
  dt-bindings: input: touchscreen: hynitron,cst816x: Reference
    touchscreen.yaml
  dt-bindings: input: touchscreen: hynitron,cst816x: Add supply

 .../bindings/input/touchscreen/hynitron,cst816x.yaml  | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)


base-commit: c44104f3642da720164042623e4832836aefdd8e
-- 
2.45.2


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [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 18:04   ` Oleh Kuzhylnyi
  2026-11-22  9:34 ` [PATCH 2/2] dt-bindings: input: touchscreen: hynitron,cst816x: Add supply Gerard Marull-Paretas
  1 sibling, 1 reply; 5+ 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] 5+ 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
  2026-11-22 18:04   ` Oleh Kuzhylnyi
  1 sibling, 1 reply; 5+ 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] 5+ messages in thread

* Re: [PATCH 1/2] dt-bindings: input: touchscreen: hynitron,cst816x: Reference touchscreen.yaml
  2026-11-22  9:34 ` [PATCH 1/2] dt-bindings: input: touchscreen: hynitron,cst816x: Reference touchscreen.yaml Gerard Marull-Paretas
@ 2026-11-22 18:04   ` Oleh Kuzhylnyi
  0 siblings, 0 replies; 5+ messages in thread
From: Oleh Kuzhylnyi @ 2026-11-22 18:04 UTC (permalink / raw)
  To: Gerard Marull-Paretas, Dmitry Torokhov, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley
  Cc: linux-input, devicetree

Thank you!

Acked-by: Oleh Kuzhylnyi <kuzhylol@gmail.com>

Best regards,
Oleh Kuzhylnyi

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] dt-bindings: input: touchscreen: hynitron,cst816x: Add supply
  2026-11-22  9:34 ` [PATCH 2/2] dt-bindings: input: touchscreen: hynitron,cst816x: Add supply Gerard Marull-Paretas
@ 2026-11-22 18:04   ` Oleh Kuzhylnyi
  0 siblings, 0 replies; 5+ messages in thread
From: Oleh Kuzhylnyi @ 2026-11-22 18:04 UTC (permalink / raw)
  To: Gerard Marull-Paretas, Dmitry Torokhov, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley
  Cc: linux-input, devicetree

Thank you!

Acked-by: Oleh Kuzhylnyi <kuzhylol@gmail.com>

Best regards,
Oleh Kuzhylnyi

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-11-22 18:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 18:04   ` Oleh Kuzhylnyi
2026-11-22  9:34 ` [PATCH 2/2] dt-bindings: input: touchscreen: hynitron,cst816x: Add supply Gerard Marull-Paretas
2026-11-22 18:04   ` Oleh Kuzhylnyi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox