aboutsummaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/hwmon
diff options
context:
space:
mode:
authorGravatar Michal Simek <michal.simek@amd.com> 2023-12-20 14:12:14 +0100
committerGravatar Guenter Roeck <linux@roeck-us.net> 2024-02-11 13:43:08 -0800
commitf29996d0295ec581d1e7cf5e72894656dc7f9f57 (patch)
treed55b668cbafaed19b5f489e8906bb9b78c5b4534 /Documentation/devicetree/bindings/hwmon
parentdt-bindings: hwmon: ina2xx: Add label property (diff)
downloadlinux-f29996d0295ec581d1e7cf5e72894656dc7f9f57.tar.gz
linux-f29996d0295ec581d1e7cf5e72894656dc7f9f57.tar.bz2
linux-f29996d0295ec581d1e7cf5e72894656dc7f9f57.zip
dt-bindings: hwmon: ina2xx: Describe #io-channel-cells property
There are two drivers in the Linux kernel. One is hwmon based and second IIO. IIO version requires to define #io-channel-cells to operate. Signed-off-by: Michal Simek <michal.simek@amd.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/aa303b9fe3116e7f98d6b72822f7f57694366db3.1703077926.git.michal.simek@amd.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'Documentation/devicetree/bindings/hwmon')
-rw-r--r--Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml4
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml b/Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml
index 8e5c1935b5f4..f324b627bf9c 100644
--- a/Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml
+++ b/Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml
@@ -32,6 +32,9 @@ properties:
reg:
maxItems: 1
+ "#io-channel-cells":
+ const: 1
+
label:
description: A descriptive name for this device.
@@ -80,6 +83,7 @@ examples:
power-sensor@44 {
compatible = "ti,ina220";
reg = <0x44>;
+ #io-channel-cells = <1>;
label = "vdd_3v0";
shunt-resistor = <1000>;
vs-supply = <&vdd_3v0>;