Re: [PATCH v5 1/5] dt-bindings: iio: mcp9600: Add microchip,mcp9601 and add constraints

From: Conor Dooley
Date: Mon Aug 18 2025 - 13:20:41 EST


On Mon, Aug 18, 2025 at 08:28:30AM +0200, Krzysztof Kozlowski wrote:
> On 18/08/2025 05:59, Ben Collins wrote:
> > interrupts:
> > minItems: 1
> > - maxItems: 6
> > + maxItems: 4
>
> Why?
> I did not find explanation of this in commit msg.

It's also not correct, since the outermost constraint remains 6 after
the patch, so the if/else should reduce the constraints, rather than
increase it as is done here.

>
> >
> > interrupt-names:
> > minItems: 1
> > - maxItems: 6
> > items:
> > - enum:
> > - - open-circuit
> > - - short-circuit
> > - - alert1
> > - - alert2
> > - - alert3
> > - - alert4
> > + - const: alert1
> > + - const: alert2
> > + - const: alert3
> > + - const: alert4
>
> Neither this and it is ABI break. ABI breaking needs clear reasoning why
> and some evaluation of impact on users.

I think it should be a standalone patch too, since it is a fix for the
existing mcp9600 device rather than something for the mcp9601 device
that is being added by this patch...
>
>
> >
> > thermocouple-type:
> > $ref: /schemas/types.yaml#/definitions/uint32
> > + default: 3

As is this, which is codifying the existing restriction rather than
being something new as 0x03 is what THERMOCOUPLE_TYPE_K is defined to
be.

> > description:
> > Type of thermocouple (THERMOCOUPLE_TYPE_K if omitted).
> > Use defines in dt-bindings/iio/temperature/thermocouple.h.

Attachment: signature.asc
Description: PGP signature