[PATCH v4 6/8] arm64: dts: amlogic: t7: Add thermal sensor nodes
Neil Armstrong
neil.armstrong at linaro.org
Fri Apr 24 02:52:43 PDT 2026
On 4/23/26 18:07, Ronald Claveau via B4 Relay wrote:
> From: Ronald Claveau <linux-kernel-dev at aliel.fr>
>
> Add six temperature sensor nodes using the amlogic,t7-thermal compatible:
> a73, a53, gpu, nna, vpu, and hevc. Each sensor retrieves its calibration
> data from the secure monitor via the amlogic,secure-monitor phandle with
> the corresponding tsensor_id argument.
>
> Signed-off-by: Ronald Claveau <linux-kernel-dev at aliel.fr>
> ---
> arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi | 58 +++++++++++++++++++++++++++++
> 1 file changed, 58 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi b/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi
> index 7aec65f036a9c..62f259b2b17d2 100644
> --- a/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi
> +++ b/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi
> @@ -656,6 +656,24 @@ sec_ao: ao-secure at 10220 {
> amlogic,has-chip-id;
> };
>
> + a73_tsensor: temperature-sensor at 20000 {
> + compatible = "amlogic,t7-thermal";
> + reg = <0x0 0x20000 0x0 0x50>;
> + interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&clkc_periphs CLKID_TS>;
> + #thermal-sensor-cells = <0>;
> + amlogic,secure-monitor = <&sm 1>;
> + };
> +
> + a53_tsensor: temperature-sensor at 22000 {
> + compatible = "amlogic,t7-thermal";
> + reg = <0x0 0x22000 0x0 0x50>;
> + interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&clkc_periphs CLKID_TS>;
> + #thermal-sensor-cells = <0>;
> + amlogic,secure-monitor = <&sm 2>;
> + };
> +
> pwm_ao_ef: pwm at 30000 {
> compatible = "amlogic,t7-pwm", "amlogic,meson-s4-pwm";
> reg = <0x0 0x30000 0x0 0x24>;
> @@ -770,6 +788,46 @@ sd_emmc_c: mmc at 8c000 {
> assigned-clock-parents = <&xtal>;
> status = "disabled";
> };
> +
> + gpu_tsensor: temperature-sensor at 94000 {
> + compatible = "amlogic,t7-thermal";
> + reg = <0x0 0x94000 0x0 0x50>;
> + interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&clkc_periphs CLKID_TS>;
> + power-domains = <&pwrc PWRC_T7_MALI_TOP_ID>;
> + #thermal-sensor-cells = <0>;
> + amlogic,secure-monitor = <&sm 3>;
> + };
> +
> + nna_tsensor: temperature-sensor at 96000 {
> + compatible = "amlogic,t7-thermal";
> + reg = <0x0 0x96000 0x0 0x50>;
> + interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&clkc_periphs CLKID_TS>;
> + power-domains = <&pwrc PWRC_T7_NNA_TOP_ID>;
> + #thermal-sensor-cells = <0>;
> + amlogic,secure-monitor = <&sm 4>;
> + };
> +
> + vpu_tsensor: temperature-sensor at 98000 {
> + compatible = "amlogic,t7-thermal";
> + reg = <0x0 0x98000 0x0 0x50>;
> + interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&clkc_periphs CLKID_TS>;
> + power-domains = <&pwrc PWRC_T7_VPU_HDMI_ID>;
> + #thermal-sensor-cells = <0>;
> + amlogic,secure-monitor = <&sm 6>;
> + };
> +
> + hevc_tsensor: temperature-sensor at 9a000 {
> + compatible = "amlogic,t7-thermal";
> + reg = <0x0 0x9a000 0x0 0x50>;
> + interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&clkc_periphs CLKID_TS>;
> + power-domains = <&pwrc PWRC_T7_DOS_HEVC_ID>;
> + #thermal-sensor-cells = <0>;
> + amlogic,secure-monitor = <&sm 5>;
> + };
> };
>
> };
>
Reviewed-by: Neil Armstrong <neil.armstrong at linaro.org>
Thanks,
Neil
More information about the linux-amlogic
mailing list