diff mbox series

[4/3] dt-bindings: iio: io-channel-mux: add optional #io-channel-cells

Message ID 43e22ba4-0619-49bc-8062-b561cf19ca23@axentia.se
State Not Applicable, archived
Headers show
Series Add settle time support to iio-mux | expand

Checks

Context Check Description
robh/checkpatch warning total: 0 errors, 1 warnings, 9 lines checked

Commit Message

Peter Rosin Oct. 8, 2021, 10:11 p.m. UTC
Needed for in-kernel use of the child channels of the mux.

Fixes problems like this, reported by dtbs_check:
adc0mux: '#io-channel-cells' does not match any of the regexes: 'pinctrl-[0-9]+'
	arch/arm/boot/dts/aspeed-bmc-ampere-mtjade.dt.yaml

Suggested-by: Vincent Whitchurch <vincent.whitchurch@axis.com>
Signed-off-by: Peter Rosin <peda@axentia.se>
---
 .../devicetree/bindings/iio/multiplexer/io-channel-mux.yaml    | 3 +++
 1 file changed, 3 insertions(+)

Comments

Rob Herring Oct. 19, 2021, 9:25 p.m. UTC | #1
On Sat, 09 Oct 2021 00:11:21 +0200, Peter Rosin wrote:
> Needed for in-kernel use of the child channels of the mux.
> 
> Fixes problems like this, reported by dtbs_check:
> adc0mux: '#io-channel-cells' does not match any of the regexes: 'pinctrl-[0-9]+'
> 	arch/arm/boot/dts/aspeed-bmc-ampere-mtjade.dt.yaml
> 
> Suggested-by: Vincent Whitchurch <vincent.whitchurch@axis.com>
> Signed-off-by: Peter Rosin <peda@axentia.se>
> ---
>  .../devicetree/bindings/iio/multiplexer/io-channel-mux.yaml    | 3 +++
>  1 file changed, 3 insertions(+)
> 

Acked-by: Rob Herring <robh@kernel.org>
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/iio/multiplexer/io-channel-mux.yaml b/Documentation/devicetree/bindings/iio/multiplexer/io-channel-mux.yaml
index 5a7328042c76..80b6229a6fad 100644
--- a/Documentation/devicetree/bindings/iio/multiplexer/io-channel-mux.yaml
+++ b/Documentation/devicetree/bindings/iio/multiplexer/io-channel-mux.yaml
@@ -44,6 +44,9 @@  properties:
     description:
       Time required for analog signals to settle after muxing.
 
+  "#io-channel-cells":
+    const: 1
+
 required:
   - compatible
   - io-channels