All of lore.kernel.org
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: "Pengyu Luo" <mitltlatltl@gmail.com>,
	"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
Subject: Re: [PATCH 1/2] dt-bindings: input: goodix,gt9916: Document stylus support
Date: Thu, 5 Jun 2025 07:54:07 +0200	[thread overview]
Message-ID: <0365ffe2-82c6-41d1-ab39-17fe4642bebc@kernel.org> (raw)
In-Reply-To: <20250605054855.403487-1-mitltlatltl@gmail.com>

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.

> +
> +  goodix,physical-x:
> +    $ref: /schemas/types.yaml#/definitions/uint32
> +    description: Physical width of the touchscreen in millimeters.

No, use existing input properties.

> +
> +  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.



Best regards,
Krzysztof

  parent reply	other threads:[~2025-06-05  5:54 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 ` Krzysztof Kozlowski [this message]
2025-06-05  8:58   ` [PATCH 1/2] dt-bindings: input: goodix,gt9916: Document " 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=0365ffe2-82c6-41d1-ab39-17fe4642bebc@kernel.org \
    --to=krzk@kernel.org \
    --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=mitltlatltl@gmail.com \
    --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.