From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 75204CAC5AE for ; Thu, 25 Sep 2025 02:29:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:References:Content-Type: Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:List-Owner; bh=5U4ssfLObfMrsZsYwgUd8+iN9wTGTk9ZQLRuKX7hC5I=; b=a81A0/5amJtN4Yhh1EvsGAfD2T vBsI8TdfgzhTrzIWVBWfb4sFKMatiuaS5LF5kwQAb09XmtFBIh651xdKUbhQhq2g5yyXXA8qgZr0W nqMrU9BRfX6Sp051KCEta3KzL8wXGDf/cBHNHT9AxqmsOOdaMtj6wcYyoswMEJ5Jh15M3khpimvxt uVFaw82PA6DqRch85q0EfYsIIvJWUiXwCSZCkSehXMbefT3enuw6kIDpOOEBIDwy7GD1epAsptU7N LxT69mricV50bMfNPfB9Wc9AKu04BAmU0RYO4gEpA6iP1bA6/gL/1udU/4RMuM/lUfEhdkkAE+PHS s/Fizduw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1v1bj7-00000005Ijg-3z2c; Thu, 25 Sep 2025 02:28:57 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1v1bj3-00000005IhY-3Vml for linux-arm-kernel@lists.infradead.org; Thu, 25 Sep 2025 02:28:57 +0000 Received: from epcas2p4.samsung.com (unknown [182.195.41.56]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20250925022847epoutp04d6a40768889715e743d1df7d0aac9811~oZZDfs2la1356013560epoutp044 for ; Thu, 25 Sep 2025 02:28:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20250925022847epoutp04d6a40768889715e743d1df7d0aac9811~oZZDfs2la1356013560epoutp044 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1758767327; bh=5U4ssfLObfMrsZsYwgUd8+iN9wTGTk9ZQLRuKX7hC5I=; h=From:To:Cc:Subject:Date:References:From; b=PuwQHNZNmwXlqhTtc6OpmWFWSN7s3bljFkDGZfqLb4HHU/fjKQevLgqPcgweI7d0r 9e5wg8xJ0SLIorxEPBdWzuRQIKGKsBN0zoiE6znfKpd5zEPX41PCqi1FdL5DMsngrf ZbcvAqUlf2e6A0P69mavgbeLvHzl7XK2Q8vm0s6U= Received: from epsnrtp04.localdomain (unknown [182.195.42.156]) by epcas2p4.samsung.com (KnoxPortal) with ESMTPS id 20250925022846epcas2p4aff00abcd39f8d88bd05747e85d55a84~oZZDFPiWe1518815188epcas2p4O; Thu, 25 Sep 2025 02:28:46 +0000 (GMT) Received: from epcas2p3.samsung.com (unknown [182.195.36.92]) by epsnrtp04.localdomain (Postfix) with ESMTP id 4cXHhZ2VBzz6B9mG; Thu, 25 Sep 2025 02:28:46 +0000 (GMT) Received: from epsmtip1.samsung.com (unknown [182.195.34.30]) by epcas2p2.samsung.com (KnoxPortal) with ESMTPA id 20250925022845epcas2p2b0e2bbe2e7674f408ae6404ac66a8627~oZZB3Wd0F2876028760epcas2p2u; Thu, 25 Sep 2025 02:28:45 +0000 (GMT) Received: from asswp60 (unknown [10.229.9.60]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20250925022845epsmtip1f371dfbcfc01419492d52c76434048cf~oZZBxRpD-2348123481epsmtip1K; Thu, 25 Sep 2025 02:28:45 +0000 (GMT) From: Shin Son To: Bartlomiej Zolnierkiewicz , Krzysztof Kozlowski , "Rafael J . Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Rob Herring , Conor Dooley , Alim Akhtar , Henrik Grimler Cc: Shin Son , linux-pm@vger.kernel.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 0/3] Add exynosautov920 thermal support Date: Thu, 25 Sep 2025 11:28:37 +0900 Message-ID: <20250925022841.2813150-1-shin.son@samsung.com> X-Mailer: git-send-email 2.50.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CMS-MailID: 20250925022845epcas2p2b0e2bbe2e7674f408ae6404ac66a8627 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P cpgsPolicy: CPGSC10-234,Y X-CFilter-Loop: Reflected X-CMS-RootMailID: 20250925022845epcas2p2b0e2bbe2e7674f408ae6404ac66a8627 References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250924_192854_500523_F6CADDD4 X-CRM114-Status: GOOD ( 17.88 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This patch series adds support for exynosautov920, automotive-grade processor. Although the exynosautov920's TMU hardware differs slightly from exisiting platform, its read and calibration logic closely follow our legacy TMU interface. To prevent runtime and build time errors, it is kept as a single change rather than being split. This change merges the new exynosautov920-specific register definitions and timing parameters into the exynos-tmu driver, ensuring consistent behavior across all Exynos series. All new code paths have been tested on a exynosautov920 board and verified to correctly read temperatures and emulate behavior. Changes in v5: - Changed the maximum number of thermal sensors to 15. Changes in v4: - Kept 'addtionalProperties: false'. - Removed the 'samsung,hw-sensor-indices' property in the binding. - Added the 'samsung,sensors' property in the binding. - Dropped code-like formatting and rewrote the description in plain, hardware-focused language in the commit message. - Removed the bitmap and replaced the tz_count to sensor_count. Changes in v3: - Removed redundant commit message. - Rephrased the sentences to describe the hardware clearly. - Restricted sensor indices to V920. - Set #thermal-sensor-cells per variant. - Replaced 'additionalProperties' with 'unevaluatedProperties'. - Removed the duplicate #define and use the original. - Used lowercase hex in #define. - Simplified 'temp_to_code' and 'code_to_temp' to one computation path by normalizing calib_temp. Changes in v2: - Replace the generic property with a vendor-specific one. - Added an indices property instead of ranges. - Shortened thermal node name and made them more generic. - Updated the indices logic accordingly after removing the ranges property. Shin Son (3): dt-bindings: thermal: samsung: Adjust '#thermal-sensor-cells' to 1 thermal: exynos_tmu: Support new hardware and update TMU interface arm64: dts: exynosautov920: Add multiple sensors .../thermal/samsung,exynos-thermal.yaml | 32 +- .../boot/dts/exynos/exynosautov920-tmu.dtsi | 377 ++++++++++++++++++ .../arm64/boot/dts/exynos/exynosautov920.dtsi | 31 ++ drivers/thermal/samsung/exynos_tmu.c | 322 +++++++++++++-- 4 files changed, 724 insertions(+), 38 deletions(-) create mode 100644 arch/arm64/boot/dts/exynos/exynosautov920-tmu.dtsi -- 2.50.1