lkml.org 
[lkml]   [2022]   [Aug]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v3 08/19] dt-bindings: hwmon: (mr75203) add "moortec,vm-active-channels" property
Date
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>
---
V3 -> V2:
- Add "moortec" prefix to property name.
- Add explanation why this change is needed.

.../devicetree/bindings/hwmon/moortec,mr75203.yaml | 11 +++++++++++
1 file changed, 11 insertions(+)

diff --git a/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml b/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml
index 2ec4b9da4b92..69cc6caceb2c 100644
--- a/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml
+++ b/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml
@@ -44,6 +44,16 @@ properties:
"#thermal-sensor-cells":
const: 1

+ moortec,vm-active-channels:
+ description:
+ moortec,vm-active-channels defines the number of channels per VM that are
+ actually used and are connected to some source.
+ Number of values in the array should be the number of VMs.
+ A value of 0 means that the entire VM sensor is nou used.
+ maximum: 16
+ default: 16
+ $ref: /schemas/types.yaml#definitions/uint8-array
+
required:
- compatible
- reg
@@ -65,5 +75,6 @@ examples:
intel,vm-map = [03 01 04 ff ff];
clocks = <&osc0>;
resets = <&rcu0 0x40 7>;
+ moortec,vm-active-channels = <0x10 0x05>;
#thermal-sensor-cells = <1>;
};
--
2.37.1
\
 
 \ /
  Last update: 2022-08-30 21:23    [W:1.173 / U:0.660 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site