All of lore.kernel.org
 help / color / mirror / Atom feed
From: Giulio Benetti <giulio.benetti@benettiengineering.com>
To: "Jonathan Neuschäfer" <j.neuschaefer@gmx.net>
Cc: "Dmitry Torokhov" <dmitry.torokhov@gmail.com>,
	"Rob Herring" <robh+dt@kernel.org>,
	"Henrik Rydberg" <rydberg@bitmath.org>,
	linux-input@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	"Jonathan Neuschäfer" <j.ne@posteo.net>
Subject: Re: [PATCH v2 2/3] dt-bindings: touchscreen: Add HY46XX bindings
Date: Fri, 2 Apr 2021 17:17:11 +0200	[thread overview]
Message-ID: <c7650856-aebc-72c6-7597-5f8dce4f347f@benettiengineering.com> (raw)
In-Reply-To: <YGbXnGTpx1WTPpz0@latitude>

Hi Jonathan,

thank you for reviewing,

On 4/2/21 10:36 AM, Jonathan Neuschäfer wrote:
> On Fri, Apr 02, 2021 at 01:03:57AM +0200, Giulio Benetti wrote:
>> This adds device tree bindings for the Hycon HY46XX touchscreen series.
>>
>> Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
>> ---
>> V1->V2:
>> As suggested by Rob Herring:
>> * fixed $id: address
>> * added "hycon," in front of every custom property
>> * changed all possible property to boolean type
>> * removed proximity-sensor-switch property since it's not handled in driver
>> ---
>>   .../input/touchscreen/hycon,hy46xx.yaml       | 120 ++++++++++++++++++
>>   MAINTAINERS                                   |   6 +
>>   2 files changed, 126 insertions(+)
>>   create mode 100644 Documentation/devicetree/bindings/input/touchscreen/hycon,hy46xx.yaml
>>
>> diff --git a/Documentation/devicetree/bindings/input/touchscreen/hycon,hy46xx.yaml b/Documentation/devicetree/bindings/input/touchscreen/hycon,hy46xx.yaml
>> new file mode 100644
>> index 000000000000..71a1dbabcd4f
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/input/touchscreen/hycon,hy46xx.yaml
>> @@ -0,0 +1,120 @@
>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
>> +%YAML 1.2
>> +---
>> +$id: http://devicetree.org/schemas/input/touchscreen/hycon,hy46xx.yaml#
>> +$schema: http://devicetree.org/meta-schemas/core.yaml#
>> +
>> +title: hycon HY46XX series touchscreen controller Bindings
> 
> hycon -> Hycon        (because it's a name)
> Bindings -> bindings  (because it's just a regular word)

ok

>> +
>> +description: |
>> +             There are 6 variants of the chip for various touch panel sizes and coverl len material
> 
> "coverl len material" looks like a typo. What does it mean?

yes

>> +              Glass: 0.3mm--4.0mm
>> +              PET/PMMA: 0.2mm--2.0mm
>> +               HY4613(B)-N048  < 6"
>> +               HY4614(B)-N068  7" .. 10.1"
> 
> According to the datasheet I was able to find[1], HY4613-N048 supports
> touch panel sizes smaller than 5.3". Did this change in newer
> datasheets?

Yes, there is a newer document called "HY46XX Application Notes
V4.0", here is the screenshot of models:
https://pasteboard.co/JVtOMcO.png

> What does the (B) part of the part number mean?

It's an upgraded version even if hardware is fully compatible, so (B) 
means with and without "B".

> 
> [1]: https://datasheetspdf.com/pdf/1297773/HYCON/HY4613-N048/1 >> +               HY4621-NS32  < 5"
>> +               HY4623-NS48  5.1" .. 7"
>> +              Glass: 0.3mm--8.0mm
>> +              PET/PMMA: 0.2mm--4.0mm
>> +               HY4633(B)-N048  < 6"
>> +               HY4635(B)-N048  < 7" .. 10.1"
> 
> The description block seems unusually far indented. I'm not a YAML
> expert, but according to the yamllint tool, it would work with much less
> indentation:
> 
> description: |
>    There are 6 variants of the chip for various touch panel sizes and coverl len material
>     Glass: 0.3mm--4.0mm
> [...]

Ah yes, I've started from edt,ft5x06.yaml and there it was indented that 
way. Anyway I've changed it.

> 
>> +  hycon,glove-enable:
>> +    type: boolean
>> +    description: Allows enabling or disabling glove setting.
> 
> Small nit: Due to the way boolean properties work in DT, you can't
> really use the property to disable the glove setting (in order to
> disable the setting, you would explicitly not use the property).
> Perhaps:
> 
> +    description: Allows enabling the glove setting.
> 
> I don't really know :)

Ah yes, it's true. If not specified it's simply not enabled, so I use 
your suggested form.

> 
>> +
>> +  hycon,report-speed:
>> +    description: Allows setting the report speed(i.e 0x64 => 100Hz).
>> +    $ref: /schemas/types.yaml#/definitions/uint32
>> +    minimum: 0
>> +    maximum: 255
> 
> Please add a space before the opening parenthesis:
> 
> +    description: Allows setting the report speed (i.e 0x64 => 100Hz).
> 
> Or perhaps like this:
> 
> +    description: Allows setting the report speed in Hertz.
> 

Oh yes! I didn't realize it was exactly in Hertz, 0x64 is 100, not only 
equivalent to 100Hz, so every step is 1 Hz

> 
> Thanks,
> Jonathan Neuschäfer
> 

Thanks again!
Best regards
-- 
Giulio Benetti
Benetti Engineering sas

  reply	other threads:[~2021-04-02 15:17 UTC|newest]

Thread overview: 69+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20210305163834.70924-1-giulio.benetti@benettiengineering.com>
2021-03-05 16:38 ` [PATCH 1/3] dt-bindings: Add Hycon Technology vendor prefix Giulio Benetti
2021-03-05 17:25   ` Jonathan Neuschäfer
2021-03-05 17:33     ` Giulio Benetti
2021-03-05 19:32       ` Giulio Benetti
2021-03-05 16:38 ` [PATCH 2/3] dt-bindings: touchscreen: Add HY46XX bindings Giulio Benetti
2021-03-05 19:34   ` Giulio Benetti
2021-03-06 19:28   ` Rob Herring
2021-03-06 19:41   ` Rob Herring
2021-04-01 18:37     ` Giulio Benetti
2021-04-01 22:24       ` Giulio Benetti
2021-04-01 23:03     ` [PATCH v2 0/3] Input: add Hycon HY46XX Touchscreen controller Giulio Benetti
2021-04-01 23:03       ` [PATCH v2 1/3] dt-bindings: Add Hycon Technology vendor prefix Giulio Benetti
2021-04-01 23:03       ` [PATCH v2 2/3] dt-bindings: touchscreen: Add HY46XX bindings Giulio Benetti
2021-04-02  8:36         ` Jonathan Neuschäfer
2021-04-02 15:17           ` Giulio Benetti [this message]
2021-04-01 23:03       ` [PATCH v2 3/3] Input: add driver for the Hycon HY46XX touchpanel series Giulio Benetti
2021-04-02  8:59         ` Jonathan Neuschäfer
2021-04-02 15:23           ` Giulio Benetti
2021-04-02 16:16           ` [PATCH v3 0/3] Input: add Hycon HY46XX Touchscreen controller Giulio Benetti
2021-04-02 16:16             ` [PATCH v3 1/3] dt-bindings: Add Hycon Technology vendor prefix Giulio Benetti
2021-04-02 16:16             ` [PATCH v3 2/3] dt-bindings: touchscreen: Add HY46XX bindings Giulio Benetti
2021-04-06 13:24               ` Rob Herring
2021-04-07 17:57                 ` Giulio Benetti
2021-04-07 18:56                   ` Rob Herring
2021-04-07 19:17                     ` Giulio Benetti
2021-04-06 13:37               ` Jonathan Neuschäfer
2021-04-06 14:07                 ` Giulio Benetti
2021-04-07 17:49                 ` [PATCH v4 0/3] Input: add Hycon HY46XX Touchscreen controller Giulio Benetti
2021-04-07 17:49                   ` [PATCH v4 1/3] dt-bindings: Add Hycon Technology vendor prefix Giulio Benetti
2021-04-08 20:16                     ` Rob Herring
2021-04-07 17:49                   ` [PATCH v4 2/3] dt-bindings: touchscreen: Add HY46XX bindings Giulio Benetti
2021-04-08 20:21                     ` Rob Herring
2021-04-11 11:37                       ` Giulio Benetti
2021-04-11 11:48                       ` [PATCH v5 0/3] Input: add Hycon HY46XX Touchscreen controller Giulio Benetti
2021-04-11 11:48                         ` [PATCH v5 1/3] dt-bindings: Add Hycon Technology vendor prefix Giulio Benetti
2021-04-12 15:05                           ` Rob Herring
2021-04-12 15:12                             ` Giulio Benetti
2021-04-13 13:35                               ` Rob Herring
2021-04-13 14:44                                 ` [PATCH v7 0/3] Input: add Hycon HY46XX Touchscreen controller Giulio Benetti
2021-04-13 14:44                                   ` [PATCH v7 1/3] dt-bindings: Add Hycon Technology vendor prefix Giulio Benetti
2021-04-14  5:44                                     ` Dmitry Torokhov
2021-04-13 14:44                                   ` [PATCH v7 2/3] dt-bindings: touchscreen: Add HY46XX bindings Giulio Benetti
2021-04-13 16:36                                     ` Rob Herring
2021-04-14  5:44                                     ` Dmitry Torokhov
2021-04-13 14:44                                   ` [PATCH v7 3/3] Input: add driver for the Hycon HY46XX touchpanel series Giulio Benetti
2021-04-14  5:44                                     ` Dmitry Torokhov
2021-04-14  6:46                                       ` Peter Hutterer
2021-04-14 11:22                                         ` Giulio Benetti
2021-04-14 17:26                                           ` Dmitry Torokhov
2021-04-15  6:16                                             ` Peter Hutterer
2021-04-14 11:24                                       ` Giulio Benetti
2021-04-11 11:48                         ` [PATCH v5 2/3] dt-bindings: touchscreen: Add HY46XX bindings Giulio Benetti
2021-04-12 13:20                           ` Rob Herring
2021-04-12 14:46                           ` Rob Herring
2021-04-12 14:49                             ` Giulio Benetti
2021-04-12 15:23                             ` [PATCH v6 0/2] Input: add Hycon HY46XX Touchscreen controller Giulio Benetti
2021-04-12 15:23                               ` [PATCH v6 1/2] dt-bindings: touchscreen: Add HY46XX bindings Giulio Benetti
2021-04-13 15:07                                 ` Rob Herring
2021-04-13 15:27                                   ` Giulio Benetti
2021-04-13 17:58                                     ` Rob Herring
2021-04-13 18:34                                       ` Giulio Benetti
2021-04-12 15:24                               ` [PATCH v6 2/2] Input: add driver for the Hycon HY46XX touchpanel series Giulio Benetti
2021-04-11 11:48                         ` [PATCH v5 3/3] " Giulio Benetti
2021-04-07 17:49                   ` [PATCH v4 " Giulio Benetti
2021-04-02 16:16             ` [PATCH v3 " Giulio Benetti
2021-03-05 16:38 ` [PATCH " Giulio Benetti
2021-03-05 19:00   ` Dmitry Torokhov
2021-03-05 19:31     ` Giulio Benetti
2021-03-05 19:54     ` Giulio Benetti

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=c7650856-aebc-72c6-7597-5f8dce4f347f@benettiengineering.com \
    --to=giulio.benetti@benettiengineering.com \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=j.ne@posteo.net \
    --cc=j.neuschaefer@gmx.net \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robh+dt@kernel.org \
    --cc=rydberg@bitmath.org \
    /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.