[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b704f7a4-7eca-4b49-b96e-8414b52190b1@gmail.com>
Date: Tue, 25 Jun 2024 17:05:58 +0800
From: Yasin Lee <yasin.lee.x@...il.com>
To: Krzysztof Kozlowski <krzk@...nel.org>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley
<conor+dt@...nel.org>, Jonathan Cameron <jic23@...nel.org>,
Lars-Peter Clausen <lars@...afoo.de>, yasin.lee.x@...look.com
Cc: devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-iio@...r.kernel.org, Conor Dooley <conor@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
Subject: Re: [PATCH v7 2/3] dt-bindings: iio: proximity: Add TYHX HX9023S
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@...nel.org>
>> Acked-by: Jonathan Cameron <jic23@...nel.org>
>> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.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@...nel.org>
> No, drop.
Got it.
>
>> Signed-off-by: Yasin Lee <yasin.lee.x@...il.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
Powered by blists - more mailing lists