From patchwork Fri Jul 26 11:01:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mateusz Majewski X-Patchwork-Id: 13742579 Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 659C5145B14 for ; Fri, 26 Jul 2024 11:01:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.118.77.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721991706; cv=none; b=dbEijpbyPqIhicpIoYz5qWnXHmkRwnxHlJ5f2vm2bUFcGbevh4Y9f2BJXxkIgCP8bzyMzKYGN94qtM8y8BJSISnww+/bvLRWKff3lx167PHolAvrjUZt/NrHic8kqWT+4vxX63OYzIv1z68IG5u+WXvlCZw+X4hoMRHVMGTfIF8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721991706; c=relaxed/simple; bh=Gv0ftQzDJ3EJWBl6xXDHU62sR2UU3NPqgkxGWopDc6c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: References; b=ABP9Onx9N8tErGVTGSrzSD3YkMZiX3x44lhh0AI6IRi2xR9RxFNXtfQBh1PuD222JiJbuWB1ddvgdSVyn6prQ9iTD15nLv1JavvgwbBy4KmNzgZQGgcenIfsDYj+FXlQcBeYugknSxKjhS/urS8zmfBBP0bKQFpXKb76Wza/eJs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=IGnFq8Dj; arc=none smtp.client-ip=210.118.77.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="IGnFq8Dj" Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20240726110133euoutp01c44dbe50463d4eb32b92977358a152f7~lvlJuy-2v0353303533euoutp01V for ; Fri, 26 Jul 2024 11:01:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20240726110133euoutp01c44dbe50463d4eb32b92977358a152f7~lvlJuy-2v0353303533euoutp01V DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1721991693; bh=0E7LtwcPeufFtOSVEEqAZtiyP4gVnHEqxC1AgRNHbFE=; h=From:To:Cc:Subject:Date:References:From; b=IGnFq8Dj6nxalpG/UeEdF+J3LHaLsYYUZY2CCR9o61gHVySy3i4kjotRAn5RPeOIm TJ70QF4sK1Lnnz2RlZWAO0hVJ4pHZi2TAa68LZVHSiFimAsaBQgFfbqYZxQmdQex/E d/59yMpycZeOXll/eKRfe4qnXS22rmr6XfgZN2jM= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20240726110133eucas1p20a5f1b3649c2ad33197053652596e4aa~lvlJZA9WV2815028150eucas1p29; Fri, 26 Jul 2024 11:01:33 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id B0.C8.09875.D0283A66; Fri, 26 Jul 2024 12:01:33 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20240726110133eucas1p1a20d4fae252520ea6747bc1101c9d59a~lvlJBF5650303903039eucas1p1X; Fri, 26 Jul 2024 11:01:33 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20240726110133eusmtrp2bef4f151570af3f9d661eb48217a9019~lvlJAD7xO1722117221eusmtrp2S; Fri, 26 Jul 2024 11:01:33 +0000 (GMT) X-AuditID: cbfec7f4-11bff70000002693-a1-66a3820d3710 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id FD.17.08810.C0283A66; Fri, 26 Jul 2024 12:01:32 +0100 (BST) Received: from AMDC4515.eu.corp.samsungelectronics.net (unknown [106.120.51.28]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20240726110132eusmtip25fbe6aa06af2249b547bb95285200c3c~lvlIECCRq2391923919eusmtip2e; Fri, 26 Jul 2024 11:01:31 +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 v2 0/6] Add initial Exynos850 support to the thermal driver Date: Fri, 26 Jul 2024 13:01:04 +0200 Message-ID: <20240726110114.1509733-1-m.majewski2@samsung.com> X-Mailer: git-send-email 2.45.1 Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrDKsWRmVeSWpSXmKPExsWy7djP87q8TYvTDOY0iFo8mLeNzeL7lutM Fmv2nmOymPdZ1mL+kXOsFufPb2C32PT4GqvF5V1z2Cw+9x5htJhxfh+TxbqNt9gtFja1sFtM PDaZ2WLul6nMFv/37GC3ePKwj83ied8+JgdBjzXz1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6747bc1101c9d59a X-Msg-Generator: CA X-RootMTR: 20240726110133eucas1p1a20d4fae252520ea6747bc1101c9d59a X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20240726110133eucas1p1a20d4fae252520ea6747bc1101c9d59a References: 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: 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 outdated information on trip point count .../thermal/samsung,exynos-thermal.yaml | 8 +- drivers/thermal/samsung/exynos_tmu.c | 219 ++++++++++++++++-- 2 files changed, 199 insertions(+), 28 deletions(-)