Skip to contentSkip to conversation

dt-bindings: hwmon: Add lm75 documentation

PATCH Superseded Jagan Teki 2 participants 2 messages Jan 29, 2019 – Jan 31, 2019

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Jagan Teki

author
#0 lore raw

PATCH 1/1 dt-bindings: hwmon: Add lm75 documentation

Add dt-binding documentation for lm75 hwmon sensor.

Currently documented for national,lm75 and st,stlm75 and rest might add when required.

---
 Documentation/devicetree/bindings/hwmon/lm75.txt | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/hwmon/lm75.txt
Documentation/devicetree/bindings/hwmon/lm75.txt new file +15 -0
new file mode 100644
index 000000000000..e384a3765f10
@@ -0,0 +1,15 @@
+*LM75 hwmon sensor.
+
+Required properties:
+- compatible: one of
+	"national,lm75"
+	"st,stlm75"
+
+- reg: I2C address
+
+Example:
+
+sensor@48 {
+	compatible = "st,stlm75";
+	reg = <0x48>;
+};
Signature · 1 line
2.18.0.321.gffc6fa0e3
maintainer
#1 lore raw
Quoted 4 lines · Jagan Teki

Add dt-binding documentation for lm75 hwmon sensor.

Currently documented for national,lm75 and st,stlm75 and rest might add when required.

Why ? The various properties are already implemented in the driver. I don't see the value documenting only two of them.

I do see though that nxp,lm75, and nxp,lm75a are used but _not_ referenced in the driver.

If we start cleaning that up I think it would make more sense to clean up everything, not just part of it.

Thanks,
Guenter

Quoted 28 lines
---
 Documentation/devicetree/bindings/hwmon/lm75.txt | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/hwmon/lm75.txt
Documentation/devicetree/bindings/hwmon/lm75.txt new file +15 -0
new file mode 100644
index 000000000000..e384a3765f10
@@ -0,0 +1,15 @@
+*LM75 hwmon sensor.
+
+Required properties:
+- compatible: one of
+	"national,lm75"
+	"st,stlm75"
+
+- reg: I2C address
+
+Example:
+
+sensor@48 {
+	compatible = "st,stlm75";
+	reg = <0x48>;
+};