dt-bindings: iio: io-channel-mux: add optional #io-channel-cells
authorPeter Rosin <peda@axentia.se>
Fri, 8 Oct 2021 22:11:21 +0000 (00:11 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 21 Oct 2021 19:03:01 +0000 (20:03 +0100)
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>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Documentation/devicetree/bindings/iio/multiplexer/io-channel-mux.yaml

index 5a73280..80b6229 100644 (file)
@@ -44,6 +44,9 @@ properties:
     description:
       Time required for analog signals to settle after muxing.
 
+  "#io-channel-cells":
+    const: 1
+
 required:
   - compatible
   - io-channels