summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@amd.com>2023-12-20 14:12:13 +0100
committerGuenter Roeck <linux@roeck-us.net>2024-02-11 13:43:08 -0800
commiteea32fafadd3e648537e2653a2e2291431c990ff (patch)
tree7d8ff270a1fababf6526db4f4ccb61c284f0b2b5 /Documentation
parent7fce84a991cdc1b28e03d14c997ec65187df6da5 (diff)
dt-bindings: hwmon: ina2xx: Add label property
Add a label property to allow a custom name to be used for identifying a device on the board. This is useful when multiple devices are present on the same board. Similar change was done by commit ffae65fb1ae4 ("dt-bindings: spi: spi-cadence: Add label property"). Signed-off-by: Michal Simek <michal.simek@amd.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/6f3c57d08984c1978569d3918cb38eb295c0c67d.1703077926.git.michal.simek@amd.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'Documentation')
-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 378d1f6aeeb3..8e5c1935b5f4 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
+ label:
+ description: A descriptive name for this device.
+
shunt-resistor:
description:
Shunt resistor value in micro-Ohm.
@@ -77,6 +80,7 @@ examples:
power-sensor@44 {
compatible = "ti,ina220";
reg = <0x44>;
+ label = "vdd_3v0";
shunt-resistor = <1000>;
vs-supply = <&vdd_3v0>;
};