* [PATCH 1/1] dt-bindings: iio: adc: max1238: Add #io-channel-cells property
@ 2025-08-18 20:00 Frank Li
2025-08-19 18:12 ` Conor Dooley
0 siblings, 1 reply; 3+ messages in thread
From: Frank Li @ 2025-08-18 20:00 UTC (permalink / raw)
To: Jonathan Cameron, David Lechner, Nuno Sá, Andy Shevchenko,
Rob Herring, Krzysztof Kozlowski, Conor Dooley,
open list:IIO SUBSYSTEM AND DRIVERS,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
open list
Cc: imx
Add #io-channel-cells property because it is multi-channel ADC.
Fix below CHECK_DTBS warnings:
arch/arm/boot/dts/nxp/ls/ls1021a-iot.dtb: adc@35 (maxim,max1239): '#io-channel-cells' does not match any of the regexes: '^pinctrl-[0-9]+$'
from schema $id: http://devicetree.org/schemas/iio/adc/maxim,max1238.yaml#
Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
Documentation/devicetree/bindings/iio/adc/maxim,max1238.yaml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Documentation/devicetree/bindings/iio/adc/maxim,max1238.yaml b/Documentation/devicetree/bindings/iio/adc/maxim,max1238.yaml
index 60d7b34e3286f..ae3c89393f1a3 100644
--- a/Documentation/devicetree/bindings/iio/adc/maxim,max1238.yaml
+++ b/Documentation/devicetree/bindings/iio/adc/maxim,max1238.yaml
@@ -53,6 +53,9 @@ properties:
reg:
maxItems: 1
+ "#io-channel-cells":
+ const: 1
+
vcc-supply: true
vref-supply:
description: Optional external reference. If not supplied, internal
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] dt-bindings: iio: adc: max1238: Add #io-channel-cells property
2025-08-18 20:00 [PATCH 1/1] dt-bindings: iio: adc: max1238: Add #io-channel-cells property Frank Li
@ 2025-08-19 18:12 ` Conor Dooley
2025-08-25 10:04 ` Jonathan Cameron
0 siblings, 1 reply; 3+ messages in thread
From: Conor Dooley @ 2025-08-19 18:12 UTC (permalink / raw)
To: Frank Li
Cc: Jonathan Cameron, David Lechner, Nuno Sá, Andy Shevchenko,
Rob Herring, Krzysztof Kozlowski, Conor Dooley,
open list:IIO SUBSYSTEM AND DRIVERS,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
open list, imx
[-- Attachment #1: Type: text/plain, Size: 1848 bytes --]
On Mon, Aug 18, 2025 at 04:00:13PM -0400, Frank Li wrote:
> Add #io-channel-cells property because it is multi-channel ADC.
As far as I understand it, that's not a correct statement. A single
channel ADC can have the property, but it would be set to 0 just as a
single clock provider has #clock-cells of 0.
I did check the devices and they do all appear to be multichannel (not
just the 1238) so the change you're making here looks correct, unless
some of them would actually require 2 cells for some reason - but you
should really state that in your commit message when there's about 30
compatibles so that I don't have to check them.
With an accurate commit message,
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Maybe Jonathan is willing to do that since it's just adding "of 1" to
the first sentence.
>
> Fix below CHECK_DTBS warnings:
> arch/arm/boot/dts/nxp/ls/ls1021a-iot.dtb: adc@35 (maxim,max1239): '#io-channel-cells' does not match any of the regexes: '^pinctrl-[0-9]+$'
> from schema $id: http://devicetree.org/schemas/iio/adc/maxim,max1238.yaml#
>
> Signed-off-by: Frank Li <Frank.Li@nxp.com>
> ---
> Documentation/devicetree/bindings/iio/adc/maxim,max1238.yaml | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/iio/adc/maxim,max1238.yaml b/Documentation/devicetree/bindings/iio/adc/maxim,max1238.yaml
> index 60d7b34e3286f..ae3c89393f1a3 100644
> --- a/Documentation/devicetree/bindings/iio/adc/maxim,max1238.yaml
> +++ b/Documentation/devicetree/bindings/iio/adc/maxim,max1238.yaml
> @@ -53,6 +53,9 @@ properties:
> reg:
> maxItems: 1
>
> + "#io-channel-cells":
> + const: 1
> +
> vcc-supply: true
> vref-supply:
> description: Optional external reference. If not supplied, internal
> --
> 2.34.1
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] dt-bindings: iio: adc: max1238: Add #io-channel-cells property
2025-08-19 18:12 ` Conor Dooley
@ 2025-08-25 10:04 ` Jonathan Cameron
0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Cameron @ 2025-08-25 10:04 UTC (permalink / raw)
To: Conor Dooley
Cc: Frank Li, David Lechner, Nuno Sá, Andy Shevchenko,
Rob Herring, Krzysztof Kozlowski, Conor Dooley,
open list:IIO SUBSYSTEM AND DRIVERS,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
open list, imx
On Tue, 19 Aug 2025 19:12:10 +0100
Conor Dooley <conor@kernel.org> wrote:
> On Mon, Aug 18, 2025 at 04:00:13PM -0400, Frank Li wrote:
> > Add #io-channel-cells property because it is multi-channel ADC.
>
> As far as I understand it, that's not a correct statement. A single
> channel ADC can have the property, but it would be set to 0 just as a
> single clock provider has #clock-cells of 0.
>
> I did check the devices and they do all appear to be multichannel (not
> just the 1238) so the change you're making here looks correct, unless
> some of them would actually require 2 cells for some reason - but you
> should really state that in your commit message when there's about 30
> compatibles so that I don't have to check them.
>
> With an accurate commit message,
> Acked-by: Conor Dooley <conor.dooley@microchip.com>
> Maybe Jonathan is willing to do that since it's just adding "of 1" to
> the first sentence.
>
I changed it to say 'with a constant value of 1' to leave the gap
for other values on other devices that you are pointing out.
Applied, thanks.
> >
> > Fix below CHECK_DTBS warnings:
> > arch/arm/boot/dts/nxp/ls/ls1021a-iot.dtb: adc@35 (maxim,max1239): '#io-channel-cells' does not match any of the regexes: '^pinctrl-[0-9]+$'
> > from schema $id: http://devicetree.org/schemas/iio/adc/maxim,max1238.yaml#
> >
> > Signed-off-by: Frank Li <Frank.Li@nxp.com>
> > ---
> > Documentation/devicetree/bindings/iio/adc/maxim,max1238.yaml | 3 +++
> > 1 file changed, 3 insertions(+)
> >
> > diff --git a/Documentation/devicetree/bindings/iio/adc/maxim,max1238.yaml b/Documentation/devicetree/bindings/iio/adc/maxim,max1238.yaml
> > index 60d7b34e3286f..ae3c89393f1a3 100644
> > --- a/Documentation/devicetree/bindings/iio/adc/maxim,max1238.yaml
> > +++ b/Documentation/devicetree/bindings/iio/adc/maxim,max1238.yaml
> > @@ -53,6 +53,9 @@ properties:
> > reg:
> > maxItems: 1
> >
> > + "#io-channel-cells":
> > + const: 1
> > +
> > vcc-supply: true
> > vref-supply:
> > description: Optional external reference. If not supplied, internal
> > --
> > 2.34.1
> >
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-08-25 10:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-18 20:00 [PATCH 1/1] dt-bindings: iio: adc: max1238: Add #io-channel-cells property Frank Li
2025-08-19 18:12 ` Conor Dooley
2025-08-25 10:04 ` Jonathan Cameron
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).