archive mirror
 help / color / mirror / Atom feed
* [PATCH v3] dt-bindings: hwmon: adm1272: add analog,temp1-enable binding
@ 2020-07-21  3:48 Chu Lin
  2021-05-04 23:16 ` Chu Lin
  0 siblings, 1 reply; 2+ messages in thread
From: Chu Lin @ 2020-07-21  3:48 UTC (permalink / raw)
  To: linux, robh+dt, jdelvare
  Cc: belgaied, jasonling, linchuyuan, linux-hwmon, linux-kernel, zhongqil

	adm1272 and adm1278 supports temperature sampling. The
current way of enabling it requires the user manually unbind the device
from the driver, flip the temperature sampling control bit and then bind
the device back to the driver. It would be nice if we can control this in a
better way by reading the dt.

	Introducing device tree binding analog,temp1-enable. If the
flag is set, flip the temp1_en control bit on probing.

make dt_binding_check

Signed-off-by: Chu Lin <>
ChangeLog v1->v2:
 - Rename adm1272-adm1278-temp1-en to analog-temperature1-enable

ChangeLog v2->v3:
 - Rename analog-temperature1-enable analog,temp1-enable

 Documentation/devicetree/bindings/hwmon/adm1275.txt | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Documentation/devicetree/bindings/hwmon/adm1275.txt b/Documentation/devicetree/bindings/hwmon/adm1275.txt
index 1ecd03f3da4d..22ca5a321d5c 100644
--- a/Documentation/devicetree/bindings/hwmon/adm1275.txt
+++ b/Documentation/devicetree/bindings/hwmon/adm1275.txt
@@ -15,6 +15,8 @@ Optional properties:
 - shunt-resistor-micro-ohms
 	Shunt resistor value in micro-Ohm
+- analog,temp1-enable
+	Enable temperature sampling. This is supported on adm1272 and adm1278
@@ -22,4 +24,5 @@ adm1272@10 {
 	compatible = "adi,adm1272";
 	reg = <0x10>;
 	shunt-resistor-micro-ohms = <500>;
+	analog,temp1-enable;

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-05-04 23:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-21  3:48 [PATCH v3] dt-bindings: hwmon: adm1272: add analog,temp1-enable binding Chu Lin
2021-05-04 23:16 ` Chu Lin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).