All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] ARM: dts: aspeed: tyan-s7106: Update nct7802 config
@ 2021-11-05  0:59 ` Oskar Senft
  0 siblings, 0 replies; 14+ messages in thread
From: Oskar Senft @ 2021-11-05  0:59 UTC (permalink / raw)
  To: linux-arm-kernel, linux-aspeed, linux-kernel
  Cc: Rob Herring, Joel Stanley, Andrew Jeffery, Oskar Senft

This change updates the configuration for the nct7802 hardware
monitor to correctly configure its temperature sensors.

Signed-off-by: Oskar Senft <osk@google.com>
---
Changes from PATCH v1:
- Removed superfluous "status" from channels.
---
 arch/arm/boot/dts/aspeed-bmc-tyan-s7106.dts | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/arch/arm/boot/dts/aspeed-bmc-tyan-s7106.dts b/arch/arm/boot/dts/aspeed-bmc-tyan-s7106.dts
index 68f332ee1886..66734e4e2ea1 100644
--- a/arch/arm/boot/dts/aspeed-bmc-tyan-s7106.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-tyan-s7106.dts
@@ -213,6 +213,25 @@ &i2c0 {
 	nct7802@28 {
 		compatible = "nuvoton,nct7802";
 		reg = <0x28>;
+		channel@0 { /* LTD */
+			reg = <0>;
+		};
+		channel@1 { /* RTD1 */
+			reg = <1>;
+			sensor-type = "temperature";
+			temperature-mode = "thermistor";
+		};
+
+		channel@2 { /* RTD2 */
+			reg = <2>;
+			sensor-type = "temperature";
+			temperature-mode = "thermistor";
+		};
+
+		channel@3 { /* RTD3 */
+			reg = <3>;
+			sensor-type = "temperature";
+		};
 	};
 
 	/* Also connected to:
-- 
2.34.0.rc0.344.g81b53c2807-goog


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

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

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-05  0:59 [PATCH v2] ARM: dts: aspeed: tyan-s7106: Update nct7802 config Oskar Senft
2021-11-05  0:59 ` Oskar Senft
2021-11-05  1:40 ` Joel Stanley
2021-11-05  1:40   ` Joel Stanley
2021-11-05  1:46   ` Oskar Senft
2021-11-05  1:46     ` Oskar Senft
2021-11-05  1:55     ` Oskar Senft
2021-11-05  1:55       ` Oskar Senft
2021-11-05  1:58     ` Joel Stanley
2021-11-05  1:58       ` Joel Stanley
2021-11-05  3:28       ` Oskar Senft
2021-11-05  3:28         ` Oskar Senft
2021-11-05  4:03         ` Joel Stanley
2021-11-05  4:03           ` 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.