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: 660738 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 EBA0DC64EC4 for ; Wed, 8 Mar 2023 23:38:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229668AbjCHXi3 (ORCPT ); Wed, 8 Mar 2023 18:38:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229817AbjCHXi0 (ORCPT ); Wed, 8 Mar 2023 18:38:26 -0500 Received: from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com [IPv6:2607:f8b0:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A799580D4 for ; Wed, 8 Mar 2023 15:38:24 -0800 (PST) Received: by mail-oi1-x22d.google.com with SMTP id be16so415835oib.0 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=v6SAET80ICM40OHiN+tb87c9/48WFAyj1NRlgun6zKZ15avUfO8KgYRK39G0YZTaVR vZ5L9xHEAGi3LCudduo4McMf/Vw6TgjMNK4EomxmYbVqbsxsL1iLnRuQzTCYJo+3DyRc fGGCAnM3B+HdUiGb0BLpVexvP8ZaYjPUPV/ipm4pZnj1RjRSqN8GPkKK9XyGHzqeF1+U kKKnSK8MKqV/fs3Om5bkfpxSTPkCC8wld4jJlELZDsp0ECMygursaf/XdhRcPY82ixJk oRA4Vf9zXUuduqG5qQUjU1BX3dDII6Bll0UkSCKTgRji4gxchUmCZStOcuIMt/E4DMvT nIrQ== X-Gm-Message-State: AO0yUKVV3GcpF+3XdIq3OxAM0y5ZzjnzoKTC1/GA644Lsu4oQAEYMGZ4 ck4veTLVwocvpqOGbcqb6PnnPQ== 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: devicetree@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(-)