Re: [PATCH v6 2/5] dt-bindings: iio: adc: microchip,mcp3564: Add spi-device-addr
From: Jonathan Cameron
Date: Sat Jul 18 2026 - 22:07:44 EST
On Wed, 15 Jul 2026 13:41:05 +0200
Janani Sunil <janani.sunil@xxxxxxxxxx> wrote:
> Add the generic spi-device-addr property to the binding and deprecate
> the existing vendor specific microchip,hw-device-address property.
>
> Signed-off-by: Janani Sunil <janani.sunil@xxxxxxxxxx>
Maybe I'm reading the situation wrong but I was expecting to see
driver patches as well. Or is the now deprecated binding element
not actually used?
One other thing below.
Jonathan
> ---
> Documentation/devicetree/bindings/iio/adc/microchip,mcp3564.yaml | 9 +++++++--
> 1 file changed, 7 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/iio/adc/microchip,mcp3564.yaml b/Documentation/devicetree/bindings/iio/adc/microchip,mcp3564.yaml
> index 675319276197..02bb198e9fa7 100644
> --- a/Documentation/devicetree/bindings/iio/adc/microchip,mcp3564.yaml
> +++ b/Documentation/devicetree/bindings/iio/adc/microchip,mcp3564.yaml
> @@ -80,6 +80,7 @@ properties:
> $ref: /schemas/types.yaml#/definitions/uint32
> minimum: 0
> maximum: 3
> + deprecated: true
> description:
> The address is set on a per-device basis by fuses in the factory,
> configured on request. If not requested, the fuses are set for 0x1.
> @@ -91,6 +92,11 @@ properties:
> clocking of the device address (BITS[7:6] - top two bits of COMMAND BYTE
> which is first one on the wire).
>
> + spi-device-addr:
> + maxItems: 1
> + items:
> + enum: [0, 1, 2, 3]
No default here, yet not required, so how do we know what the value is
if this property isn't there?
> +
> "#io-channel-cells":
> const: 1
>
> @@ -123,7 +129,6 @@ dependencies:
> required:
> - compatible
> - reg
> - - microchip,hw-device-address
> - spi-max-frequency
>
> allOf:
> @@ -159,7 +164,7 @@ examples:
> spi-cpha;
> spi-cpol;
> spi-max-frequency = <10000000>;
> - microchip,hw-device-address = <1>;
> + spi-device-addr = <1>;
>
> #address-cells = <1>;
> #size-cells = <0>;
>