From patchwork Sat Apr 20 01:45:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Binbin Zhou X-Patchwork-Id: 791874 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 274A5A40; Sat, 20 Apr 2024 01:46:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=114.242.206.163 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713577571; cv=none; b=siCV4ieiGCJEokF6adQAT3mQPNxd36Ysh6vb60P+9TJDWlNqZ9xCOPPDeTBE5KEic5QeVIgqYm33l7LHpeLtYrrKHZX4vlFX5VIE5t2l5o7JI0itjE6Hk4bg83jxPqs4vC2L9mKeG8yCb5ksZcUU7L0jpeE4z7dbKZU+1iCDSiA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713577571; c=relaxed/simple; bh=bJjpIGTuHq/tNnAK50kecEJdDZuq7kA9oC6gFX8UV9k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rN4GVV/+isAbyjT7bkrZkgJg6v17YFI+eb1t/Lp5ab0zhqk5qtFDRFhLSAf9w8OwN0yCsZSwHPNX4DJEu5mx3M8B30SYOO8MwN7oqhwf7SMk5xjbn4ut7MqgauP+dWgGhSpo6STo4aEaM6C2wliqL9eUK7vabwmWuKWmaTO+5a4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=loongson.cn; spf=pass smtp.mailfrom=loongson.cn; arc=none smtp.client-ip=114.242.206.163 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=loongson.cn Received: from loongson.cn (unknown [112.20.112.218]) by gateway (Coremail) with SMTP id _____8Bx7_BZHiNmnDwAAA--.994S3; Sat, 20 Apr 2024 09:46:01 +0800 (CST) Received: from localhost.localdomain (unknown [112.20.112.218]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxIeBXHiNmAIIAAA--.2913S2; Sat, 20 Apr 2024 09:46:00 +0800 (CST) From: Binbin Zhou 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@lists.loongnix.cn, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Yinbo Zhu , WANG Xuerui , loongarch@lists.linux.dev, Binbin Zhou Subject: [PATCH v3 0/4] thermal: loongson2: Add Loongson-2K0500 and Loongson-2K2000 thermal support Date: Sat, 20 Apr 2024 09:45:45 +0800 Message-ID: X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-CM-TRANSID: AQAAf8BxIeBXHiNmAIIAAA--.2913S2 X-CM-SenderInfo: p2kr3uplqex0o6or00hjvr0hdfq/ X-Coremail-Antispam: 1Uk129KBj93XoW7ZrWftFW8AryDZw45KFWUJrc_yoW8XryUpa nxu3sxGr1UAF4UZw4fA3y8Ars09rWftayDWr4fJw1rArZ8Gw13t34rta1YvrZ7urW0gFW2 qrn5Kr4UCFn8CrXCm3ZEXasCq-sJn29KB7ZKAUJUUUU7529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUUB0b4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r1Y6r17M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_JFI_Gr1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Jr0_Gr1l84ACjcxK6I8E87Iv67AKxVW8JVWxJwA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_ Gr0_Gr1UM2kKe7AKxVWUXVWUAwAS0I0E0xvYzxvE52x082IY62kv0487Mc804VCY07AIYI kI8VC2zVCFFI0UMc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWUAVWU twAv7VC2z280aVAFwI0_Jr0_Gr1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI4 8JMxkF7I0En4kS14v26r126r1DMxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j 6r4UMxCIbckI1I0E14v26r1Y6r17MI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwV AFwI0_JrI_JrWlx4CE17CEb7AF67AKxVW8ZVWrXwCIc40Y0x0EwIxGrwCI42IY6xIIjxv2 0xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWUJVW8JwCI42IY6xAIw20EY4 v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x0267AK xVWUJVW8JbIYCTnIWIevJa73UjIFyTuYvjxUcpBTUUUUU 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. --- 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 | 111 +++++++++++------- 2 files changed, 93 insertions(+), 42 deletions(-)