aboutsummaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/hwmon
diff options
context:
space:
mode:
authorGravatar Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> 2024-02-24 11:14:50 +0100
committerGravatar Guenter Roeck <linux@roeck-us.net> 2024-02-25 12:37:46 -0800
commitd590900b62f0a502931b331f2e7a1748580f403f (patch)
tree93110f1d7fa04e9bea7e7bfd390a56d9ca4a6670 /Documentation/devicetree/bindings/hwmon
parenthwmon: (pmbus/ir38064) Use PMBUS_REGULATOR_ONE to declare regulator (diff)
downloadlinux-d590900b62f0a502931b331f2e7a1748580f403f.tar.gz
linux-d590900b62f0a502931b331f2e7a1748580f403f.tar.bz2
linux-d590900b62f0a502931b331f2e7a1748580f403f.zip
dt-bindings: hwmon: add common properties
Add a common hwmon schema for two properties: 1. "label", because Linux hwmon core code parses it. 2. "shunt-resistor-micro-ohms", because several devices already use it. Acked-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20240224-dt-bindings-hwmon-common-v2-1-b446eecf5480@linaro.org Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'Documentation/devicetree/bindings/hwmon')
-rw-r--r--Documentation/devicetree/bindings/hwmon/hwmon-common.yaml19
1 files changed, 19 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/hwmon/hwmon-common.yaml b/Documentation/devicetree/bindings/hwmon/hwmon-common.yaml
new file mode 100644
index 000000000000..dc86b5c72cf2
--- /dev/null
+++ b/Documentation/devicetree/bindings/hwmon/hwmon-common.yaml
@@ -0,0 +1,19 @@
+# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/hwmon/hwmon-common.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Hardware Monitoring Devices Common Properties
+
+maintainers:
+ - Guenter Roeck <linux@roeck-us.net>
+
+properties:
+ label:
+ description: A descriptive name for this device.
+
+ shunt-resistor-micro-ohms:
+ description: The value of current sense resistor.
+
+additionalProperties: true