From: Binbin Zhou <zhoubinbin@loongson.cn>
To: Binbin Zhou <zhoubb.aaron@gmail.com>,
Huacai Chen <chenhuacai@loongson.cn>,
"Rafael J . Wysocki" <rafael@kernel.org>,
Daniel Lezcano <daniel.lezcano@linaro.org>,
Amit Kucheria <amitk@kernel.org>, Zhang Rui <rui.zhang@intel.com>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor+dt@kernel.org>
Cc: Huacai Chen <chenhuacai@kernel.org>,
loongson-kernel@lists.loongnix.cn, linux-pm@vger.kernel.org,
devicetree@vger.kernel.org, Yinbo Zhu <zhuyinbo@loongson.cn>,
WANG Xuerui <git@xen0n.name>,
loongarch@lists.linux.dev, Binbin Zhou <zhoubinbin@loongson.cn>
Subject: [PATCH v4 0/4] thermal: loongson2: Add Loongson-2K0500 and Loongson-2K2000 thermal support
Date: Tue, 23 Apr 2024 09:58:59 +0800 [thread overview]
Message-ID: <cover.1713837379.git.zhoubinbin@loongson.cn> (raw)
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
next reply other threads:[~2024-04-23 1:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-23 1:58 Binbin Zhou [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1713837379.git.zhoubinbin@loongson.cn \
--to=zhoubinbin@loongson.cn \
--cc=amitk@kernel.org \
--cc=chenhuacai@kernel.org \
--cc=chenhuacai@loongson.cn \
--cc=conor+dt@kernel.org \
--cc=daniel.lezcano@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=git@xen0n.name \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-pm@vger.kernel.org \
--cc=loongarch@lists.linux.dev \
--cc=loongson-kernel@lists.loongnix.cn \
--cc=rafael@kernel.org \
--cc=robh+dt@kernel.org \
--cc=rui.zhang@intel.com \
--cc=zhoubb.aaron@gmail.com \
--cc=zhuyinbo@loongson.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.