From: Jon Hunter <jonathanh@nvidia.com>
To: "Rafael J . Wysocki" <rafael@kernel.org>,
Daniel Lezcano <daniel.lezcano@linaro.org>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Thierry Reding <thierry.reding@gmail.com>
Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org,
linux-tegra@vger.kernel.org, Yi-Wei Wang <yiweiw@nvidia.com>
Subject: Re: [PATCH 2/2] arm64: tegra: Add thermal support for Tegra234
Date: Wed, 25 Jan 2023 11:05:50 +0000 [thread overview]
Message-ID: <5e473fcc-0b7f-db19-5a34-f83f77f50a17@nvidia.com> (raw)
In-Reply-To: <20230124115119.21451-2-jonathanh@nvidia.com>
On 24/01/2023 11:51, Jon Hunter wrote:
> From: Yi-Wei Wang <yiweiw@nvidia.com>
>
> Add the BPMP thermal device node and thermal-zones for Tegra234 and
> enable thermal support for the Tegra234 Jetson AGX Orin board.
>
> Signed-off-by: Yi-Wei Wang <yiweiw@nvidia.com>
> Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
> ---
> .../boot/dts/nvidia/tegra234-p3701-0000.dtsi | 276 ++++++++++++++++++
> .../nvidia/tegra234-p3737-0000+p3701-0000.dts | 32 ++
> arch/arm64/boot/dts/nvidia/tegra234.dtsi | 59 ++++
> 3 files changed, 367 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/nvidia/tegra234-p3701-0000.dtsi b/arch/arm64/boot/dts/nvidia/tegra234-p3701-0000.dtsi
> index 2378da324273..7f798742df43 100644
> --- a/arch/arm64/boot/dts/nvidia/tegra234-p3701-0000.dtsi
> +++ b/arch/arm64/boot/dts/nvidia/tegra234-p3701-0000.dtsi
> @@ -80,6 +80,22 @@ pmc@c360000 {
> };
> };
>
> + bpmp {
> + i2c {
> + tegra_tmp451: thermal-sensor@4c {
> + compatible = "ti,tmp451";
> + reg = <0x4c>;
> + vcc-supply = <&vdd_1v8_ao>;
> + #thermal-sensor-cells = <1>;
> + status = "okay";
> + };
> + };
> +
> + thermal {
> + status = "okay";
> + };
> + };
> +
> vdd_5v0_sys: regulator-vdd-5v0-sys {
> compatible = "regulator-fixed";
> regulator-name = "VIN_SYS_5V0";
> @@ -139,4 +155,264 @@ vdd_12v_pcie: regulator-vdd-12v-pcie {
> gpio = <&gpio TEGRA234_MAIN_GPIO(A, 1) GPIO_ACTIVE_LOW>;
> regulator-boot-on;
> };
> +
> + thermal-zones {
> + cpu-thermal {
> + polling-delay = <1000>;
> + polling-delay-passive = <1000>;
> + thermal-sensors = <&{/bpmp/thermal} TEGRA234_THERMAL_ZONE_CPU>;
> + status = "okay";
> +
> + trips {
> + cpu_sw_shutdown: cpu-sw-shutdown {
> + temperature = <104500>;
> + hysteresis = <0>;
> + type = "critical";
> + };
> +
> + cpu_sw_throttle: cpu-sw-throttle {
> + temperature = <99000>;
> + hysteresis = <0>;
> + type = "passive";
> + };
> + };
> +
> + cooling-maps {
> + map0 {
> + trip = <&cpu_sw_throttle>;
> + cooling-device = <&cpu0_0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
> + <&cpu1_0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
> + <&cpu2_0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
> + };
> + };
> + };
> +
> + gpu-thermal {
> + polling-delay = <1000>;
> + polling-delay-passive = <1000>;
> + thermal-sensors = <&{/bpmp/thermal} TEGRA234_THERMAL_ZONE_GPU>;
> + status = "okay";
> + status = "disabled";
Looks like I messed this up. I will send a V2 to fix.
Jon
--
nvpublic
next prev parent reply other threads:[~2023-01-25 11:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-24 11:51 [PATCH 1/2] dt-bindings: thermal: Add Tegra234 BPMP thermal zones Jon Hunter
2023-01-24 11:51 ` [PATCH 2/2] arm64: tegra: Add thermal support for Tegra234 Jon Hunter
2023-01-25 11:05 ` Jon Hunter [this message]
2023-01-25 20:26 ` [PATCH 1/2] dt-bindings: thermal: Add Tegra234 BPMP thermal zones Rob Herring
2023-01-25 21:18 ` Jon Hunter
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=5e473fcc-0b7f-db19-5a34-f83f77f50a17@nvidia.com \
--to=jonathanh@nvidia.com \
--cc=daniel.lezcano@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=rafael@kernel.org \
--cc=robh+dt@kernel.org \
--cc=thierry.reding@gmail.com \
--cc=yiweiw@nvidia.com \
/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;
as well as URLs for NNTP newsgroup(s).