| From 795563b50b0b0b00175a1a481f552db97472db81 Mon Sep 17 00:00:00 2001 |
| From: mtk15698 <michael.kao@mediatek.com> |
| Date: Thu, 20 Aug 2020 16:53:10 +0800 |
| Subject: [PATCH] CHROMIUM: arm64: dts: mt8192: add thermal zone node |
| |
| BUG=b:153618847 |
| BUG=b:170692160 |
| TEST=build and boot asurada |
| |
| Signed-off-by: mtk15698 <michael.kao@mediatek.com> |
| Change-Id: I7bfed286e95eada63ed1c658b3d59176f415bc59 |
| Signed-off-by: Yidi Lin <yidi.lin@mediatek.com> |
| Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/2351733 |
| Commit-Queue: Nicolas Boichat <drinkcat@chromium.org> |
| Tested-by: Nicolas Boichat <drinkcat@chromium.org> |
| Reviewed-by: Hsin-Yi Wang <hsinyi@chromium.org> |
| (cherry picked from commit 335379490146785e681de7d9b413acc5b0a6b8b3) |
| |
| Replace infracfg_rst with infracfg reset phandles. |
| |
| BUG=b:153618847, b:170692160, b:287385944 |
| UPSTREAM-TASK=b:170692160 |
| TEST=Boot on Asurada-kernelnext, soc_max thermal zone should appear |
| |
| Change-Id: I7bfed286e95eada63ed1c658b3d59176f415bc59 |
| Signed-off-by: Chen-Yu Tsai <wenst@chromium.org> |
| Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/4666450 |
| Reviewed-by: Fei Shao <fshao@chromium.org> |
| --- |
| arch/arm64/boot/dts/mediatek/mt8192.dtsi | 112 +++++++++++++++++++++++ |
| 1 file changed, 112 insertions(+) |
| |
| diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi |
| index df3abc043f8f6846bab9a63942395877cb3bea15..a73e3d9de05c5e0cea22e93643a30f81bb98d589 100644 |
| --- a/arch/arm64/boot/dts/mediatek/mt8192.dtsi |
| +++ b/arch/arm64/boot/dts/mediatek/mt8192.dtsi |
| @@ -809,6 +809,20 @@ lvts_ap: thermal-sensor@1100b000 { |
| #thermal-sensor-cells = <1>; |
| }; |
| |
| + lvts: lvts@1100b000 { |
| + compatible = "mediatek,mt6873-lvts"; |
| + #thermal-sensor-cells = <1>; |
| + reg = <0 0x1100b000 0 0x1000>, <0 0x11278000 0 0x1000>; |
| + interrupts = <GIC_SPI 169 IRQ_TYPE_LEVEL_HIGH 0>, |
| + <GIC_SPI 170 IRQ_TYPE_LEVEL_HIGH 0>; |
| + clocks = <&infracfg CLK_INFRA_THERM>; |
| + clock-names = "lvts_clk"; |
| + resets = <&infracfg MT8192_INFRA_RST0_THERM_CTRL_SWRST>, |
| + <&infracfg MT8192_INFRA_RST4_THERM_CTRL_MCU_SWRST>; |
| + nvmem-cells = <&lvts_e_data1>; |
| + nvmem-cell-names = "e_data1"; |
| + }; |
| + |
| svs: svs@1100bc00 { |
| compatible = "mediatek,mt8192-svs"; |
| reg = <0 0x1100bc00 0 0x400>; |
| @@ -1958,6 +1972,104 @@ larb2: larb@1f002000 { |
| }; |
| |
| thermal_zones: thermal-zones { |
| + soc_max { |
| + polling-delay = <1000>; /* milliseconds */ |
| + polling-delay-passive = <1000>; /* milliseconds */ |
| + thermal-sensors = <&lvts 0>; |
| + |
| + trips { |
| + soc_max_crit: soc_max_crit@0 { |
| + temperature = <115000>; |
| + hysteresis = <2000>; |
| + type = "critical"; |
| + }; |
| + }; |
| + }; |
| + cpu_big1 { |
| + polling-delay = <0>; /* milliseconds */ |
| + polling-delay-passive = <0>; /* milliseconds */ |
| + thermal-sensors = <&lvts 1>; |
| + }; |
| + cpu_big2 { |
| + polling-delay = <0>; /* milliseconds */ |
| + polling-delay-passive = <0>; /* milliseconds */ |
| + thermal-sensors = <&lvts 2>; |
| + }; |
| + cpu_big3 { |
| + polling-delay = <0>; /* milliseconds */ |
| + polling-delay-passive = <0>; /* milliseconds */ |
| + thermal-sensors = <&lvts 3>; |
| + }; |
| + cpu_big4 { |
| + polling-delay = <0>; /* milliseconds */ |
| + polling-delay-passive = <0>; /* milliseconds */ |
| + thermal-sensors = <&lvts 4>; |
| + }; |
| + cci1 { |
| + polling-delay = <0>; /* milliseconds */ |
| + polling-delay-passive = <0>; /* milliseconds */ |
| + thermal-sensors = <&lvts 5>; |
| + }; |
| + cci2 { |
| + polling-delay = <0>; /* milliseconds */ |
| + polling-delay-passive = <0>; /* milliseconds */ |
| + thermal-sensors = <&lvts 6>; |
| + }; |
| + cpu_little1 { |
| + polling-delay = <0>; /* milliseconds */ |
| + polling-delay-passive = <0>; /* milliseconds */ |
| + thermal-sensors = <&lvts 7>; |
| + }; |
| + cpu_little2 { |
| + polling-delay = <0>; /* milliseconds */ |
| + polling-delay-passive = <0>; /* milliseconds */ |
| + thermal-sensors = <&lvts 8>; |
| + }; |
| + apu { |
| + polling-delay = <0>; /* milliseconds */ |
| + polling-delay-passive = <0>; /* milliseconds */ |
| + thermal-sensors = <&lvts 9>; |
| + }; |
| + mlda { |
| + polling-delay = <0>; /* milliseconds */ |
| + polling-delay-passive = <0>; /* milliseconds */ |
| + thermal-sensors = <&lvts 10>; |
| + }; |
| + gpu1 { |
| + polling-delay = <0>; /* milliseconds */ |
| + polling-delay-passive = <0>; /* milliseconds */ |
| + thermal-sensors = <&lvts 11>; |
| + }; |
| + gpu2 { |
| + polling-delay = <0>; /* milliseconds */ |
| + polling-delay-passive = <0>; /* milliseconds */ |
| + thermal-sensors = <&lvts 12>; |
| + }; |
| + infra { |
| + polling-delay = <0>; /* milliseconds */ |
| + polling-delay-passive = <0>; /* milliseconds */ |
| + thermal-sensors = <&lvts 13>; |
| + }; |
| + camsys { |
| + polling-delay = <0>; /* milliseconds */ |
| + polling-delay-passive = <0>; /* milliseconds */ |
| + thermal-sensors = <&lvts 14>; |
| + }; |
| + md1 { |
| + polling-delay = <0>; /* milliseconds */ |
| + polling-delay-passive = <0>; /* milliseconds */ |
| + thermal-sensors = <&lvts 15>; |
| + }; |
| + md2{ |
| + polling-delay = <0>; /* milliseconds */ |
| + polling-delay-passive = <0>; /* milliseconds */ |
| + thermal-sensors = <&lvts 16>; |
| + }; |
| + md3 { |
| + polling-delay = <0>; /* milliseconds */ |
| + polling-delay-passive = <0>; /* milliseconds */ |
| + thermal-sensors = <&lvts 17>; |
| + }; |
| cpu0-thermal { |
| polling-delay = <1000>; |
| polling-delay-passive = <250>; |
| -- |
| 2.44.0.rc0.258.g7320e95886-goog |
| |