aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/hwmon
diff options
context:
space:
mode:
authorEliav Farber <farbere@amazon.com>2022-09-08 15:24:39 +0000
committerGuenter Roeck <linux@roeck-us.net>2022-09-19 06:17:06 -0700
commit09288b8fe1bd0d5336be4aa5d2eb3ba9ec76cca7 (patch)
tree7087addd01161f42f1d883a7799cb79ffada4fb6 /Documentation/devicetree/bindings/hwmon
parentdt-bindings: vendor-prefixes: add vendor prefix for Moortec (diff)
downloadlinux-dev-09288b8fe1bd0d5336be4aa5d2eb3ba9ec76cca7.tar.xz
linux-dev-09288b8fe1bd0d5336be4aa5d2eb3ba9ec76cca7.zip
dt-bindings: hwmon: (mr75203) add "moortec,vm-active-channels" property
Add optional "moortec,vm-active-channels" property to define the number of active channels per VM. This shall be useful to avoid exposing sysfs for reading inputs that are not connected to any voltage source. Signed-off-by: Eliav Farber <farbere@amazon.com> Reviewed-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20220908152449.35457-12-farbere@amazon.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'Documentation/devicetree/bindings/hwmon')
-rw-r--r--Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml10
1 files changed, 10 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml b/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml
index 9454576ebb73..5d4bf0edea5c 100644
--- a/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml
+++ b/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml
@@ -70,6 +70,15 @@ properties:
"#thermal-sensor-cells":
const: 1
+ moortec,vm-active-channels:
+ description:
+ Defines the number of channels per VM that are actually used and are
+ connected to some input source.
+ Maximum number of items - number of VMs.
+ Maximum value of each item - number of channels.
+ Minimum value of each item - 0 (which means entire VM sensor is not used).
+ $ref: /schemas/types.yaml#/definitions/uint8-array
+
required:
- compatible
- reg
@@ -91,5 +100,6 @@ examples:
intel,vm-map = [03 01 04 ff ff];
clocks = <&osc0>;
resets = <&rcu0 0x40 7>;
+ moortec,vm-active-channels = /bits/ 8 <0x10 0x05>;
#thermal-sensor-cells = <1>;
};