ARM: dts: aspeed: tyan-s7106: Update nct7802 config
authorOskar Senft <osk@google.com>
Fri, 5 Nov 2021 03:29:10 +0000 (23:29 -0400)
committerJoel Stanley <joel@jms.id.au>
Tue, 16 Nov 2021 05:23:17 +0000 (13:23 +0800)
This change updates the configuration for the nct7802 hardware
monitor to correctly configure its temperature sensors.

Signed-off-by: Oskar Senft <osk@google.com>
Link: https://lore.kernel.org/r/20211105032910.446492-1-osk@google.com
Signed-off-by: Joel Stanley <joel@jms.id.au>
arch/arm/boot/dts/aspeed-bmc-tyan-s7106.dts

index 68f332ee1886fc7ccece5399802e394ddcb7b3fe..60ac6d3f03b5609c615955f744e22ef475a0afe3 100644 (file)
        nct7802@28 {
                compatible = "nuvoton,nct7802";
                reg = <0x28>;
+
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               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: