All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH linux dev-4.10 2/3] hwmon: (w83773g) Add documentation
@ 2017-11-02  2:25 Lei YU
  2017-11-02  2:25 ` [PATCH linux dev-4.10 3/3] ARM: aspeed: romulus: Add w83773g temp sensor Lei YU
  0 siblings, 1 reply; 3+ messages in thread
From: Lei YU @ 2017-11-02  2:25 UTC (permalink / raw)
  To: openbmc

Add documentation for the w83773g driver.

Signed-off-by: Lei YU <mine260309@gmail.com>
---
 Documentation/hwmon/w83773g | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 Documentation/hwmon/w83773g

diff --git a/Documentation/hwmon/w83773g b/Documentation/hwmon/w83773g
new file mode 100644
index 0000000..da28731
--- /dev/null
+++ b/Documentation/hwmon/w83773g
@@ -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 <mine260309@gmail.com>
+
+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
-- 
1.9.1

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

* [PATCH linux dev-4.10 3/3] ARM: aspeed: romulus: Add w83773g temp sensor
  2017-11-02  2:25 [PATCH linux dev-4.10 2/3] hwmon: (w83773g) Add documentation Lei YU
@ 2017-11-02  2:25 ` Lei YU
  2017-11-02  3:17   ` Joel Stanley
  0 siblings, 1 reply; 3+ messages in thread
From: Lei YU @ 2017-11-02  2:25 UTC (permalink / raw)
  To: openbmc

Signed-off-by: Lei YU <mine260309@gmail.com>
---
 arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts b/arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts
index 86f7927..eb0994e 100644
--- a/arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts
@@ -255,8 +255,11 @@
 	/* CPLD */
 	/* Power Supply */
 	/* Temp Sensor */
-	/* Temp Sensor */
 
+	w83773g@4c {
+		compatible = "nuvoton,w83773g";
+		reg = <0x4c>;
+	};
 };
 
 &i2c13 {
-- 
1.9.1

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

* Re: [PATCH linux dev-4.10 3/3] ARM: aspeed: romulus: Add w83773g temp sensor
  2017-11-02  2:25 ` [PATCH linux dev-4.10 3/3] ARM: aspeed: romulus: Add w83773g temp sensor Lei YU
@ 2017-11-02  3:17   ` Joel Stanley
  0 siblings, 0 replies; 3+ messages in thread
From: Joel Stanley @ 2017-11-02  3:17 UTC (permalink / raw)
  To: Lei YU; +Cc: OpenBMC Maillist

On Thu, Nov 2, 2017 at 12:55 PM, Lei YU <mine260309@gmail.com> wrote:
> Signed-off-by: Lei YU <mine260309@gmail.com>

Reviewed-by: Joel Stanley <joel@jms.id.au>

When you send v2, you can add my reviewed-by tag to the commit message
for this commit.

Cheers,

Joel

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

end of thread, other threads:[~2017-11-02  3:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-02  2:25 [PATCH linux dev-4.10 2/3] hwmon: (w83773g) Add documentation Lei YU
2017-11-02  2:25 ` [PATCH linux dev-4.10 3/3] ARM: aspeed: romulus: Add w83773g temp sensor Lei YU
2017-11-02  3:17   ` Joel Stanley

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.