From: Yasin Lee <yasin.lee.x@gmail.com>
To: Krzysztof Kozlowski <krzk@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Jonathan Cameron <jic23@kernel.org>,
Lars-Peter Clausen <lars@metafoo.de>,
yasin.lee.x@outlook.com
Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-iio@vger.kernel.org, Conor Dooley <conor@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Subject: Re: [PATCH v7 2/3] dt-bindings: iio: proximity: Add TYHX HX9023S
Date: Tue, 25 Jun 2024 17:05:58 +0800 [thread overview]
Message-ID: <b704f7a4-7eca-4b49-b96e-8414b52190b1@gmail.com> (raw)
In-Reply-To: <d77a4777-d282-4004-895a-7809abf68130@kernel.org>
On 2024/6/25 13:48, Krzysztof Kozlowski wrote:
> On 25/06/2024 04:15, Yasin Lee wrote:
>> A capacitive proximity sensor
>>
>> Acked-by: Conor Dooley <conor@kernel.org>
>> Acked-by: Jonathan Cameron <jic23@kernel.org>
>> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> What? How did this happen? Where - provide lore links to prove it?
>
> NAK
>
My mistake. I will remove all of them.
>> Reported-by: "Rob Herring (Arm)" <robh@kernel.org>
> No, drop.
Got it.
>
>> Signed-off-by: Yasin Lee <yasin.lee.x@gmail.com>
>
>> +
>> +patternProperties:
>> + "^channel@[0-4]$":
>> + $ref: /schemas/iio/adc/adc.yaml
>> + type: object
>> +
>> + properties:
>> + reg:
>> + minimum: 0
>> + maximum: 4
>> + description: The channel number.
>> +
>> + single-channel: true
>> +
>> + diff-channels: true
>> +
>> + oneOf:
>> + - required:
>> + - single-channel
>> + - required:
>> + - diff-channels
>> +
>> + required:
>> + - reg
> ... and now you should see that you duplicated adc.yaml. This should be
> just:
>
> +patternProperties:
> + "^channel@[0-4]$":
> + $ref: /schemas/iio/adc/adc.yaml
> + type: object
> + unevaluatedProperties: false
> +
> + properties:
> + reg:
> + minimum: 0
> + maximum: 4
> + description: The channel number.
>
>
>
> Best regards,
> Krzysztof
Hi Krzysztof,
Thanks for your reply.
I have done the verification. "single-channel: true"and "diff-channels:
true" are necessary. Removing them will cause dt_binding_check to report
an error. Only oneOf can be removed. The de-duplicated code is as follows:
patternProperties:
"^channel@[0-4]$":
$ref: /schemas/iio/adc/adc.yaml
type: object
unevaluatedProperties: false
properties:
reg:
minimum: 0
maximum: 4
description: The channel number.
single-channel: true
diff-channels: true
required:
- reg
additionalProperties: false
Best regards,
Yasin
next prev parent reply other threads:[~2024-06-25 9:06 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-25 2:15 [PATCH v7 0/3] iio: proximity: Add TYHX HX9023S sensor driver Yasin Lee
2024-06-25 2:15 ` [PATCH v7 1/3] dt-bindings: vendor-prefixes: add tyhx Yasin Lee
2024-06-25 5:50 ` Krzysztof Kozlowski
2024-06-25 8:31 ` Yasin Lee
2024-06-25 9:15 ` Krzysztof Kozlowski
2024-06-25 9:39 ` Yasin Lee
2024-06-25 2:15 ` [PATCH v7 2/3] dt-bindings: iio: proximity: Add TYHX HX9023S Yasin Lee
2024-06-25 3:48 ` Rob Herring (Arm)
2024-06-25 9:13 ` Yasin Lee
2024-06-25 5:48 ` Krzysztof Kozlowski
2024-06-25 6:53 ` Conor Dooley
2024-06-25 8:33 ` Yasin Lee
2024-06-25 9:05 ` Yasin Lee [this message]
2024-06-25 2:15 ` [PATCH v7 3/3] iio: proximity: Add driver support for TYHX's HX9023S capacitive proximity sensor Yasin Lee
2024-06-25 5:49 ` Krzysztof Kozlowski
2024-06-25 8:37 ` Yasin Lee
2024-07-30 19:43 ` Andy Shevchenko
2024-08-02 10:10 ` Yasin Lee
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=b704f7a4-7eca-4b49-b96e-8414b52190b1@gmail.com \
--to=yasin.lee.x@gmail.com \
--cc=conor+dt@kernel.org \
--cc=conor@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jic23@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=krzysztof.kozlowski@linaro.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@kernel.org \
--cc=yasin.lee.x@outlook.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;
as well as URLs for NNTP newsgroup(s).