Skip to contentSkip to conversation

ARM: dts: aspeed: tyan-s7106: Update nct7802 config

PATCH Applied Oskar Senft 2 participants 2 messages Nov 5, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 ARM: dts: aspeed: tyan-s7106: Update nct7802 config

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

---
Changes from PATCH v2:
- Add missing address-cells, size-cells configuration.
- Add missing new line between channel 0 and 1.

Changes from PATCH v1:
- Removed superfluous "status" from channels.

---
 arch/arm/boot/dts/aspeed-bmc-tyan-s7106.dts | 24 +++++++++++++++++++++
 1 file changed, 24 insertions(+)
arch/arm/boot/dts/aspeed-bmc-tyan-s7106.dts +24 -0
index 68f332ee1886..60ac6d3f03b5 100644
@@ -213,6 +213,30 @@ &i2c0 {
 	nct7802 at 28 {
 		compatible = "nuvoton,nct7802";
 		reg = <0x28>;
+
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		channel at 0 { /* LTD */
+			reg = <0>;
+		};
+
+		channel at 1 { /* RTD1 */
+			reg = <1>;
+			sensor-type = "temperature";
+			temperature-mode = "thermistor";
+		};
+
+		channel at 2 { /* RTD2 */
+			reg = <2>;
+			sensor-type = "temperature";
+			temperature-mode = "thermistor";
+		};
+
+		channel at 3 { /* RTD3 */
+			reg = <3>;
+			sensor-type = "temperature";
+		};
 	};
 
 	/* Also connected to:
Signature · 1 line
2.34.0.rc0.344.g81b53c2807-goog
maintainer Applied
#1 lore raw
Quoted 5 lines · Oskar Senft

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

Thanks, applied.

Quoted 49 lines

---
Changes from PATCH v2:
- Add missing address-cells, size-cells configuration.
- Add missing new line between channel 0 and 1.

Changes from PATCH v1:
- Removed superfluous "status" from channels.

---
 arch/arm/boot/dts/aspeed-bmc-tyan-s7106.dts | 24 +++++++++++++++++++++
 1 file changed, 24 insertions(+)
arch/arm/boot/dts/aspeed-bmc-tyan-s7106.dts +24 -1
index 68f332ee1886..60ac6d3f03b5 100644
@@ -213,6 +213,30 @@ &i2c0 {
        nct7802 at 28 {
                compatible = "nuvoton,nct7802";
                reg = <0x28>;
+
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               channel at 0 { /* LTD */
+                       reg = <0>;
+               };
+
+               channel at 1 { /* RTD1 */
+                       reg = <1>;
+                       sensor-type = "temperature";
+                       temperature-mode = "thermistor";
+               };
+
+               channel at 2 { /* RTD2 */
+                       reg = <2>;
+                       sensor-type = "temperature";
+                       temperature-mode = "thermistor";
+               };
+
+               channel at 3 { /* RTD3 */
+                       reg = <3>;
+                       sensor-type = "temperature";
+               };
        };
 
        /* Also connected to:
--

2.34.0.rc0.344.g81b53c2807-goog