All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/4] thermal: loongson2: Add Loongson-2K0500 and Loongson-2K2000 thermal support
@ 2024-04-23  1:58 Binbin Zhou
  2024-04-23  1:59 ` [PATCH v4 1/4] thermal: loongson2: Trivial code style adjustment Binbin Zhou
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Binbin Zhou @ 2024-04-23  1:58 UTC (permalink / raw)
  To: Binbin Zhou, Huacai Chen, Rafael J . Wysocki, Daniel Lezcano,
	Amit Kucheria, Zhang Rui, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley
  Cc: Huacai Chen, loongson-kernel, linux-pm, devicetree, Yinbo Zhu,
	WANG Xuerui, loongarch, Binbin Zhou

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.

---
V4:
patch(1/4):
  - Drop devm_thermal_add_hwmon_sysfs() return value checking, to avoid
    jeopardize the initialization of this driver if the
    devm_thermal_add_hwmon_sysfs() function fails.
patch(4/4):
  - Use the different ops to get temperature.

Thanks Daniel for your advice.

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

V3:
- Collect Acked-by and Reviewed-by tag, thanks.
patch(1/4):
  - Several code stlye adjustments, such as line breaks.
patch(3/4):
  - If-else statement goes before unevaluatedProperties.

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

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
    compatible
  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           | 117 ++++++++++++------
 2 files changed, 101 insertions(+), 40 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-04-23 15:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-23  1:58 [PATCH v4 0/4] thermal: loongson2: Add Loongson-2K0500 and Loongson-2K2000 thermal support Binbin Zhou
2024-04-23  1:59 ` [PATCH v4 1/4] thermal: loongson2: Trivial code style adjustment Binbin Zhou
2024-04-23  1:59 ` [PATCH v4 2/4] dt-bindings: thermal: loongson,ls2k-thermal: Add Loongson-2K0500 compatible Binbin Zhou
2024-04-23  1:59 ` [PATCH v4 3/4] dt-bindings: thermal: loongson,ls2k-thermal: Fix incorrect compatible definition Binbin Zhou
2024-04-23  1:59 ` [PATCH v4 4/4] thermal: loongson2: Add Loongson-2K2000 support Binbin Zhou
2024-04-23 15:54 ` [PATCH v4 0/4] thermal: loongson2: Add Loongson-2K0500 and Loongson-2K2000 thermal support Daniel Lezcano

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.