Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc: dts: turris1x.dts: Add channel labels for temperature sensor

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

authored by

Pali Rohár and committed by
Michael Ellerman
67bbb62f d5090716

+14
+14
arch/powerpc/boot/dts/turris1x.dts
··· 69 69 interrupt-parent = <&gpio>; 70 70 interrupts = <12 IRQ_TYPE_LEVEL_LOW>, /* GPIO12 - ALERT pin */ 71 71 <13 IRQ_TYPE_LEVEL_LOW>; /* GPIO13 - CRIT pin */ 72 + #address-cells = <1>; 73 + #size-cells = <0>; 74 + 75 + /* Local temperature sensor (SA56004ED internal) */ 76 + channel@0 { 77 + reg = <0>; 78 + label = "board"; 79 + }; 80 + 81 + /* Remote temperature sensor (D+/D- connected to P2020 CPU Temperature Diode) */ 82 + channel@1 { 83 + reg = <1>; 84 + label = "cpu"; 85 + }; 72 86 }; 73 87 74 88 /* DDR3 SPD/EEPROM */