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: 13198637 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 02B5DC76188 for ; Mon, 3 Apr 2023 19:34:48 +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=ygfWu73hoB4KfcF8RbTmElCQV5RAlcl9S1DeKv2h90Q=; b=k9Up7l6UMxLawO 5TsmeEGCAHlciKNHZ4edvjp18dlejHlFxi91uSUKnpe8O2pbjKQnIT/Fa3DpvIMLrRl1oClZh4xuu DC1WUleWprKOLfxKc/DOG75O5V6aQfsRNVY3V6wCcK5rhvVx2QwFM1oW7Z6+L3vZbW9/gC+M9Ffy7 ykp7qSqnY0FfxgSOi8TRmLawBODNBXfBypzP4IAkxu/zUZ59DZpDm7WQBvq1yJmx+VALmeBd+zSEw Bph5+wqulovovQ0oT71zEZmueVQbknVjjE5Ohuoaie/3FDlZWyU1JKXT495nFpBOsnPlHVUtvGFnD UJQWcFFv1hXqxcV/Y1Ww==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pjPw8-00GPbg-0b; Mon, 03 Apr 2023 19:33:52 +0000 Received: from madras.collabora.co.uk ([2a00:1098:0:82:1000:25:2eeb:e5ab]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pjPw5-00GPZx-1p; Mon, 03 Apr 2023 19:33:51 +0000 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230403_123349_830683_09CFA404 X-CRM114-Status: UNSURE ( 8.86 ) X-CRM114-Notice: Please train this message. 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 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(-)