From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
To: "Bernhard Rosenkränzer" <bero@baylibre.com>,
daniel.lezcano@linaro.org, rafael@kernel.org, amitk@kernel.org,
rui.zhang@intel.com, matthias.bgg@gmail.com, robh+dt@kernel.org,
krzysztof.kozlowski+dt@linaro.org, rdunlap@infradead.org,
ye.xingchen@zte.com.cn, p.zabel@pengutronix.de
Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org,
wenst@chromium.org, james.lo@mediatek.com,
rex-bc.chen@mediatek.com, nfraprado@collabora.com,
abailon@baylibre.com, amergnat@baylibre.com,
khilman@baylibre.com
Subject: Re: [PATCH v3 4/5] arm64: dts: mediatek: mt8192: Add thermal nodes and thermal zones
Date: Tue, 30 May 2023 08:59:37 +0200 [thread overview]
Message-ID: <d50e3c7e-0900-7cb5-f6cc-ddc1f474ff33@collabora.com> (raw)
In-Reply-To: <20230529164605.3552619-5-bero@baylibre.com>
Il 29/05/23 18:46, Bernhard Rosenkränzer ha scritto:
> From: Balsam CHIHI <bchihi@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@baylibre.com>
> Reviewed-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
> [bero@baylibre.com: cosmetic changes]
> Signed-off-by: Bernhard Rosenkränzer <bero@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 5c30caf740265..330c5bb4ebc85 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@0 {
> d-cache-sets = <128>;
> next-level-cache = <&l2_0>;
> capacity-dmips-mhz = <530>;
> + #cooling-cells = <2>;
> };
>
> cpu1: cpu@100 {
> @@ -88,6 +91,7 @@ cpu1: cpu@100 {
> d-cache-sets = <128>;
> next-level-cache = <&l2_0>;
> capacity-dmips-mhz = <530>;
> + #cooling-cells = <2>;
> };
>
> cpu2: cpu@200 {
> @@ -105,6 +109,7 @@ cpu2: cpu@200 {
> d-cache-sets = <128>;
> next-level-cache = <&l2_0>;
> capacity-dmips-mhz = <530>;
> + #cooling-cells = <2>;
> };
>
> cpu3: cpu@300 {
> @@ -122,6 +127,7 @@ cpu3: cpu@300 {
> d-cache-sets = <128>;
> next-level-cache = <&l2_0>;
> capacity-dmips-mhz = <530>;
> + #cooling-cells = <2>;
> };
>
> cpu4: cpu@400 {
> @@ -139,6 +145,7 @@ cpu4: cpu@400 {
> d-cache-sets = <256>;
> next-level-cache = <&l2_1>;
> capacity-dmips-mhz = <1024>;
> + #cooling-cells = <2>;
> };
>
> cpu5: cpu@500 {
> @@ -156,6 +163,7 @@ cpu5: cpu@500 {
> d-cache-sets = <256>;
> next-level-cache = <&l2_1>;
> capacity-dmips-mhz = <1024>;
> + #cooling-cells = <2>;
> };
>
> cpu6: cpu@600 {
> @@ -173,6 +181,7 @@ cpu6: cpu@600 {
> d-cache-sets = <256>;
> next-level-cache = <&l2_1>;
> capacity-dmips-mhz = <1024>;
> + #cooling-cells = <2>;
> };
>
> cpu7: cpu@700 {
> @@ -190,6 +199,7 @@ cpu7: cpu@700 {
> d-cache-sets = <256>;
> next-level-cache = <&l2_1>;
> capacity-dmips-mhz = <1024>;
> + #cooling-cells = <2>;
> };
>
> cpu-map {
> @@ -771,6 +781,17 @@ spi0: spi@1100a000 {
> status = "disabled";
> };
>
> + lvts_ap: thermal-sensor@1100b000 {
> + compatible = "mediatek,mt8192-lvts-ap";
> + reg = <0 0x1100b000 0 0x1000>;
reg = <0 0x1100b000 0 0xc00>;
...as 0xc00 should be more than sufficient. This is important for later
when we'll get SVS support up (which is in the LVTS-AP iospace range).
Regards,
Angelo
next prev parent reply other threads:[~2023-05-30 6:59 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-29 16:46 [PATCH v3 0/5] Add LVTS support for mt8192 Bernhard Rosenkränzer
2023-05-29 16:46 ` [PATCH v3 1/5] dt-bindings: thermal: mediatek: Add LVTS thermal controller definition " Bernhard Rosenkränzer
2023-05-30 7:02 ` Matthias Brugger
2023-05-29 16:46 ` [PATCH v3 2/5] thermal/drivers/mediatek/lvts_thermal: Add suspend and resume Bernhard Rosenkränzer
2023-05-30 7:09 ` Matthias Brugger
2023-05-29 16:46 ` [PATCH v3 3/5] thermal/drivers/mediatek/lvts_thermal: Add mt8192 support Bernhard Rosenkränzer
2023-05-30 7:12 ` Matthias Brugger
2023-05-29 16:46 ` [PATCH v3 4/5] arm64: dts: mediatek: mt8192: Add thermal nodes and thermal zones Bernhard Rosenkränzer
2023-05-30 6:59 ` AngeloGioacchino Del Regno [this message]
2023-05-29 16:46 ` [PATCH v3 5/5] thermal/drivers/mediatek/lvts_thermal: Update calibration data documentation Bernhard Rosenkränzer
2023-05-30 7:00 ` AngeloGioacchino Del Regno
-- strict thread matches above, loose matches on Subject: below --
2023-05-29 15:35 [PATCH v3 0/5] Bernhard Rosenkränzer
2023-05-29 15:35 ` [PATCH v3 4/5] arm64: dts: mediatek: mt8192: Add thermal nodes and thermal zones Bernhard Rosenkränzer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d50e3c7e-0900-7cb5-f6cc-ddc1f474ff33@collabora.com \
--to=angelogioacchino.delregno@collabora.com \
--cc=abailon@baylibre.com \
--cc=amergnat@baylibre.com \
--cc=amitk@kernel.org \
--cc=bero@baylibre.com \
--cc=daniel.lezcano@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=james.lo@mediatek.com \
--cc=khilman@baylibre.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-pm@vger.kernel.org \
--cc=matthias.bgg@gmail.com \
--cc=nfraprado@collabora.com \
--cc=p.zabel@pengutronix.de \
--cc=rafael@kernel.org \
--cc=rdunlap@infradead.org \
--cc=rex-bc.chen@mediatek.com \
--cc=robh+dt@kernel.org \
--cc=rui.zhang@intel.com \
--cc=wenst@chromium.org \
--cc=ye.xingchen@zte.com.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®