From patchwork Wed Aug 7 08:48:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mateusz Majewski X-Patchwork-Id: 13756013 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 38B09C3DA7F for ; Wed, 7 Aug 2024 08:49:58 +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=MOYRKPD2Qr+yDzENL6SzfGEa1/AbZtSculzGBSu5X+8=; b=15kPMHuxLt87UQH0Rml6H8Fjkm F4mrAKIYWpTPhkDlv5oIKpI0Nbf9CCgL5tYJdXo11mUMKstUUaUlNWgxrkX1iXh/znS93sAC2Un9x MT9ucpJtjCL2ts3soZM5yB5GVOzgVuLVkQtiwMDR1z6mXpIx854kr920XOhDg8oyWks/XWU3y2uol zk98AsCZ6W4MJgQweyXFCLvvYpt4Fh+jObpGkVqJaGno0mW+HePcnF5pbpNa10pyH2Fn/+Top4mOp 42pB37JRwtx7tqcR+WR5ygr+G6yA6Z8/un25KikOEh2zdXWqzoNtA9i6SnCAgeFpjWqONZUVepDNF ts43P9SQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbcMa-00000004QxT-45Ug; Wed, 07 Aug 2024 08:49:45 +0000 Received: from mailout2.w1.samsung.com ([210.118.77.12]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbcM1-00000004Qoi-0pOp for linux-arm-kernel@lists.infradead.org; Wed, 07 Aug 2024 08:49:12 +0000 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20240807084902euoutp02745a4b1ee115a6dadb653d82d0c945fb~pZg3qQJpB3165231652euoutp02M for ; Wed, 7 Aug 2024 08:49:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20240807084902euoutp02745a4b1ee115a6dadb653d82d0c945fb~pZg3qQJpB3165231652euoutp02M DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1723020542; bh=MOYRKPD2Qr+yDzENL6SzfGEa1/AbZtSculzGBSu5X+8=; h=From:To:Cc:Subject:Date:References:From; b=pCKrWt83Kp+f80iyVuRzYUfgGilTtugTdxHFkKhG/Aotk0Kl/86rFhgUpGFdXkKui 8l3BAZppbk1OGYWFaWj9Pe2Y+aC9nS+SwZ+K67OcKvrbwDLwrh7FbHL0IQKtXp/zgc 3QQIC6eOJp7Lh9w12TNTFeOndFCKbq8JErFsSO4w= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20240807084901eucas1p14acd38612f949e8448705916cb7d4da4~pZg3G0kf72042420424eucas1p1B; Wed, 7 Aug 2024 08:49:01 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 41.02.09624.DF433B66; Wed, 7 Aug 2024 09:49:01 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20240807084901eucas1p1feb6a9a89cd6b358380f35f0e3228dfe~pZg2dFlrb0113701137eucas1p1Q; Wed, 7 Aug 2024 08:49:01 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20240807084901eusmtrp25940bdc4f5cec1c9708e3ed2db8cb053~pZg2bwBZS2292322923eusmtrp2w; Wed, 7 Aug 2024 08:49:01 +0000 (GMT) X-AuditID: cbfec7f2-c11ff70000002598-fb-66b334fd4fcd Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 3D.CC.09010.CF433B66; Wed, 7 Aug 2024 09:49:00 +0100 (BST) Received: from AMDC4515.eu.corp.samsungelectronics.net (unknown [106.120.51.28]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20240807084900eusmtip2724d3180f0b4cd5c0de842f4ef2259a8~pZg1eD8U-1785517855eusmtip20; Wed, 7 Aug 2024 08:48:59 +0000 (GMT) From: Mateusz Majewski To: 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 Cc: Mateusz Majewski , Bartlomiej Zolnierkiewicz , Krzysztof Kozlowski , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Rob Herring , Conor Dooley , Alim Akhtar , Sam Protsenko , Anand Moon Subject: [PATCH v3 0/6] Add initial Exynos850 support to the thermal driver Date: Wed, 7 Aug 2024 10:48:19 +0200 Message-ID: <20240807084829.1037303-1-m.majewski2@samsung.com> X-Mailer: git-send-email 2.45.1 MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrHKsWRmVeSWpSXmKPExsWy7djPc7p/TTanGby7qG7xYN42NovvW64z WazZe47JYt5nWYv5R86xWpw/v4HdYtPja6wWl3fNYbP43HuE0WLG+X1MFus23mK3WNjUwm4x 8dhkZou5X6YyW/zfs4Pd4snDPjaL5337mBwEPdb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a9a89cd6b358380f35f0e3228dfe X-Msg-Generator: CA X-RootMTR: 20240807084901eucas1p1feb6a9a89cd6b358380f35f0e3228dfe X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20240807084901eucas1p1feb6a9a89cd6b358380f35f0e3228dfe References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240807_014910_631477_D3FE2C8B X-CRM114-Status: GOOD ( 13.80 ) 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 series adds initial Exynos850 support to the thermal driver together with its requirements (sanitize_temp_error fix, adding the new string to dt-bindings), while also cleaning up a bit (improving power management support and removing some outdated information from dt-bindings). Changelog: v3: - Reworded the commit message of the dt-binding information removal change v2: - Reimplemented to use the Exynos850 TMU clock: removed the patch to make the clock optional and changed dt-bindings change accordingly - Improved the Exynos850 implementation itself (style and one correct register offset) - Removed conditional compilation in favor of pm_sleep_ptr - Shortened dt-bindings description Mateusz Majewski (6): drivers/thermal/exynos: use DEFINE_SIMPLE_DEV_PM_OPS drivers/thermal/exynos: use pm_sleep_ptr instead of conditional compilation drivers/thermal/exynos: improve sanitize_temp_error dt-bindings: thermal: samsung,exynos: add exynos850-tmu string drivers/thermal/exynos: add initial Exynos850 support dt-bindings: thermal: samsung,exynos: remove driver-specific information .../thermal/samsung,exynos-thermal.yaml | 8 +- drivers/thermal/samsung/exynos_tmu.c | 219 ++++++++++++++++-- 2 files changed, 199 insertions(+), 28 deletions(-)