From: Krzysztof Kozlowski <krzk@kernel.org>
To: Frank Li <Frank.Li@nxp.com>,
Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
"open list:INPUT (KEYBOARD, MOUSE, JOYSTICK,
TOUCHSCREEN)..." <linux-input@vger.kernel.org>,
"open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS"
<devicetree@vger.kernel.org>,
open list <linux-kernel@vger.kernel.org>
Cc: imx@lists.linux.dev
Subject: Re: [PATCH 1/1] dt-bindings: input: touchscreen: convert ad7879 to yaml format
Date: Sat, 10 Aug 2024 13:59:19 +0200 [thread overview]
Message-ID: <f7d83c56-d59b-4c9b-87a1-31556b3ef5de@kernel.org> (raw)
In-Reply-To: <20240809200534.3503223-1-Frank.Li@nxp.com>
On 09/08/2024 22:05, Frank Li wrote:
> +
> +maintainers:
> + - Frank Li <Frank.Li@nxp.com>
> +
> +properties:
> + compatible:
> + description: |
> + for SPI slave, use "adi,ad7879"
> + for I2C slave, use "adi,ad7879-1"
> + enum:
> + - adi,ad7879
> + - adi,ad7879-1
Driver (and binding) could be fixed to use only one compatible, but
that's another task.
> +
> + reg:
> + maxItems: 1
> +
> + interrupts:
> + maxItems: 1
> +
> + touchscreen-max-pressure:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + description: maximum reported pressure
> +
> + adi,resistance-plate-x:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + description: total resistance of X-plate (for pressure calculation)
> +
> + touchscreen-swapped-x-y:
> + $ref: /schemas/types.yaml#/definitions/flag
> + description: X and Y axis are swapped (boolean)
> +
> + adi,first-conversion-delay:
> + $ref: /schemas/types.yaml#/definitions/uint8
> + minimum: 0
> + maximum: 15
> + description: |
> + 0-12: In 128us steps (starting with 128us)
> + 13 : 2.560ms
> + 14 : 3.584ms
> + 15 : 4.096ms
> + This property has to be a '/bits/ 8' value
> +
> + adi,acquisition-time:
> + $ref: /schemas/types.yaml#/definitions/uint8
> + enum: [0, 1, 2, 3]
> + description: |
> + 0: 2us
> + 1: 4us
> + 2: 8us
> + 3: 16us
> + This property has to be a '/bits/ 8' value
> +
> + adi,median-filter-size:
> + $ref: /schemas/types.yaml#/definitions/uint8
> + enum: [0, 1, 2, 3]
> + description: |
> + 0: disabled
> + 1: 4 measurements
> + 2: 8 measurements
> + 3: 16 measurements
> + This property has to be a '/bits/ 8' value
> +
> + adi,averaging:
> + $ref: /schemas/types.yaml#/definitions/uint8
> + enum: [0, 1, 2, 3]
> + description: |
> + 0: 2 middle values (1 if median disabled)
> + 1: 4 middle values
> + 2: 8 middle values
> + 3: 16 values
> + This property has to be a '/bits/ 8' value
> +
> + adi,conversion-interval:
> + $ref: /schemas/types.yaml#/definitions/uint8
> + description: |
> + 0 : convert one time only
> + 1-255: 515us + val * 35us (up to 9.440ms)
> + This property has to be a '/bits/ 8' value
All above should have the "default: 0", based on driver behavior.
Best regards,
Krzysztof
prev parent reply other threads:[~2024-08-10 11:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-09 20:05 [PATCH 1/1] dt-bindings: input: touchscreen: convert ad7879 to yaml format Frank Li
2024-08-10 11:59 ` Krzysztof Kozlowski [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=f7d83c56-d59b-4c9b-87a1-31556b3ef5de@kernel.org \
--to=krzk@kernel.org \
--cc=Frank.Li@nxp.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=imx@lists.linux.dev \
--cc=krzk+dt@kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).