From: Conor Dooley <conor@kernel.org>
To: Jonathan Cameron <jic23@kernel.org>
Cc: "David Lechner" <dlechner@baylibre.com>,
"Janani Sunil" <janani.sunil@analog.com>,
"Lars-Peter Clausen" <lars@metafoo.de>,
"Michael Hennerich" <Michael.Hennerich@analog.com>,
"Nuno Sá" <nuno.sa@analog.com>,
"Andy Shevchenko" <andy@kernel.org>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Philipp Zabel" <p.zabel@pengutronix.de>,
"Jonathan Corbet" <corbet@lwn.net>,
"Shuah Khan" <skhan@linuxfoundation.org>,
"Mark Brown" <broonie@kernel.org>,
"Marius Cristea" <marius.cristea@microchip.com>,
"Marcus Folkesson" <marcus.folkesson@gmail.com>,
"Kent Gustavsson" <kent@minoris.se>,
linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org,
"Janani Sunil" <jan.sun97@gmail.com>,
linux-spi@vger.kernel.org, "Kent Gustavsson" <nedo80@gmail.com>
Subject: Re: [PATCH v7 2/7] dt-bindings: iio: adc: microchip,mcp3564: Add spi-device-addr
Date: Tue, 28 Jul 2026 17:00:55 +0100 [thread overview]
Message-ID: <20260728-patronize-thwarting-56fab2e11077@spud> (raw)
In-Reply-To: <20260725230739.63ff7000@jic23-huawei>
[-- Attachment #1: Type: text/plain, Size: 2936 bytes --]
On Sat, Jul 25, 2026 at 11:07:39PM +0100, Jonathan Cameron wrote:
> On Sat, 25 Jul 2026 15:57:07 -0500
> David Lechner <dlechner@baylibre.com> wrote:
>
> > On 7/22/26 2:54 AM, Janani Sunil 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@analog.com>
> > > ---
> > > .../devicetree/bindings/iio/adc/microchip,mcp3564.yaml | 10 ++++++++--
> > > 1 file changed, 8 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..de1ea289e7f5 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,12 @@ 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
> >
> > Does it not make sense to all for more than once device connected
> > to the same CS here? I would expect maxItems to be 4 to match the
> > number of possible addresses.
> >
>
> I think for this part their isn't a reason to aggregate.
> No magic accesses that touch them all at once. So this hits
> exactly the point you raised about how we set the address for
> more than one of them.
No David is actually right here, and maxitems should be 4.
Setting the address for multiple was already discussed I thought, with
the property being an array and each compatible being used to determine
the "stride" between entries based on the number of supported channels?
>
> Jonathan
>
> > > + items:
> > > + enum: [0, 1, 2, 3]
> > > + default: [1]
> > > +
> > > "#io-channel-cells":
> > > const: 1
> > >
> > > @@ -123,7 +130,6 @@ dependencies:
> > > required:
> > > - compatible
> > > - reg
> > > - - microchip,hw-device-address
> > > - spi-max-frequency
> > >
> > > allOf:
> > > @@ -159,7 +165,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>;
> > >
> >
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2026-07-28 16:01 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-22 7:54 [PATCH v7 0/7] iio: dac: Add support for AD5529R DAC Janani Sunil
2026-07-22 7:54 ` [PATCH v7 1/7] spi: dt-bindings: Add spi-device-addr peripheral property Janani Sunil
2026-07-22 16:39 ` Conor Dooley
2026-07-23 5:48 ` Marcus Folkesson
2026-07-24 23:32 ` Jonathan Cameron
2026-07-25 20:55 ` David Lechner
2026-07-25 22:04 ` Jonathan Cameron
2026-07-28 16:10 ` Conor Dooley
2026-07-28 17:06 ` Nuno Sá
2026-07-28 17:17 ` Conor Dooley
2026-07-28 18:39 ` David Lechner
2026-07-28 21:05 ` Jonathan Cameron
2026-07-28 21:46 ` David Lechner
2026-07-28 16:55 ` Nuno Sá
2026-07-22 7:54 ` [PATCH v7 2/7] dt-bindings: iio: adc: microchip,mcp3564: Add spi-device-addr Janani Sunil
2026-07-22 16:40 ` Conor Dooley
2026-07-25 20:57 ` David Lechner
2026-07-25 22:07 ` Jonathan Cameron
2026-07-28 16:00 ` Conor Dooley [this message]
2026-07-28 21:17 ` Jonathan Cameron
2026-07-22 7:54 ` [PATCH v7 3/7] iio: adc: mcp3564: Add support for spi-device-addr Janani Sunil
2026-07-22 16:45 ` Conor Dooley
2026-07-22 17:02 ` Marius.Cristea
2026-07-22 17:12 ` Conor Dooley
2026-07-22 17:06 ` Marius.Cristea
2026-07-22 7:54 ` [PATCH v7 4/7] dt-bindings: iio: adc: microchip,mcp3911: Add spi-device-addr Janani Sunil
2026-07-22 16:41 ` Conor Dooley
2026-07-23 5:46 ` Marcus Folkesson
2026-07-22 7:54 ` [PATCH v7 5/7] iio: adc: mcp3911: Add support for spi-device-addr Janani Sunil
2026-07-22 16:41 ` Conor Dooley
2026-07-22 16:43 ` Conor Dooley
2026-07-22 17:18 ` Marius.Cristea
2026-07-22 17:19 ` Marius.Cristea
2026-07-23 5:44 ` Marcus Folkesson
2026-07-22 7:54 ` [PATCH v7 6/7] dt-bindings: iio: dac: Add AD5529R Janani Sunil
2026-07-22 16:39 ` Conor Dooley
2026-07-25 20:38 ` David Lechner
2026-07-22 7:54 ` [PATCH v7 7/7] iio: dac: Add AD5529R DAC driver support Janani Sunil
2026-07-24 23:57 ` Jonathan Cameron
2026-07-25 21:24 ` David Lechner
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=20260728-patronize-thwarting-56fab2e11077@spud \
--to=conor@kernel.org \
--cc=Michael.Hennerich@analog.com \
--cc=andy@kernel.org \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=corbet@lwn.net \
--cc=devicetree@vger.kernel.org \
--cc=dlechner@baylibre.com \
--cc=jan.sun97@gmail.com \
--cc=janani.sunil@analog.com \
--cc=jic23@kernel.org \
--cc=kent@minoris.se \
--cc=krzk+dt@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-doc@vger.kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
--cc=marcus.folkesson@gmail.com \
--cc=marius.cristea@microchip.com \
--cc=nedo80@gmail.com \
--cc=nuno.sa@analog.com \
--cc=p.zabel@pengutronix.de \
--cc=robh@kernel.org \
--cc=skhan@linuxfoundation.org \
/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