Skip to contentSkip to conversation

hwmon: (w83773g) Add documentation

PATCH In review Lei YU 2 participants 3 messages Nov 2, 2017

Subsystems (4)
lore
Share & tools
lore

Lei YU

author
#0 lore raw

PATCH 2/3 hwmon: (w83773g) Add documentation

Add documentation for the w83773g driver.

---
 Documentation/hwmon/w83773g | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 Documentation/hwmon/w83773g
Documentation/hwmon/w83773g new file +28 -0
new file mode 100644
index 0000000..da28731
@@ -0,0 +1,28 @@
+Kernel driver w83773g
+====================
+
+Supported chips:
+  * Nuvoton W83773G
+    Prefix: 'w83773g'
+    Addresses scanned: I2C 0x4c and 0x4d
+    Datasheet: https://www.nuvoton.com/resource-files/W83773G_SG_DatasheetV1_2.pdf
+
+Authors:
+	Lei YU <[email protected]>
+
+Description
+-----------
+
+This driver implements support for Nuvoton W83773G temperature sensor
+chip. This chip implements one local and two remote sensors.
+Temperature is measured in degrees Celsius.
+The chip is wired over I2C/SMBus and specified over a temperature
+range of -40 to +125 degrees Celsius (for local sensor) and -40 to +127
+degrees Celsius (for remote sensors).
+Resolution for both the local and remote channels is 0.125 degree C.
+
+The chip supports only temperature measurement. The driver exports
+the temperature values via the following sysfs files:
+
+temp[1-3]_input
+temp[2-3]_fault
Signature · 1 line
1.9.1
author
#1 lore raw

PATCH 3/3 ARM: aspeed: romulus: Add w83773g temp sensor

---
 arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts +4 -1
index 86f7927..eb0994e 100644
@@ -255,8 +255,11 @@
 	/* CPLD */
 	/* Power Supply */
 	/* Temp Sensor */
-	/* Temp Sensor */
 
+	w83773g@4c {
+		compatible = "nuvoton,w83773g";
+		reg = <0x4c>;
+	};
 };
 
 &i2c13 {
Signature · 1 line
1.9.1