Skip to content

thermal: loongson2: Add Loongson-2K0500 and Loongson-2K2000 thermal support

Binbin Zhou linux-devicetree linux-pm loongarch 4 versions – Applied

Status from this message: Applied, thanks

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 1 replyApplied
  2. v34 patches 4 repliesSuperseded
  3. v24 patches 5 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v14 patches3 repliesSuperseded

Changes in v4 from the cover letter

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.

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/4thermal: loongson2: Trivial code style adjustmentdrivers/thermal/loongson2_thermal.c+34 -310 replies
2/4dt-bindings: thermal: loongson,ls2k-thermal: Add Loongson-2K0500 compatibleDocumentation/devicetree/bindings/thermal/loongson,ls2k-thermal.yaml+1 -00 replies
3/4dt-bindings: thermal: loongson,ls2k-thermal: Fix incorrect compatible definitionDocumentation/devicetree/bindings/thermal/loongson,ls2k-thermal.yaml+21 -20 replies
4/4thermal: loongson2: Add Loongson-2K2000 supportdrivers/thermal/loongson2_thermal.c+51 -130 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchHuacai ChenRob HerringKrzysztof Kozlowski
1/4A-b
2/4A-b A-b
3/4A-b R-b
4/4A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v4 thread

Cover letter [PATCH v4 0/4] thermal: loongson2: Add Loongson-2K0500 and Loongson-2K2000 thermal support

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/[email protected]/

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/[email protected]/

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/[email protected]/

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(-)
Signature · 1 line
2.43.0