From mboxrd@z Thu Jan 1 00:00:00 1970 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 5E4A8C4167B for ; Sat, 2 Dec 2023 17:47:49 +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:References:In-Reply-To: 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: List-Owner; bh=sYZxS+Y4+mxTfjZTxuC6nkWaAE2bJxLwA0pjqP5BLM0=; b=TB0zRjR1bIOeqL +l8Llz30NhWY5EjDSrK82JMv74AU1b7x4ZlpgizOJ1QnoD3Udl8IziNYoTD/ZKBJX/d1EYPhpqEoZ A2eyJR6AbaTmhWaQXMRzkMO512yGQrdbk13r2XK05Hs9XQvIOoCDzQXUJREjnLZl63GaGpm/ZjV85 yDsa0g5btwfzUjHXXDRibg+y1LbQ6BlhIy4RS6tWp9zm8Wm6R6C3dSjxT3qedhy+zfJMB0NdLcyg3 ZAyLkUf6sCc1MkdVdn7wVKgZtAAR71ro3iJznUOT6ACw9+71r39+qfCQHw/BL92BcsgZ3jVtRLR3X SbTXiAZMdXQamcQSxE4Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r9U5C-00FxRx-3C; Sat, 02 Dec 2023 17:47:14 +0000 Received: from gloria.sntech.de ([185.11.138.130]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r9U59-00FxRQ-1U; Sat, 02 Dec 2023 17:47:12 +0000 Received: from i53875b61.versanet.de ([83.135.91.97] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r9U4v-0003Lc-Qz; Sat, 02 Dec 2023 18:46:57 +0100 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Conor Dooley , Krzysztof Kozlowski , Rob Herring , Alex Bee Cc: Daniel Vetter , David Airlie , Thomas Zimmermann , Maxime Ripard , Maarten Lankhorst , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-pm@vger.kernel.org Subject: Re: [PATCH v2 2/5] ARM: dts: rockchip: Add power-controller for RK3128 Date: Sat, 02 Dec 2023 18:46:56 +0100 Message-ID: <4891026.6YUMPnJmAY@diego> In-Reply-To: <7a6eed43-477a-48a4-bd64-4528da920ffd@gmail.com> References: <20231202125144.66052-1-knaerzche@gmail.com> <6926340.F8r316W7xa@diego> <7a6eed43-477a-48a4-bd64-4528da920ffd@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231202_094711_504309_89CBA6CA X-CRM114-Status: GOOD ( 30.47 ) 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: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Alex, Am Samstag, 2. Dezember 2023, 17:36:15 CET schrieb Alex Bee: > Am 02.12.23 um 16:51 schrieb Heiko St=FCbner: > > Am Samstag, 2. Dezember 2023, 13:51:41 CET schrieb Alex Bee: > >> Add power controller and qos nodes for RK3128 in order to use > >> them as powerdomains. > > does the power-domain controller work with the incomplete set of > > pm-domains too? > = > Yes, it does - the missing domains can request idle only and can't be = > powered on/off - if no one requests idle they are just up all the time. > = > > What I have in mind is > > - adding the power-controller node with the existing set of power-domai= ns > > - the gpu pm-domain is in there > > - adding the gpu parts > = > My main concern about adding them later was the change of the ABI after = > they've been exposed in the SoC DT. If that's not an issue - sure: I can = > add them in a separate series. An ABI change would be _changing_ the domain-ids in the rk3128-power.h I think :-) . Right now the existing domain ids in the header are already exposed to the world, so someone could already use them, but not the new ones. Heiko > > And a second series with > > - patch1 from here > > - a dts patch adding the additional pm-domains to rk3128.dtsi > > - I guess patch1 also should be split into a patch adding the binding-i= ds > > and a separate patch for the code addition. > = > Yeah, I noticed this also :) > = > Regards, > = > Alex > = > > > > > > Heiko > > > >> Signed-off-by: Alex Bee > >> --- > >> arch/arm/boot/dts/rockchip/rk3128.dtsi | 101 +++++++++++++++++++++++= ++ > >> 1 file changed, 101 insertions(+) > >> > >> diff --git a/arch/arm/boot/dts/rockchip/rk3128.dtsi b/arch/arm/boot/dt= s/rockchip/rk3128.dtsi > >> index 4e8b38604ecd..b72905db04f7 100644 > >> --- a/arch/arm/boot/dts/rockchip/rk3128.dtsi > >> +++ b/arch/arm/boot/dts/rockchip/rk3128.dtsi > >> @@ -8,6 +8,7 @@ > >> #include > >> #include > >> #include > >> +#include > >> = > >> / { > >> compatible =3D "rockchip,rk3128"; > >> @@ -133,6 +134,106 @@ smp-sram@0 { > >> pmu: syscon@100a0000 { > >> compatible =3D "rockchip,rk3128-pmu", "syscon", "simple-mfd"; > >> reg =3D <0x100a0000 0x1000>; > >> + > >> + power: power-controller { > >> + compatible =3D "rockchip,rk3128-power-controller"; > >> + #power-domain-cells =3D <1>; > >> + #address-cells =3D <1>; > >> + #size-cells =3D <0>; > >> + > >> + power-domain@RK3128_PD_VIO { > >> + reg =3D ; > >> + clocks =3D <&cru ACLK_CIF>, > >> + <&cru HCLK_CIF>, > >> + <&cru DCLK_EBC>, > >> + <&cru HCLK_EBC>, > >> + <&cru ACLK_IEP>, > >> + <&cru HCLK_IEP>, > >> + <&cru ACLK_LCDC0>, > >> + <&cru HCLK_LCDC0>, > >> + <&cru PCLK_MIPI>, > >> + <&cru ACLK_RGA>, > >> + <&cru HCLK_RGA>, > >> + <&cru ACLK_VIO0>, > >> + <&cru ACLK_VIO1>, > >> + <&cru HCLK_VIO>, > >> + <&cru HCLK_VIO_H2P>, > >> + <&cru DCLK_VOP>, > >> + <&cru SCLK_VOP>; > >> + pm_qos =3D <&qos_ebc>, > >> + <&qos_iep>, > >> + <&qos_lcdc>, > >> + <&qos_rga>, > >> + <&qos_vip>; > >> + #power-domain-cells =3D <0>; > >> + }; > >> + > >> + power-domain@RK3128_PD_VIDEO { > >> + reg =3D ; > >> + clocks =3D <&cru ACLK_VDPU>, > >> + <&cru HCLK_VDPU>, > >> + <&cru ACLK_VEPU>, > >> + <&cru HCLK_VEPU>, > >> + <&cru SCLK_HEVC_CORE>; > >> + pm_qos =3D <&qos_vpu>; > >> + #power-domain-cells =3D <0>; > >> + }; > >> + > >> + power-domain@RK3128_PD_GPU { > >> + reg =3D ; > >> + clocks =3D <&cru ACLK_GPU>; > >> + pm_qos =3D <&qos_gpu>; > >> + #power-domain-cells =3D <0>; > >> + }; > >> + > >> + power-domain@RK3128_PD_CRYPTO { > >> + reg =3D ; > >> + clocks =3D <&cru HCLK_CRYPTO>, > >> + <&cru SCLK_CRYPTO>; > >> + pm_qos =3D <&qos_crypto>; > >> + #power-domain-cells =3D <0>; > >> + }; > >> + }; > >> + }; > >> + > >> + qos_crypto: qos@10128080 { > >> + compatible =3D "rockchip,rk3128-qos", "syscon"; > >> + reg =3D <0x10128080 0x20>; > >> + }; > >> + > >> + qos_gpu: qos@1012d000 { > >> + compatible =3D "rockchip,rk3128-qos", "syscon"; > >> + reg =3D <0x1012d000 0x20>; > >> + }; > >> + > >> + qos_vpu: qos@1012e000 { > >> + compatible =3D "rockchip,rk3128-qos", "syscon"; > >> + reg =3D <0x1012e000 0x20>; > >> + }; > >> + > >> + qos_rga: qos@1012f000 { > >> + compatible =3D "rockchip,rk3128-qos", "syscon"; > >> + reg =3D <0x1012f000 0x20>; > >> + }; > >> + > >> + qos_ebc: qos@1012f080 { > >> + compatible =3D "rockchip,rk3128-qos", "syscon"; > >> + reg =3D <0x1012f080 0x20>; > >> + }; > >> + > >> + qos_iep: qos@1012f100 { > >> + compatible =3D "rockchip,rk3128-qos", "syscon"; > >> + reg =3D <0x1012f100 0x20>; > >> + }; > >> + > >> + qos_lcdc: qos@1012f180 { > >> + compatible =3D "rockchip,rk3128-qos", "syscon"; > >> + reg =3D <0x1012f180 0x20>; > >> + }; > >> + > >> + qos_vip: qos@1012f200 { > >> + compatible =3D "rockchip,rk3128-qos", "syscon"; > >> + reg =3D <0x1012f200 0x20>; > >> }; > >> = > >> gic: interrupt-controller@10139000 { > >> > > > > > > > = _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel