From patchwork Wed Aug 31 18:26:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 601546 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 7035EECAAD4 for ; Wed, 31 Aug 2022 18:31:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233022AbiHaSbj (ORCPT ); Wed, 31 Aug 2022 14:31:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232866AbiHaSbV (ORCPT ); Wed, 31 Aug 2022 14:31:21 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54A66FE80D for ; Wed, 31 Aug 2022 11:26:40 -0700 (PDT) Received: from jupiter.universe (dyndsl-091-096-057-024.ewe-ip-backbone.de [91.96.57.24]) (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 34FEA6601DEE; Wed, 31 Aug 2022 19:26:38 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1661970398; bh=ozbZAR/ZPaFIawh+7c7nCegPwLLDEJxqWGRcV6jl+cM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GX7cYYgVdfh0bjYVa/1f4LT2Y4QsV/SS1pGparNCeFUQIFLki2BmD40K2Vs0gdaFq yavVEYh+oa3yxaoilaGqCp8dsjTBzyn5cuxKuYT5TwWQZ5D1i/3jweLxto5+hx4yO3 qX1yxMl29pvnkRmz49UrFR1tUXrhrVsLB8M84qgbQ9Qg3ZxC9YJMIGmI4xepy7AN2a ZLZeH5fDEdpHSxGqAcDSH66UD1mw6WH3ICo8jFkt8YujZXM/xKVmhGIxvBAUKVmWrJ CjNsSOw1WJl1n1o52cCVgIg0jnFW2WKrroKM1Fujzx9A/x5Pa1Qw4qnsrwYitBwRfr pKxTMz/+7e3Nw== Received: by jupiter.universe (Postfix, from userid 1000) id C03AD48015E; Wed, 31 Aug 2022 20:26:35 +0200 (CEST) From: Sebastian Reichel To: Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Sebastian Reichel , kernel@collabora.com Subject: [PATCH 1/6] dt-bindings: arm: rockchip: add rk5388 compatible string to pmu.yaml Date: Wed, 31 Aug 2022 20:26:24 +0200 Message-Id: <20220831182629.79255-2-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220831182629.79255-1-sebastian.reichel@collabora.com> References: <20220831182629.79255-1-sebastian.reichel@collabora.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add the compatible for the pmu mfd on rk3588. Signed-off-by: Sebastian Reichel Acked-by: Rob Herring --- Documentation/devicetree/bindings/arm/rockchip/pmu.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/rockchip/pmu.yaml b/Documentation/devicetree/bindings/arm/rockchip/pmu.yaml index 5ece38065e54..4c645049c15b 100644 --- a/Documentation/devicetree/bindings/arm/rockchip/pmu.yaml +++ b/Documentation/devicetree/bindings/arm/rockchip/pmu.yaml @@ -25,6 +25,7 @@ select: - rockchip,rk3368-pmu - rockchip,rk3399-pmu - rockchip,rk3568-pmu + - rockchip,rk3588-pmu required: - compatible @@ -39,6 +40,7 @@ properties: - rockchip,rk3368-pmu - rockchip,rk3399-pmu - rockchip,rk3568-pmu + - rockchip,rk3588-pmu - const: syscon - const: simple-mfd From patchwork Wed Aug 31 18:26:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 601547 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 34A3FC0502A for ; Wed, 31 Aug 2022 18:31:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232801AbiHaSbg (ORCPT ); Wed, 31 Aug 2022 14:31:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232828AbiHaSbT (ORCPT ); Wed, 31 Aug 2022 14:31:19 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E886104017 for ; Wed, 31 Aug 2022 11:26:40 -0700 (PDT) Received: from jupiter.universe (dyndsl-091-096-057-024.ewe-ip-backbone.de [91.96.57.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: sre) by madras.collabora.co.uk (Postfix) with ESMTPSA id 5CB426601DF1; Wed, 31 Aug 2022 19:26:38 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1661970398; bh=fnsl14rfGYEmkIp2A1dCzXkTFoWLVwiIpOGwws0KkzI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=boeReBOn0Lr3fHRoOEHyNVTKt3eaDhdSwmtKxjEi1PMwPYkFGWjLK3A2ZbPThLDjC W17U/5CUgXUh7EUS5X/abu7docCnqkTd2VyM/KNJ+ph4VM0ndISn5tchI9MjEIHybQ vZDcbSfIwZTTSkhJg4xK437VVnGvdHGttdf7tyQGsRaSoYLxjcwsdCOW65NHenyJJJ Pc0GcrEFBjKcdgtQXf3yn7xyNzKUAGUd/tWe6mh2Szkvw8t+veHK85ZZK56ijPXytk bkVRffJmX157rLwAYUQQgAUVcR4GAWg1UakjSPm92CoAXBqypw2GNB+c/C6mkYrhHA AP/3CNe7WbuIA== Received: by jupiter.universe (Postfix, from userid 1000) id C5E274805C4; Wed, 31 Aug 2022 20:26:35 +0200 (CEST) From: Sebastian Reichel To: Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Sebastian Reichel , kernel@collabora.com Subject: [PATCH 4/6] dt-bindings: mfd: syscon: Add rk3588 QoS register compatible Date: Wed, 31 Aug 2022 20:26:27 +0200 Message-Id: <20220831182629.79255-5-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220831182629.79255-1-sebastian.reichel@collabora.com> References: <20220831182629.79255-1-sebastian.reichel@collabora.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Document rk3588 compatible for QoS registers. Signed-off-by: Sebastian Reichel --- Documentation/devicetree/bindings/mfd/syscon.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mfd/syscon.yaml b/Documentation/devicetree/bindings/mfd/syscon.yaml index c10f0b577268..5369a56b8be1 100644 --- a/Documentation/devicetree/bindings/mfd/syscon.yaml +++ b/Documentation/devicetree/bindings/mfd/syscon.yaml @@ -59,6 +59,7 @@ properties: - rockchip,rk3368-qos - rockchip,rk3399-qos - rockchip,rk3568-qos + - rockchip,rk3588-qos - samsung,exynos3-sysreg - samsung,exynos4-sysreg - samsung,exynos5-sysreg From patchwork Wed Aug 31 18:26:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 601545 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 8C41FECAAD1 for ; Wed, 31 Aug 2022 18:32:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229682AbiHaScO (ORCPT ); Wed, 31 Aug 2022 14:32:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232733AbiHaSbx (ORCPT ); Wed, 31 Aug 2022 14:31:53 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 035621144C7 for ; Wed, 31 Aug 2022 11:27:06 -0700 (PDT) Received: from jupiter.universe (dyndsl-091-096-057-024.ewe-ip-backbone.de [91.96.57.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: sre) by madras.collabora.co.uk (Postfix) with ESMTPSA id 7FC7D6601DF6; Wed, 31 Aug 2022 19:26:40 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1661970400; bh=rEJ+pNRgdZef5+wO4r54ejoJ7KJfO0P7doJa8eL6Wuw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VHybXy1rG+cbGD+ICJoUBg8mvnLGc2CxECqsl43aXPn0vn1ebyPefRiY1x4C/uRzH kYyUKvQ4iVgMVARiw2StM5aTmm4eO5CEaMyp8ebzBTWAj61y0wDngUFnYIhkZPYgO0 XQtnxX/su3lbvoqsQGIrtpNhwfRkx5IDAI0VTXAt5S8jTiyEZsmDeAzRuDiuqJsAd3 2JpfU41NFuiR7PH9BQ2tSQt0NR1XtFm8Ue9n2mdBVvKzXLU+UpMkMfyBjc6a1Zgeq4 TJKa2bQGYP9Iw1cSJbsjTFfa3rlcQiswYnkVqDxUJJkSPK1pAoaSPRtBo/q7Mmh0t1 ZC+LHGyJtetHw== Received: by jupiter.universe (Postfix, from userid 1000) id C794B4805C5; Wed, 31 Aug 2022 20:26:35 +0200 (CEST) From: Sebastian Reichel To: Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Elaine Zhang , kernel@collabora.com, Sebastian Reichel Subject: [PATCH 5/6] soc: rockchip: power-domain: do not enable PD Date: Wed, 31 Aug 2022 20:26:28 +0200 Message-Id: <20220831182629.79255-6-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220831182629.79255-1-sebastian.reichel@collabora.com> References: <20220831182629.79255-1-sebastian.reichel@collabora.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Elaine Zhang It's not need to power on all pd when add pm domain. Instead use PD's real status in pm_genpd_init(). Signed-off-by: Elaine Zhang Signed-off-by: Sebastian Reichel --- drivers/soc/rockchip/pm_domains.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/soc/rockchip/pm_domains.c b/drivers/soc/rockchip/pm_domains.c index 89795abac951..a59aa3b89a72 100644 --- a/drivers/soc/rockchip/pm_domains.c +++ b/drivers/soc/rockchip/pm_domains.c @@ -595,14 +595,6 @@ static int rockchip_pm_add_one_domain(struct rockchip_pmu *pmu, } } - error = rockchip_pd_power(pd, true); - if (error) { - dev_err(pmu->dev, - "failed to power on domain '%pOFn': %d\n", - node, error); - goto err_unprepare_clocks; - } - if (pd->info->name) pd->genpd.name = pd->info->name; else @@ -614,7 +606,7 @@ static int rockchip_pm_add_one_domain(struct rockchip_pmu *pmu, pd->genpd.flags = GENPD_FLAG_PM_CLK; if (pd_info->active_wakeup) pd->genpd.flags |= GENPD_FLAG_ACTIVE_WAKEUP; - pm_genpd_init(&pd->genpd, NULL, false); + pm_genpd_init(&pd->genpd, NULL, !rockchip_pmu_domain_is_on(pd)); pmu->genpd_data.domains[id] = &pd->genpd; return 0;