* [PATCH v5 0/1] Add thermal sensors support for MT7981
@ 2025-09-07 11:15 Aleksander Jan Bajkowski
2025-09-07 11:15 ` [PATCH v5 1/1] arm64: dts: mediatek: add thermal sensor support on mt7981 Aleksander Jan Bajkowski
0 siblings, 1 reply; 4+ messages in thread
From: Aleksander Jan Bajkowski @ 2025-09-07 11:15 UTC (permalink / raw)
To: robh, krzk+dt, conor+dt, matthias.bgg, angelogioacchino.delregno,
devicetree, linux-kernel, linux-arm-kernel, linux-mediatek
Cc: Aleksander Jan Bajkowski
This patch adds support for the temperature sensor in the MT7981 SoC.
This sensor is exactly the same as the one in the MT7986.
Changes in v5:
- dropped another accepted patch
Changes in v4:
- sorted bindings by fallback names
- dropped accepted patch
Changes in v3:
- added fallback in bindings
Changes in v2:
- added fallback to an existing compatible string
- removed second patch as obsolete
Aleksander Jan Bajkowski (1):
arm64: dts: mediatek: add thermal sensor support on mt7981
arch/arm64/boot/dts/mediatek/mt7981b.dtsi | 31 ++++++++++++++++++++++-
1 file changed, 30 insertions(+), 1 deletion(-)
--
2.47.3
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v5 1/1] arm64: dts: mediatek: add thermal sensor support on mt7981
2025-09-07 11:15 [PATCH v5 0/1] Add thermal sensors support for MT7981 Aleksander Jan Bajkowski
@ 2025-09-07 11:15 ` Aleksander Jan Bajkowski
2025-09-08 12:03 ` AngeloGioacchino Del Regno
2025-09-09 12:48 ` Matthias Brugger
0 siblings, 2 replies; 4+ messages in thread
From: Aleksander Jan Bajkowski @ 2025-09-07 11:15 UTC (permalink / raw)
To: robh, krzk+dt, conor+dt, matthias.bgg, angelogioacchino.delregno,
devicetree, linux-kernel, linux-arm-kernel, linux-mediatek
Cc: Aleksander Jan Bajkowski
The temperature sensor in the MT7981 is same as in the MT7986.
Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
---
arch/arm64/boot/dts/mediatek/mt7981b.dtsi | 31 ++++++++++++++++++++++-
1 file changed, 30 insertions(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/mediatek/mt7981b.dtsi b/arch/arm64/boot/dts/mediatek/mt7981b.dtsi
index 5cbea9cd411f..277c11247c13 100644
--- a/arch/arm64/boot/dts/mediatek/mt7981b.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt7981b.dtsi
@@ -76,7 +76,7 @@ watchdog: watchdog@1001c000 {
#reset-cells = <1>;
};
- clock-controller@1001e000 {
+ apmixedsys: clock-controller@1001e000 {
compatible = "mediatek,mt7981-apmixedsys";
reg = <0 0x1001e000 0 0x1000>;
#clock-cells = <1>;
@@ -184,6 +184,31 @@ spi@1100b000 {
status = "disabled";
};
+ thermal@1100c800 {
+ compatible = "mediatek,mt7981-thermal",
+ "mediatek,mt7986-thermal";
+ reg = <0 0x1100c800 0 0x800>;
+ interrupts = <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&infracfg CLK_INFRA_THERM_CK>,
+ <&infracfg CLK_INFRA_ADC_26M_CK>;
+ clock-names = "therm", "auxadc";
+ nvmem-cells = <&thermal_calibration>;
+ nvmem-cell-names = "calibration-data";
+ #thermal-sensor-cells = <1>;
+ mediatek,auxadc = <&auxadc>;
+ mediatek,apmixedsys = <&apmixedsys>;
+ };
+
+ auxadc: adc@1100d000 {
+ compatible = "mediatek,mt7981-auxadc",
+ "mediatek,mt7986-auxadc";
+ reg = <0 0x1100d000 0 0x1000>;
+ clocks = <&infracfg CLK_INFRA_ADC_26M_CK>;
+ clock-names = "main";
+ #io-channel-cells = <1>;
+ status = "disabled";
+ };
+
pio: pinctrl@11d00000 {
compatible = "mediatek,mt7981-pinctrl";
reg = <0 0x11d00000 0 0x1000>,
@@ -211,6 +236,10 @@ efuse@11f20000 {
reg = <0 0x11f20000 0 0x1000>;
#address-cells = <1>;
#size-cells = <1>;
+
+ thermal_calibration: thermal-calib@274 {
+ reg = <0x274 0xc>;
+ };
};
clock-controller@15000000 {
--
2.47.3
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v5 1/1] arm64: dts: mediatek: add thermal sensor support on mt7981
2025-09-07 11:15 ` [PATCH v5 1/1] arm64: dts: mediatek: add thermal sensor support on mt7981 Aleksander Jan Bajkowski
@ 2025-09-08 12:03 ` AngeloGioacchino Del Regno
2025-09-09 12:48 ` Matthias Brugger
1 sibling, 0 replies; 4+ messages in thread
From: AngeloGioacchino Del Regno @ 2025-09-08 12:03 UTC (permalink / raw)
To: Aleksander Jan Bajkowski, robh, krzk+dt, conor+dt, matthias.bgg,
devicetree, linux-kernel, linux-arm-kernel, linux-mediatek
Il 07/09/25 13:15, Aleksander Jan Bajkowski ha scritto:
> The temperature sensor in the MT7981 is same as in the MT7986.
>
> Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v5 1/1] arm64: dts: mediatek: add thermal sensor support on mt7981
2025-09-07 11:15 ` [PATCH v5 1/1] arm64: dts: mediatek: add thermal sensor support on mt7981 Aleksander Jan Bajkowski
2025-09-08 12:03 ` AngeloGioacchino Del Regno
@ 2025-09-09 12:48 ` Matthias Brugger
1 sibling, 0 replies; 4+ messages in thread
From: Matthias Brugger @ 2025-09-09 12:48 UTC (permalink / raw)
To: Aleksander Jan Bajkowski, robh, krzk+dt, conor+dt,
angelogioacchino.delregno, devicetree, linux-kernel,
linux-arm-kernel, linux-mediatek
On 07/09/2025 13:15, Aleksander Jan Bajkowski wrote:
> The temperature sensor in the MT7981 is same as in the MT7986.
>
> Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
Queued, thanks.
Matthias
> ---
> arch/arm64/boot/dts/mediatek/mt7981b.dtsi | 31 ++++++++++++++++++++++-
> 1 file changed, 30 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm64/boot/dts/mediatek/mt7981b.dtsi b/arch/arm64/boot/dts/mediatek/mt7981b.dtsi
> index 5cbea9cd411f..277c11247c13 100644
> --- a/arch/arm64/boot/dts/mediatek/mt7981b.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt7981b.dtsi
> @@ -76,7 +76,7 @@ watchdog: watchdog@1001c000 {
> #reset-cells = <1>;
> };
>
> - clock-controller@1001e000 {
> + apmixedsys: clock-controller@1001e000 {
> compatible = "mediatek,mt7981-apmixedsys";
> reg = <0 0x1001e000 0 0x1000>;
> #clock-cells = <1>;
> @@ -184,6 +184,31 @@ spi@1100b000 {
> status = "disabled";
> };
>
> + thermal@1100c800 {
> + compatible = "mediatek,mt7981-thermal",
> + "mediatek,mt7986-thermal";
> + reg = <0 0x1100c800 0 0x800>;
> + interrupts = <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&infracfg CLK_INFRA_THERM_CK>,
> + <&infracfg CLK_INFRA_ADC_26M_CK>;
> + clock-names = "therm", "auxadc";
> + nvmem-cells = <&thermal_calibration>;
> + nvmem-cell-names = "calibration-data";
> + #thermal-sensor-cells = <1>;
> + mediatek,auxadc = <&auxadc>;
> + mediatek,apmixedsys = <&apmixedsys>;
> + };
> +
> + auxadc: adc@1100d000 {
> + compatible = "mediatek,mt7981-auxadc",
> + "mediatek,mt7986-auxadc";
> + reg = <0 0x1100d000 0 0x1000>;
> + clocks = <&infracfg CLK_INFRA_ADC_26M_CK>;
> + clock-names = "main";
> + #io-channel-cells = <1>;
> + status = "disabled";
> + };
> +
> pio: pinctrl@11d00000 {
> compatible = "mediatek,mt7981-pinctrl";
> reg = <0 0x11d00000 0 0x1000>,
> @@ -211,6 +236,10 @@ efuse@11f20000 {
> reg = <0 0x11f20000 0 0x1000>;
> #address-cells = <1>;
> #size-cells = <1>;
> +
> + thermal_calibration: thermal-calib@274 {
> + reg = <0x274 0xc>;
> + };
> };
>
> clock-controller@15000000 {
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-09-09 12:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-07 11:15 [PATCH v5 0/1] Add thermal sensors support for MT7981 Aleksander Jan Bajkowski
2025-09-07 11:15 ` [PATCH v5 1/1] arm64: dts: mediatek: add thermal sensor support on mt7981 Aleksander Jan Bajkowski
2025-09-08 12:03 ` AngeloGioacchino Del Regno
2025-09-09 12:48 ` Matthias Brugger
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®