From patchwork Mon Apr 3 19:32:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 13198640 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 89F31C761A6 for ; Mon, 3 Apr 2023 19:33:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231927AbjDCTdt (ORCPT ); Mon, 3 Apr 2023 15:33:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231543AbjDCTdr (ORCPT ); Mon, 3 Apr 2023 15:33:47 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E4BC10DE; Mon, 3 Apr 2023 12:33:45 -0700 (PDT) Received: from jupiter.universe (dyndsl-091-248-212-192.ewe-ip-backbone.de [91.248.212.192]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sre) by madras.collabora.co.uk (Postfix) with ESMTPSA id E45D66603145; Mon, 3 Apr 2023 20:33:43 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1680550424; bh=HLxZp58uZbh2yKGMAwWX3x4hnxJ2g4oYtgD1TCqt/kg=; h=From:To:Cc:Subject:Date:From; b=VVtMjOm2de/pqu93Ktnc8dm6IlqYc4FUDpl3YWVMDRgs5NXajAihZBIgY1f6UeRXI eeS+Tzsh69AyhBM0K50OaH+44B7GVzNdKRVag/qCW8L/dL/puPQXiDwxXmhPjI+2AV I8+G3l7v0aQORqAg79+cvdLvB1lCTD4eDa+2SDTqcpwLSp7kdsYUS0jQVdJuhCWEhm 1uIt8U1uJH5ykw+k61TuwdueN6w3xfBAm1GAh4r0ACClME2tMnfFmkO6X7moOMGepQ ppc1egirmYlM4v7kQA1O1/5zpl89AQOmY+EWL3ewZHUpD9Lk0AijFts2vEjyb4Zn+t 4r6DAGyM4JQRg== Received: by jupiter.universe (Postfix, from userid 1000) id 4B2FC4807E1; Mon, 3 Apr 2023 21:33:41 +0200 (CEST) From: Sebastian Reichel To: Heiko Stuebner , linux-rockchip@lists.infradead.org Cc: Peter Geis , Elaine Zhang , Finley Xiao , Jagan Teki , Michael Turquette , Stephen Boyd , Boris Brezillon , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Sebastian Reichel , kernel@collabora.com Subject: [PATCHv2 0/2] Improve RK3588 clocks and power domains support Date: Mon, 3 Apr 2023 21:32:48 +0200 Message-Id: <20230403193250.108693-1-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org Hi, After this patchset the power-domain support for RK3588 is basically on par with the downstream implementation. More importantly the clock controller change unblocks support for any IP blocks using linked clocks. The clock controller change must be applied before the power-domain change to avoid accessing unclocked registers. Changes since PATCHv1: * https://lore.kernel.org/all/20230331163058.5688-1-sebastian.reichel@collabora.com/ * Replace dsb(sy) with wmb() to fix COMPILE_TEST build on !arm64; direct replacement would be mb(), but write memory barrier should be enough here as far as I can tell * Added Tested-by from Vincent Legoll -- Sebastian Boris Brezillon (1): soc: rockchip: power-domain: add rk3588 mem module support Sebastian Reichel (1): clk: rockchip: rk3588: make gate linked clocks ignore unused drivers/clk/rockchip/clk-rk3588.c | 42 +++++--- drivers/soc/rockchip/pm_domains.c | 160 +++++++++++++++++++++++------- 2 files changed, 151 insertions(+), 51 deletions(-)