[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250703-precious-busy-grouse-eb04b5@krzk-bin>
Date: Thu, 3 Jul 2025 09:47:16 +0200
From: Krzysztof Kozlowski <krzk@...nel.org>
To: Aleksander Jan Bajkowski <olek2@...pl>
Cc: jic23@...nel.org, dlechner@...libre.com, nuno.sa@...log.com,
andy@...nel.org, robh@...nel.org, krzk+dt@...nel.org, conor+dt@...nel.org,
matthias.bgg@...il.com, angelogioacchino.delregno@...labora.com,
zhiyong.tao@...iatek.com, linux-iio@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org
Subject: Re: [PATCH v2 2/2] arm64: dts: mediatek: add thermal sensor support
on mt7981
On Wed, Jul 02, 2025 at 11:48:30PM +0200, Aleksander Jan Bajkowski wrote:
> The temperature sensor in the MT7981 is same as in the MT7986.
>
> Signed-off-by: Aleksander Jan Bajkowski <olek2@...pl>
> ---
> arch/arm64/boot/dts/mediatek/mt7981b.dtsi | 32 ++++++++++++++++++++++-
> 1 file changed, 31 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm64/boot/dts/mediatek/mt7981b.dtsi b/arch/arm64/boot/dts/mediatek/mt7981b.dtsi
> index 5cbea9cd411f..759b9e8059d9 100644
> --- a/arch/arm64/boot/dts/mediatek/mt7981b.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt7981b.dtsi
> @@ -76,7 +76,7 @@ watchdog: watchdog@...1c000 {
> #reset-cells = <1>;
> };
>
> - clock-controller@...1e000 {
> + apmixedsys: clock-controller@...1e000 {
> compatible = "mediatek,mt7981-apmixedsys";
> reg = <0 0x1001e000 0 0x1000>;
> #clock-cells = <1>;
> @@ -184,6 +184,32 @@ spi@...0b000 {
> status = "disabled";
> };
>
> + thermal@...0c800 {
> + 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@...0d000 {
> + compatible = "mediatek,mt7981-auxadc",
> + "mediatek,mt7986-auxadc",
> + "mediatek,mt7622-auxadc";
That's not what your binding said.
It does not look like you tested the DTS against bindings. Please run
'make dtbs_check W=1' (see
Documentation/devicetree/bindings/writing-schema.rst or
https://www.linaro.org/blog/tips-and-tricks-for-validating-devicetree-sources-with-the-devicetree-schema/
for instructions).
Maybe you need to update your dtschema and yamllint. Don't rely on
distro packages for dtschema and be sure you are using the latest
released dtschema.
Best regards,
Krzysztof
Powered by blists - more mailing lists