From: Michal Simek <michal.simek@amd.com>
To: Amit Kumar Mahapatra <amit.kumar-mahapatra@amd.com>
Cc: Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, git@amd.com,
amitrkcian2002@gmail.com
Subject: Re: [PATCH v2] arm64: versal-net: Add SysMon and thermal zone
Date: Wed, 25 Nov 2026 14:35:45 +0100 [thread overview]
Message-ID: <03024aa7-520b-46c9-a522-7c6e42a362f9@amd.com> (raw)
In-Reply-To: <20261119054418.3740755-1-amit.kumar-mahapatra@amd.com>
On 11/19/26 06:44, Amit Kumar Mahapatra wrote:
> Describe the System Monitor (SysMon) block in the PMC, which provides
> on-chip voltage and temperature monitoring, and use its device
> temperature channel as the sensor for a thermal zone.
>
> SysMon channel 0 is the current maximum temperature across all active
> satellites.
>
> The thermal zone has a critical trip at 125C. Passive trips and cooling
> maps, voltage channels and per-satellite temperature channels depend on
> the design and are left to board files.
>
> SysMon availability depends on the design configuration, and it may not
> be accessible over MMIO, so the SysMon node is disabled by default.
> Boards that use it enable it.
>
> Signed-off-by: Amit Kumar Mahapatra <amit.kumar-mahapatra@amd.com>
> ---
> Changes in v2:
> - Split out of the versal-sysmon series and sent separately, as there
> is no dependency on it (Michal).
> - Add status = "disabled" to the sysmon0 node (Michal).
>
> v1: https://lore.kernel.org/all/20261102122112.1723130-6-amit.kumar-mahapatra@amd.com/
>
> arch/arm64/boot/dts/xilinx/versal-net.dtsi | 30 ++++++++++++++++++++++
> 1 file changed, 30 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/xilinx/versal-net.dtsi b/arch/arm64/boot/dts/xilinx/versal-net.dtsi
> index 9b74e59fd64a..fd976a577b18 100644
> --- a/arch/arm64/boot/dts/xilinx/versal-net.dtsi
> +++ b/arch/arm64/boot/dts/xilinx/versal-net.dtsi
> @@ -706,6 +706,28 @@ versal_fpga: versal-fpga {
> compatible = "xlnx,versal-fpga";
> };
>
> + sysmon_temp: thermal-sensor {
> + compatible = "generic-adc-thermal";
> + #thermal-sensor-cells = <0>;
> + io-channels = <&sysmon0 0>;
> + io-channel-names = "sensor-channel";
> + };
> +
> + thermal-zones {
> + versal_thermal: versal-thermal {
> + polling-delay = <1000>; /* milliseconds */
> + thermal-sensors = <&sysmon_temp>;
> +
> + trips {
> + ot_crit: ot-crit {
> + temperature = <125000>; /* millicelsius */
> + hysteresis = <0>; /* millicelsius */
> + type = "critical";
> + };
> + };
> + };
> + };
> +
> amba: axi {
> compatible = "simple-bus";
> bootph-all;
> @@ -1004,6 +1026,14 @@ spi1: spi@f1970000 {
> clock-names = "ref_clk", "pclk";
> };
>
> + sysmon0: sysmon@f1270000 {
> + compatible = "xlnx,versal-sysmon";
> + status = "disabled";
> + reg = <0 0xf1270000 0 0x4000>;
> + interrupts = <0 202 4>;
> + #io-channel-cells = <1>;
> + };
> +
> ttc0: timer@f1dc0000 {
> compatible = "cdns,ttc";
> status = "disabled";
Applied.
M
prev parent reply other threads:[~2026-11-25 13:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-19 5:44 Amit Kumar Mahapatra
2026-11-25 13:35 ` Michal Simek [this message]
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=03024aa7-520b-46c9-a522-7c6e42a362f9@amd.com \
--to=michal.simek@amd.com \
--cc=amit.kumar-mahapatra@amd.com \
--cc=amitrkcian2002@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=git@amd.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@kernel.org \
/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®