From patchwork Wed Mar 8 23:38:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 13166581 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 A8441C64EC4 for ; Wed, 8 Mar 2023 23:39:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id: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:References: List-Owner; bh=QNaKrIBbDZgR82dJ0N28yX5clVXnR//5fss4Vk4BpY8=; b=ECd40RCS16iMQg amJoYEUZ5tVtX0Fy4CcUBHm28GJ/95c22v+FW/D2dB3C4lw3nAeBgzQ2qLJK20FANit2FrdVqxIyJ 8THXsAZenP+nEOsZ7OYVy8xenPtbpv1tYkm3iyiywEq5TlcOmq0jkWFMfw7ylHTqUTD0pN7BugDae uRnw71aS4uOj/k4TM1Tkoouy0iZN0wjOHtdWQJviH38sE3CgNIseoDS4G2I2pITP6aNsao0dMLz+V THPq7oHn15PgunDhlcSy8VUBRaHNacGqQIFfw3bwuIReOItEQNTrvWeHAFJO9rY4/jS0zeshMzE/P 2x4sWyL4dlPPxkDobjrw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pa3Mj-0079Wn-Qu; Wed, 08 Mar 2023 23:38:37 +0000 Received: from mail-oi1-x234.google.com ([2607:f8b0:4864:20::234]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pa3MY-0079R9-CF for linux-arm-kernel@lists.infradead.org; Wed, 08 Mar 2023 23:38:27 +0000 Received: by mail-oi1-x234.google.com with SMTP id c11so384511oiw.2 for ; Wed, 08 Mar 2023 15:38:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678318704; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=O5FO4JwEp2Kjzh0k17TvUro3yR+jx+xZgIAaan5bX5Y=; b=YNsoYLnfDHjDb8JcTVyzn6779ksJvl46OwrzuWq1h9NZr5FePk2pq3zfpbmsXWKmCP F0xBViNocLHXPrN7vgv2x292+vQNgAsQdDGR0mruvhYoew1N7Bs4GMYxfLQiG0p3ptfU zNka13oasgbN7uCLS7tSEDYa8O/kf2EoLJj4uPz5hXXTk2Oa/1AIXqjWVNj7axnh03R1 EezCvHZweLK4S/LlV6xZ4W+ztsnRYzjcyzXGwMcoDaaEUndB4ldr1LA9OuaHDCR2VJWI WZ3VhFo/4csbX2QfT/WgbBtr37ekXHAzkpjLV5gYue/zxSZ8h+WYLbOvG2Yt4zTCfzix hhiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678318704; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=O5FO4JwEp2Kjzh0k17TvUro3yR+jx+xZgIAaan5bX5Y=; b=Bmv4Hicm8+g3aPJWMhGM2T42fD0cn9Ji7iIrMauedPnFCK8YzoD4wk2frkmHKYReuE ij0dWcmlG+yijGlsjKMIccBUYuYxLIq354aOD7HlPYzMKNYqbqEyyJ4pnYgmob3RGTzH lVsZ06gaOTvQd/2LKNiSdtz/DKkABoC5sghswbKlTDvYPlmCHL1ywLmXtF5fE6RZ4D/4 Y5pAdsxWq2E2y8mwp29xNGlF3UddME5AfPTF6zjw98Tww+AT869ZkUXvq3mqlVlQFyDs qaE98Z/ijc1BR29HZU1NL1+Cbdti5uuZUBE5+A68uDmOR3RlvyEjm4MlfcAcmIXZwqxE V29Q== X-Gm-Message-State: AO0yUKUg5p5JFyrBCuZGeG7FCbDFFtgOgWWee3X/oGTUS8wXFYi4ABIV 2kJodA9wnmtLJeFiPk4c5rEbng== X-Google-Smtp-Source: AK7set+XFOsOoucxEaYKPa3vsibaK3J2lN8yAlAGdVHAY22gDwluoI76GNWfvkybvR34AfUwUARGwg== X-Received: by 2002:a05:6808:b2c:b0:383:e7c8:4000 with SMTP id t12-20020a0568080b2c00b00383e7c84000mr8584833oij.13.1678318703864; Wed, 08 Mar 2023 15:38:23 -0800 (PST) Received: from localhost ([136.49.140.41]) by smtp.gmail.com with ESMTPSA id r36-20020a056808212400b00383d9700294sm6772901oiw.40.2023.03.08.15.38.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Mar 2023 15:38:23 -0800 (PST) From: Sam Protsenko To: Krzysztof Kozlowski , Rob Herring , Sylwester Nawrocki Cc: Marek Szyprowski , Tomasz Figa , Chanwoo Choi , Chanho Park , David Virag , Alim Akhtar , Michael Turquette , Stephen Boyd , linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/7] clk: samsung: Enable PM in Exynos850 clk driver Date: Wed, 8 Mar 2023 17:38:15 -0600 Message-Id: <20230308233822.31180-1-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230308_153826_434241_7E597514 X-CRM114-Status: GOOD ( 12.02 ) 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 One difference Exynos850 has w.r.t. other Exynos platforms in terms of PM is that EL3 monitor handles TZ protection of CMU domains on suspend/resume for us. This series enables PM support in clk-exynos850, which was originally borrowed/extracted from clk-exynos5433 driver, and also adds other missing bits, like adding those SMC calls, keeping PMU clock always enabled and configuring MUX clocks before the suspend. Dependencies inside of this series: - patch #7 must go after #4 - patches 3-6 should go in the same order as in the series - better to keep patche #1 and #2 before the rest of patches, so that the driver and dts always use documented properties Sam Protsenko (7): dt-bindings: clock: exynos850: Add power-domains property dt-bindings: clock: exynos850: Add tzpc property clk: samsung: Implement PM SMC calls for ARM64 Exynos SoCs clk: samsung: exynos850: Make PMU_ALIVE_PCLK critical clk: samsung: exynos850: Add suspend state for all CMUs clk: samsung: exynos850: Enable PM support in clk-exynos850 arm64: dts: exynos: Remove clock from Exynos850 pmu_system_controller .../clock/samsung,exynos850-clock.yaml | 13 ++ arch/arm64/boot/dts/exynos/exynos850.dtsi | 1 - drivers/clk/samsung/clk-exynos-arm64.c | 39 +++++- drivers/clk/samsung/clk-exynos850.c | 112 ++++++++++++++++-- 4 files changed, 153 insertions(+), 12 deletions(-)