Skip to contentSkip to conversation

dt-bindings: iio: adc: max1238: Add #io-channel-cells property

PATCH Applied Frank Li 3 participants 3 messages Aug 18, 2025 – Aug 25, 2025

Subsystems (3)
lore
Share & tools
lore

Frank Li

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: iio: adc: max1238: Add #io-channel-cells property

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#

---
 Documentation/devicetree/bindings/iio/adc/maxim,max1238.yaml | 3 +++
 1 file changed, 3 insertions(+)
Documentation/devicetree/bindings/iio/adc/maxim,max1238.yaml +3 -0
index 60d7b34e3286f..ae3c89393f1a3 100644
@@ -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
Signature · 1 line
2.34.1
Acked-by on v1 1/1
#1 lore raw
Quoted 1 line · Frank Li

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,

Maybe Jonathan is willing to do that since it's just adding "of 1" to the first sentence.

Quoted 27 lines

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#

---
 Documentation/devicetree/bindings/iio/adc/maxim,max1238.yaml | 3 +++
 1 file changed, 3 insertions(+)
Documentation/devicetree/bindings/iio/adc/maxim,max1238.yaml +3 -0
index 60d7b34e3286f..ae3c89393f1a3 100644
@@ -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
Signature · 1 line
2.34.1
maintainer Applied
#2 lore raw
Quoted 13 lines · On Tue, 19 Aug 2025 19:12:10 +0100 Conor Dooley <[email protected]> wrote:
Quoted 1 line · Frank Li

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.

Quoted 5 lines

With an accurate commit message,

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.

Quoted 27 lines
Quoted 27 lines

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#

---
 Documentation/devicetree/bindings/iio/adc/maxim,max1238.yaml | 3 +++
 1 file changed, 3 insertions(+)
Documentation/devicetree/bindings/iio/adc/maxim,max1238.yaml +3 -0
index 60d7b34e3286f..ae3c89393f1a3 100644
@@ -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
Signature · 1 line
2.34.1