powerpc: dts: turris1x.dts: Add channel labels for temperature sensor
authorPali Rohár <pali@kernel.org>
Fri, 30 Sep 2022 12:39:01 +0000 (14:39 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 30 Nov 2022 10:46:48 +0000 (21:46 +1100)
Channel 0 of SA56004ED chip refers to internal SA56004ED chip sensor (chip
itself is located on the board) and channel 1 of SA56004ED chip refers to
external sensor which is connected to temperature diode of the P2020 CPU.

Fixes: 54c15ec3b738 ("powerpc: dts: Add DTS file for CZ.NIC Turris 1.x routers")
Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Marek Behún <kabel@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220930123901.10251-1-pali@kernel.org
arch/powerpc/boot/dts/turris1x.dts

index 045af668e92847844c2431ef6532da430289adcf..e9cda34a140e0fb282b02f22d1b3b81d4d5376f1 100644 (file)
                                interrupt-parent = <&gpio>;
                                interrupts = <12 IRQ_TYPE_LEVEL_LOW>, /* GPIO12 - ALERT pin */
                                             <13 IRQ_TYPE_LEVEL_LOW>; /* GPIO13 - CRIT pin */
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+
+                               /* Local temperature sensor (SA56004ED internal) */
+                               channel@0 {
+                                       reg = <0>;
+                                       label = "board";
+                               };
+
+                               /* Remote temperature sensor (D+/D- connected to P2020 CPU Temperature Diode) */
+                               channel@1 {
+                                       reg = <1>;
+                                       label = "cpu";
+                               };
                        };
 
                        /* DDR3 SPD/EEPROM */