public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] dt-bindings: input: goodix,gt9916: Document stylus support
@ 2025-06-05  5:48 Pengyu Luo
  2025-06-05  5:48 ` [PATCH 2/2] input: touchscreen: goodix_berlin: Add " Pengyu Luo
  2025-06-05  5:54 ` [PATCH 1/2] dt-bindings: input: goodix,gt9916: Document " Krzysztof Kozlowski
  0 siblings, 2 replies; 4+ messages in thread
From: Pengyu Luo @ 2025-06-05  5:48 UTC (permalink / raw)
  To: Dmitry Torokhov, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Hans de Goede, Kees Cook, Dan Williams, Thomas Weißschuh,
	Dionna Amalie Glaze, Yury Norov, Filipe Manana, Len Brown,
	Eric Biggers, pengdonglin, Luo Jie, Neil Armstrong
  Cc: Charles Wang, linux-input, devicetree, linux-kernel, Pengyu Luo

Document stylus support. Optional support for DT properties:
  - `goodix,stylus-enable`
  - `goodix,stylus-pressure-level`
  - `goodix,physical-x`
  - `goodix,physical-y`

Signed-off-by: Pengyu Luo <mitltlatltl@gmail.com>
---
 .../input/touchscreen/goodix,gt9916.yaml      | 23 +++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/Documentation/devicetree/bindings/input/touchscreen/goodix,gt9916.yaml b/Documentation/devicetree/bindings/input/touchscreen/goodix,gt9916.yaml
index c40d92b7f..e5476ea36 100644
--- a/Documentation/devicetree/bindings/input/touchscreen/goodix,gt9916.yaml
+++ b/Documentation/devicetree/bindings/input/touchscreen/goodix,gt9916.yaml
@@ -44,6 +44,27 @@ properties:
   touchscreen-size-y: true
   touchscreen-swapped-x-y: true
 
+  goodix,stylus-enable:
+    type: boolean
+    description:
+      Indicates that stylus (pen) functionality is enabled. If present,
+      the driver will initialize stylus-specific input reporting.
+
+  goodix,physical-x:
+    $ref: /schemas/types.yaml#/definitions/uint32
+    description: Physical width of the touchscreen in millimeters.
+
+  goodix,physical-y:
+    $ref: /schemas/types.yaml#/definitions/uint32
+    description: Physical height of the touchscreen in millimeters.
+
+  goodix,stylus-pressure-level:
+    $ref: /schemas/types.yaml#/definitions/uint32
+    description:
+      Number of discrete pressure levels supported by the stylus.
+      The reported ABS_PRESSURE range will be 0 to
+      (goodix,stylus-pressure-level - 1).
+
 additionalProperties: false
 
 required:
-- 
2.49.0


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

end of thread, other threads:[~2025-06-05  8:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-05  5:48 [PATCH 1/2] dt-bindings: input: goodix,gt9916: Document stylus support Pengyu Luo
2025-06-05  5:48 ` [PATCH 2/2] input: touchscreen: goodix_berlin: Add " Pengyu Luo
2025-06-05  5:54 ` [PATCH 1/2] dt-bindings: input: goodix,gt9916: Document " Krzysztof Kozlowski
2025-06-05  8:58   ` Pengyu Luo

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