From: Pengyu Luo <mitltlatltl@gmail.com>
To: krzk@kernel.org
Cc: charles.goodix@gmail.com, conor+dt@kernel.org,
dan.j.williams@intel.com, devicetree@vger.kernel.org,
dionnaglaze@google.com, dmitry.torokhov@gmail.com,
ebiggers@google.com, fdmanana@suse.com, hdegoede@redhat.com,
kees@kernel.org, krzk+dt@kernel.org, len.brown@intel.com,
linux-input@vger.kernel.org, linux-kernel@vger.kernel.org,
mitltlatltl@gmail.com, neil.armstrong@linaro.org,
pengdonglin@xiaomi.com, quic_luoj@quicinc.com, robh@kernel.org,
thomas.weissschuh@linutronix.de, yury.norov@gmail.com
Subject: Re: [PATCH 1/2] dt-bindings: input: goodix,gt9916: Document stylus support
Date: Thu, 5 Jun 2025 16:58:35 +0800 [thread overview]
Message-ID: <20250605085836.424932-1-mitltlatltl@gmail.com> (raw)
In-Reply-To: <0365ffe2-82c6-41d1-ab39-17fe4642bebc@kernel.org>
On Thu, Jun 5, 2025 at 1:54 PM Krzysztof Kozlowski <krzk@kernel.org> wrote:
> On 05/06/2025 07:48, Pengyu Luo wrote:
> > 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,
>
> Looks like deducible from the compatible.
>
> > + the driver will initialize stylus-specific input reporting.
>
> What if my driver does something else? Shall we change the binding? No.
>
Ack, I will drop it in v2.
> > +
> > + goodix,physical-x:
> > + $ref: /schemas/types.yaml#/definitions/uint32
> > + description: Physical width of the touchscreen in millimeters.
>
> No, use existing input properties.
>
Ack, I overlooked it.
> > +
> > + 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).
>
> Use existing input properties.
>
With a quick check, I think there is no suitable property for stylus,
"touchscreen-max-pressure" is for touchscreen, not for stylus. AFAIK,
Pressure data is reported by stylus, received by touch IC.
Best wishes,
Pengyu
prev parent reply other threads:[~2025-06-05 8:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
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=20250605085836.424932-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=krzk@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox