All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pengyu Luo <mitltlatltl@gmail.com>
To: "Dmitry Torokhov" <dmitry.torokhov@gmail.com>,
	"Rob Herring" <robh@kernel.org>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	"Hans de Goede" <hdegoede@redhat.com>,
	"Kees Cook" <kees@kernel.org>,
	"Dan Williams" <dan.j.williams@intel.com>,
	"Thomas Weißschuh" <thomas.weissschuh@linutronix.de>,
	"Dionna Amalie Glaze" <dionnaglaze@google.com>,
	"Yury Norov" <yury.norov@gmail.com>,
	"Filipe Manana" <fdmanana@suse.com>,
	"Len Brown" <len.brown@intel.com>,
	"Eric Biggers" <ebiggers@google.com>,
	pengdonglin <pengdonglin@xiaomi.com>,
	"Luo Jie" <quic_luoj@quicinc.com>,
	"Neil Armstrong" <neil.armstrong@linaro.org>
Cc: Charles Wang <charles.goodix@gmail.com>,
	linux-input@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, Pengyu Luo <mitltlatltl@gmail.com>
Subject: [PATCH 1/2] dt-bindings: input: goodix,gt9916: Document stylus support
Date: Thu,  5 Jun 2025 13:48:54 +0800	[thread overview]
Message-ID: <20250605054855.403487-1-mitltlatltl@gmail.com> (raw)

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


             reply	other threads:[~2025-06-05  5:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-05  5:48 Pengyu Luo [this message]
2025-06-05  5:48 ` [PATCH 2/2] input: touchscreen: goodix_berlin: Add stylus support 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250605054855.403487-1-mitltlatltl@gmail.com \
    --to=mitltlatltl@gmail.com \
    --cc=charles.goodix@gmail.com \
    --cc=conor+dt@kernel.org \
    --cc=dan.j.williams@intel.com \
    --cc=devicetree@vger.kernel.org \
    --cc=dionnaglaze@google.com \
    --cc=dmitry.torokhov@gmail.com \
    --cc=ebiggers@google.com \
    --cc=fdmanana@suse.com \
    --cc=hdegoede@redhat.com \
    --cc=kees@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=len.brown@intel.com \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=neil.armstrong@linaro.org \
    --cc=pengdonglin@xiaomi.com \
    --cc=quic_luoj@quicinc.com \
    --cc=robh@kernel.org \
    --cc=thomas.weissschuh@linutronix.de \
    --cc=yury.norov@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.