[PATCH linux dev-4.10 v2 1/3] dt-bindings: max31785: Add use-stored-presence property

Andrew Jeffery andrew at aj.id.au
Tue Aug 1 13:19:30 AEST 2017


It's a system design decision with regards to managing the default
values of registers such as FAN_CONFIG_1_2. Do not assume the hardware
is configured such as the fans are marked as installed, rather expose a
devicetree property to inform the driver of whether it should treat the
devicetree or the device state as canonical.

Signed-off-by: Andrew Jeffery <andrew at aj.id.au>
---
 Documentation/devicetree/bindings/hwmon/pmbus/max31785.txt | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Documentation/devicetree/bindings/hwmon/pmbus/max31785.txt b/Documentation/devicetree/bindings/hwmon/pmbus/max31785.txt
index 96e705434a59..7d9fc31a829d 100644
--- a/Documentation/devicetree/bindings/hwmon/pmbus/max31785.txt
+++ b/Documentation/devicetree/bindings/hwmon/pmbus/max31785.txt
@@ -10,6 +10,12 @@ Required properties:
 - #address-cells : Must be 1
 - #size-cells    : Must be 0
 
+Optional properties:
+- use-stored-presence    : Do not treat the devicetree description as canon for
+                           fan presence (the 'installed' bit of FAN_CONFIG_*).
+                           Instead, rely on the on the default value store of
+                           the device to populate it.
+
 Capabilities are configured through subnodes of the controller's node.
 
 Fans
-- 
2.11.0



More information about the openbmc mailing list