From patchwork Wed Sep 11 12:11:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mateusz Majewski X-Patchwork-Id: 13800317 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 277A5EE4998 for ; Wed, 11 Sep 2024 12:13:11 +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=JJQazKGbc8eC2nG+ZbcooFNwFLYJU5Lc7hKXABWosA0=; b=SZ3WNfTEUt6mYI7vmkncTN9a9M YD6CWBM5mSh8zxygYnS8yRRtY8cL8ouMD3mixserHBVmJUOcidVLjpx66zzX0IvzW9o+jq0HsWkfD cyniFeBkaLvE8dKJ6h6PZcVyVC74Azlu7EdhS1zCPMOrvpg7k4Ls8Y86ikzvYJPRUmXTVwdHAfE1e Q4qGfEXS+eo641ZNZwF3igXgQx4IFVkth5oDzq1zPYppcPiq0RRlSHJF2LzG3oXKxJUtbM7euf5vc bA9YBk/nYhalUhlYKbQ4rajxOHKE6Jz7koaHqZFFmB17qy8ZpEZ74hmyIT6xj3v/E4x2kKmtoifRA vd3vzwOQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1soMDU-00000009QHJ-3Kie; Wed, 11 Sep 2024 12:13:01 +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 1soMCQ-00000009PzR-2Vc3 for linux-arm-kernel@lists.infradead.org; Wed, 11 Sep 2024 12:11:56 +0000 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20240911121150euoutp029a2940d58b83b47cd80dbf6b3cf3996a~0L27oaMfo0127701277euoutp02_ for ; Wed, 11 Sep 2024 12:11:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20240911121150euoutp029a2940d58b83b47cd80dbf6b3cf3996a~0L27oaMfo0127701277euoutp02_ DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1726056710; bh=JJQazKGbc8eC2nG+ZbcooFNwFLYJU5Lc7hKXABWosA0=; h=From:To:Cc:Subject:Date:References:From; b=fNKA+/nmBKhKHJzuyF8FWdSl58z8dJc+Hlx3qOG+oKKa59ke+STT8Jr4rSdeGtsXY aPINrwDJBzjrpnTEZ4Nx4qhbFo1gh0CT1n7wHbr7PiA5OqmiKdqUzpb5kxlZOApR+J z7Bg6wDmnYrhtuIThBh600ranJrJ+DHuyzA6+h/c= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20240911121149eucas1p28d2864cd11bd828ddde8f104984bc07d~0L27EVQ8j1734517345eucas1p25; Wed, 11 Sep 2024 12:11:49 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 3E.38.09620.50981E66; Wed, 11 Sep 2024 13:11:49 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20240911121149eucas1p29b9ccf99a545cfaa924b122cd8dd3183~0L26qYr0i1735817358eucas1p25; Wed, 11 Sep 2024 12:11:49 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20240911121149eusmtrp2398e0023dca67fda0474c1fd19aeca81~0L26pn7zv2688526885eusmtrp2T; Wed, 11 Sep 2024 12:11:49 +0000 (GMT) X-AuditID: cbfec7f5-d1bff70000002594-66-66e189054cb8 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id D7.E9.14621.50981E66; Wed, 11 Sep 2024 13:11:49 +0100 (BST) Received: from AMDC4515.eu.corp.samsungelectronics.net (unknown [106.120.51.28]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20240911121148eusmtip14c9e2adaadac8aea8c6f73d897d0f577~0L25vfIki0847908479eusmtip1g; Wed, 11 Sep 2024 12:11:48 +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 , Marek Szyprowski Subject: [PATCH v4 0/7] Add initial Exynos850 support to the thermal driver Date: Wed, 11 Sep 2024 14:11:23 +0200 Message-ID: <20240911121136.1120026-1-m.majewski2@samsung.com> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrMKsWRmVeSWpSXmKPExsWy7djPc7qsnQ/TDJ78MrV4MG8bm8X3LdeZ LNbsPcdkMe+zrMX8I+dYLc6f38BusenxNVaLy7vmsFl87j3CaDHj/D4mi3Ubb7FbLGxqYbeY eGwys8XaI3fZLeZ+m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-CMS-MailID: 20240911121149eucas1p29b9ccf99a545cfaa924b122cd8dd3183 X-Msg-Generator: CA X-RootMTR: 20240911121149eucas1p29b9ccf99a545cfaa924b122cd8dd3183 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20240911121149eucas1p29b9ccf99a545cfaa924b122cd8dd3183 References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240911_051155_056032_F0E3F676 X-CRM114-Status: GOOD ( 14.72 ) 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: v4: - Cleaned up sanitize_temp_error a bit more - Modified exynos_tmu_update_temp to match sanitize_temp_error 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 (7): 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 drivers/thermal/exynos: reuse data->temp_mask in exynos_tmu_update_temp 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 | 237 +++++++++++++++--- 2 files changed, 209 insertions(+), 36 deletions(-)