mbox series

[v2,0/4] thermal: loongson2: Add Loongson-2K0500 and Loongson-2K2000 thermal support

Message ID cover.1713147645.git.zhoubinbin@loongson.cn (mailing list archive)
Headers show
Series thermal: loongson2: Add Loongson-2K0500 and Loongson-2K2000 thermal support | expand

Message

Binbin Zhou April 15, 2024, 2:31 a.m. UTC
Hi all:

This patchset introduce the Loongson-2K0500 and Loongson-2K2000
temperature sensors.

The temperature sensors of Loongson-2K series CPUs are similar, except
that the temperature reading method of the Loongson-2K2000 is
different.

Specifically, the temperature output register of the Loongson-2K2000 is
defined in the chip configuration domain. We need to define it in dts
and calculate it using different calculation methods.

Thanks.

---
V2:
patch(2/4):
 - Add Acked-by tag from Rob, Thanks.
patch(3/4):
 - Add "minItems: 2" to the reg attribute of Loongson-2K2000.

Link to V1:
https://lore.kernel.org/all/cover.1712733065.git.zhoubinbin@loongson.cn/

Binbin Zhou (4):
  thermal: loongson2: Trivial code style adjustment
  dt-bindings: thermal: loongson,ls2k-thermal: Add Loongson-2K0500
    compaible
  dt-bindings: thermal: loongson,ls2k-thermal: Fix incorrect compatible
    definition
  thermal: loongson2: Add Loongson-2K2000 support

 .../thermal/loongson,ls2k-thermal.yaml        |  24 +++-
 drivers/thermal/loongson2_thermal.c           | 111 +++++++++++-------
 2 files changed, 93 insertions(+), 42 deletions(-)

Comments

Huacai Chen April 19, 2024, 2:38 a.m. UTC | #1
For the whole series,
Acked-by: Huacai Chen <chenhuacai@loongson.cn>

On Mon, Apr 15, 2024 at 10:31 AM Binbin Zhou <zhoubinbin@loongson.cn> wrote:
>
> Hi all:
>
> This patchset introduce the Loongson-2K0500 and Loongson-2K2000
> temperature sensors.
>
> The temperature sensors of Loongson-2K series CPUs are similar, except
> that the temperature reading method of the Loongson-2K2000 is
> different.
>
> Specifically, the temperature output register of the Loongson-2K2000 is
> defined in the chip configuration domain. We need to define it in dts
> and calculate it using different calculation methods.
>
> Thanks.
>
> ---
> V2:
> patch(2/4):
>  - Add Acked-by tag from Rob, Thanks.
> patch(3/4):
>  - Add "minItems: 2" to the reg attribute of Loongson-2K2000.
>
> Link to V1:
> https://lore.kernel.org/all/cover.1712733065.git.zhoubinbin@loongson.cn/
>
> Binbin Zhou (4):
>   thermal: loongson2: Trivial code style adjustment
>   dt-bindings: thermal: loongson,ls2k-thermal: Add Loongson-2K0500
>     compaible
>   dt-bindings: thermal: loongson,ls2k-thermal: Fix incorrect compatible
>     definition
>   thermal: loongson2: Add Loongson-2K2000 support
>
>  .../thermal/loongson,ls2k-thermal.yaml        |  24 +++-
>  drivers/thermal/loongson2_thermal.c           | 111 +++++++++++-------
>  2 files changed, 93 insertions(+), 42 deletions(-)
>
> --
> 2.43.0
>
>