Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: iio: afe: current-sense-amplifier: Add io-channel-cells

The current-sense-amplifier is an IIO provider thus can be referenced by
IIO consumers (via "io-channels" property in consumer device node). Such
provider is required to describe number of cells used in phandle lookup
with "io-channel-cells" property.

Signed-off-by: Primoz Fiser <primoz.fiser@norik.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20250905065503.3022107-1-primoz.fiser@norik.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Primoz Fiser and committed by
Jonathan Cameron
b947d4ed f29b08cd

+4
+4
Documentation/devicetree/bindings/iio/afe/current-sense-amplifier.yaml
··· 24 24 description: | 25 25 Channel node of a voltage io-channel. 26 26 27 + "#io-channel-cells": 28 + const: 0 29 + 27 30 sense-resistor-micro-ohms: 28 31 description: The sense resistance. 29 32 ··· 49 46 - | 50 47 sysi { 51 48 compatible = "current-sense-amplifier"; 49 + #io-channel-cells = <0>; 52 50 io-channels = <&tiadc 0>; 53 51 54 52 sense-resistor-micro-ohms = <20000>;