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: 13166597 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5C803C6FD19 for ; Wed, 8 Mar 2023 23:38:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230098AbjCHXi2 (ORCPT ); Wed, 8 Mar 2023 18:38:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229696AbjCHXi0 (ORCPT ); Wed, 8 Mar 2023 18:38:26 -0500 Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EE2B5708B for ; Wed, 8 Mar 2023 15:38:24 -0800 (PST) Received: by mail-oi1-x22b.google.com with SMTP id y184so360277oiy.8 for ; Wed, 08 Mar 2023 15:38:24 -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=pqhcMslzFnPdMtlvfKpKTrGSnYSu3V4VN0mXuudrhVA1QIIVWXmzQ5nIy7Mtx311QO s87+g0K4PmSLstWQOh6CHgrupvHv7f7jIFG8uk1n4+Simoeu6oLJLCsObj+kgaExl+ob yo0TF5jmn9e6Mp673a4fjyr9itjyVK2lyQlZDN75bvb4p0jAtdc+1hgfMd7B1p9jg9js SjC6r6U1kd0T+FH/3WjwEMOwfMSYVLsfpoyf/4lmxfM6Sio0OyUWvVT05gIg8+HncJID 2Jj7t7OLx0zVLb8U8HNLjU9RQmeNWi2KeeasW7S6iPA5DgqR8dIxkeyobgfbbyx4Zzi9 DZqQ== X-Gm-Message-State: AO0yUKUHhqfL2lzW6bH5zNv8tEnh3nI6Lxi4Y3YdTtJeoqs/OCIFt1ov J45Ueslhy1u7zKTEC6pH71oTWg== 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 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.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(-)