[PATCH v4 4/5] arm64: dts: mediatek: mt8192: Add thermal nodes and thermal zones

Chen-Yu Tsai wenst at chromium.org
Wed May 31 00:45:07 PDT 2023


On Wed, May 31, 2023 at 3:51 AM Bernhard Rosenkränzer <bero at baylibre.com> wrote:
>
> From: Balsam CHIHI <bchihi at baylibre.com>
>
> Add thermal nodes and thermal zones for the mt8192.
> The mt8192 SoC has several hotspots around the CPUs.
> Specify the targeted temperature threshold to apply the mitigation
> and define the associated cooling devices.
>
> Signed-off-by: Balsam CHIHI <bchihi at baylibre.com>
> Reviewed-by: Nícolas F. R. A. Prado <nfraprado at collabora.com>
> [bero at baylibre.com: cosmetic changes, reduce lvts_ap size]
> Signed-off-by: Bernhard Rosenkränzer <bero at baylibre.com>
> ---
>  arch/arm64/boot/dts/mediatek/mt8192.dtsi | 454 +++++++++++++++++++++++
>  1 file changed, 454 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi
> index 65bc8b4046211..82d6629e38c26 100644
> --- a/arch/arm64/boot/dts/mediatek/mt8192.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt8192.dtsi
> @@ -14,6 +14,8 @@
>  #include <dt-bindings/phy/phy.h>
>  #include <dt-bindings/power/mt8192-power.h>
>  #include <dt-bindings/reset/mt8192-resets.h>
> +#include <dt-bindings/thermal/thermal.h>
> +#include <dt-bindings/thermal/mediatek,lvts-thermal.h>
>
>  / {
>         compatible = "mediatek,mt8192";
> @@ -71,6 +73,7 @@ cpu0: cpu at 0 {
>                         d-cache-sets = <128>;
>                         next-level-cache = <&l2_0>;
>                         capacity-dmips-mhz = <530>;
> +                       #cooling-cells = <2>;

FYI these changes (for all the CPU cores) will conflict with the cpufreq
patch that Matthias just merged.

ChenYu



More information about the linux-arm-kernel mailing list