Re: [PATCH v2 1/2] dt-bindings: iio: adc: ti,ads1015: Add label property
From: Flaviu Nistor
Date: Thu Sep 03 2026 - 12:16:14 EST
On Wed, Sep 2, 2026 at 9:31 PM, David Lechner wrote:
>On 9/2/26 12:22 PM, Flaviu Nistor wrote:
>> Add support for an optional label property per channel similar to other adc
>> chips. This allows assigning distinct names for each channel which can
>> match the schematic signal name.
>>
>> Signed-off-by: Flaviu Nistor <flaviu.nistor@xxxxxxxxx>
>> ---
>> Documentation/devicetree/bindings/iio/adc/ti,ads1015.yaml | 6 ++++++
>> 1 file changed, 6 insertions(+)
>>
>> diff --git a/Documentation/devicetree/bindings/iio/adc/ti,ads1015.yaml b/Documentation/devicetree/bindings/iio/adc/ti,ads1015.yaml
>> index 718f633c6e04..777a75c21d7f 100644
>> --- a/Documentation/devicetree/bindings/iio/adc/ti,ads1015.yaml
>> +++ b/Documentation/devicetree/bindings/iio/adc/ti,ads1015.yaml
>> @@ -66,6 +66,11 @@ patternProperties:
>> - minimum: 0
>> maximum: 7
>>
>> + label:
>> + $ref: /schemas/types.yaml#/definitions/string
>> + description:
>> + A descriptive name for this channel, like "vcc_ram" or "CH3".
>> +
>
>Apparently this chip has quite old dt-bindings. Normally, we would have
>included adc.yaml to get this and other channel properties.
>
>And we would have used diff-channels and single-channel from that to
>describe which pins are associated with which channel rather than having
>a magic number for reg. And the ti,datarate looks suspicious as sampling
>frequency is usually we control at runtime.
>
>Anyway, none of that is really relevant to this patch. We'll see what
>Jonathan says about using adc.yaml here vs. adding a label property.
>
Thanks for your feedback. I can also use:
$ref: adc.yaml
unevaluatedProperties: false
and move additionalProperties: false at the end of patternProperties block.
Any other idea?
Best regards,
Flaviu Nistor
>> ti,gain:
>> $ref: /schemas/types.yaml#/definitions/uint32
>> minimum: 0
>> @@ -125,6 +130,7 @@ examples:
>> reg = <4>;
>> ti,gain = <3>;
>> ti,datarate = <5>;
>> + label = "CH3";
>> };
>> };
>> };