diff options
| author | Pali Rohár <pali@kernel.org> | 2022-09-30 14:39:01 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-12-31 13:26:34 +0100 |
| commit | 064ac55f640a30c7f6eb9b0ad9d7f8b247d3c5c9 (patch) | |
| tree | af71ead81e06571303ef65e1558d3e15b5efb6e7 /arch | |
| parent | f20a067f13106565816b4b6a6b665b2088a63824 (diff) | |
| download | linux-064ac55f640a30c7f6eb9b0ad9d7f8b247d3c5c9.tar.gz linux-064ac55f640a30c7f6eb9b0ad9d7f8b247d3c5c9.tar.bz2 linux-064ac55f640a30c7f6eb9b0ad9d7f8b247d3c5c9.zip | |
powerpc: dts: turris1x.dts: Add channel labels for temperature sensor
[ Upstream commit 67bbb62f61e810734da0a1577a9802ddaed24140 ]
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
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/powerpc/boot/dts/turris1x.dts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/powerpc/boot/dts/turris1x.dts b/arch/powerpc/boot/dts/turris1x.dts index 045af668e928..e9cda34a140e 100644 --- a/arch/powerpc/boot/dts/turris1x.dts +++ b/arch/powerpc/boot/dts/turris1x.dts @@ -69,6 +69,20 @@ 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 */ |
