Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1748714rdb; Sat, 2 Dec 2023 07:52:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IG7PnAO/uzCE8OmrkmJRNt2gRSOiM1skECKcrRIHnAk93o4Iy3rWQsOJUMQ0zYs3AWcZEmB X-Received: by 2002:a17:902:ea0d:b0:1d0:6ffd:e2b3 with SMTP id s13-20020a170902ea0d00b001d06ffde2b3mr1124940plg.77.1701532366724; Sat, 02 Dec 2023 07:52:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701532366; cv=none; d=google.com; s=arc-20160816; b=vQcH9M7F5zVncJ2EL9FoG9u2vZBkTdgMFPtx+UJ0CaZKXKngFwRO0Z5oM+Rh4GxcGt 9EucOEIK4jUHZyoAiDvXyIn2ZxSrRactj7x1lQ+I4mwi/FsID3mk0L0/N88TNtd4n0HV HZUc97iMi7WfjCNLBK1I/BvV4c2/aZHcGTe/6IzHhOzQlp4/LlmKnx+fNjYXffI5APay kYuLvXuW3oa41aX7HuIRRI53kU0MN77zYSin59EYj45k0k5f8IkGzXPCnw+64IHNPePY IO/R/g6mwsdkzThVnXxRxJrV72PBVZO0GCROd4g14xe1RA5ox1LzHX3YPcm7dN/KtKOu 2uwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=uqKatuD4xJse9Q3luR6gEwFgOrDnFZ7INC9ZJ1VIkKw=; fh=uc9aHQSuwcdgHWmGsnqCX3fZo5Z0z0ubHbYfcseBW9c=; b=loiq+kbjMnkPkyk+OD4O5FBshecCIgbBirwd8FqfSFyFIJUFjfTa/biiYaD/4v0mcW 5IrjZoOP+Jq53FRjtzOvVba3R5iQomeeH8x7UYgO4r9OUucVs8QIZ7d33L5PdBTF2Ptq 2M0Ez/hKuhEFRzpepwY4aSTFioK83WR9J6gfd/uw6JO1+UjKVJDPPf/ZvCQVankfDib8 rI3sqzfy56uOoCAoMbRkTID/PX/10T94rR736KQJQLw/j9hl6rrLukocUhk+2aP88wkl OBKeWbBkTvTEZfe3rJ4T6EO5Wfyh5livsThRE7EN+1BjPYeL1Hxm6SugfngOVGqX36KV GnjQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id bi9-20020a170902bf0900b001cfb4a3f2acsi4875148plb.11.2023.12.02.07.52.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Dec 2023 07:52:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 60A048041EC6; Sat, 2 Dec 2023 07:52:43 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233072AbjLBPwJ (ORCPT + 99 others); Sat, 2 Dec 2023 10:52:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233000AbjLBPwI (ORCPT ); Sat, 2 Dec 2023 10:52:08 -0500 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15295129; Sat, 2 Dec 2023 07:52:13 -0800 (PST) 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 1r9SHd-0002AT-MB; Sat, 02 Dec 2023 16:51: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, Alex Bee Subject: Re: [PATCH v2 2/5] ARM: dts: rockchip: Add power-controller for RK3128 Date: Sat, 02 Dec 2023 16:51:56 +0100 Message-ID: <6926340.F8r316W7xa@diego> In-Reply-To: <20231202125144.66052-3-knaerzche@gmail.com> References: <20231202125144.66052-1-knaerzche@gmail.com> <20231202125144.66052-3-knaerzche@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Sat, 02 Dec 2023 07:52:43 -0800 (PST) Hi Alex, 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? What I have in mind is - adding the power-controller node with the existing set of power-domains - the gpu pm-domain is in there - adding the gpu parts 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-ids and a separate patch for the code addition. 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/dts/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 = "rockchip,rk3128"; > @@ -133,6 +134,106 @@ smp-sram@0 { > pmu: syscon@100a0000 { > compatible = "rockchip,rk3128-pmu", "syscon", "simple-mfd"; > reg = <0x100a0000 0x1000>; > + > + power: power-controller { > + compatible = "rockchip,rk3128-power-controller"; > + #power-domain-cells = <1>; > + #address-cells = <1>; > + #size-cells = <0>; > + > + power-domain@RK3128_PD_VIO { > + reg = ; > + clocks = <&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 = <&qos_ebc>, > + <&qos_iep>, > + <&qos_lcdc>, > + <&qos_rga>, > + <&qos_vip>; > + #power-domain-cells = <0>; > + }; > + > + power-domain@RK3128_PD_VIDEO { > + reg = ; > + clocks = <&cru ACLK_VDPU>, > + <&cru HCLK_VDPU>, > + <&cru ACLK_VEPU>, > + <&cru HCLK_VEPU>, > + <&cru SCLK_HEVC_CORE>; > + pm_qos = <&qos_vpu>; > + #power-domain-cells = <0>; > + }; > + > + power-domain@RK3128_PD_GPU { > + reg = ; > + clocks = <&cru ACLK_GPU>; > + pm_qos = <&qos_gpu>; > + #power-domain-cells = <0>; > + }; > + > + power-domain@RK3128_PD_CRYPTO { > + reg = ; > + clocks = <&cru HCLK_CRYPTO>, > + <&cru SCLK_CRYPTO>; > + pm_qos = <&qos_crypto>; > + #power-domain-cells = <0>; > + }; > + }; > + }; > + > + qos_crypto: qos@10128080 { > + compatible = "rockchip,rk3128-qos", "syscon"; > + reg = <0x10128080 0x20>; > + }; > + > + qos_gpu: qos@1012d000 { > + compatible = "rockchip,rk3128-qos", "syscon"; > + reg = <0x1012d000 0x20>; > + }; > + > + qos_vpu: qos@1012e000 { > + compatible = "rockchip,rk3128-qos", "syscon"; > + reg = <0x1012e000 0x20>; > + }; > + > + qos_rga: qos@1012f000 { > + compatible = "rockchip,rk3128-qos", "syscon"; > + reg = <0x1012f000 0x20>; > + }; > + > + qos_ebc: qos@1012f080 { > + compatible = "rockchip,rk3128-qos", "syscon"; > + reg = <0x1012f080 0x20>; > + }; > + > + qos_iep: qos@1012f100 { > + compatible = "rockchip,rk3128-qos", "syscon"; > + reg = <0x1012f100 0x20>; > + }; > + > + qos_lcdc: qos@1012f180 { > + compatible = "rockchip,rk3128-qos", "syscon"; > + reg = <0x1012f180 0x20>; > + }; > + > + qos_vip: qos@1012f200 { > + compatible = "rockchip,rk3128-qos", "syscon"; > + reg = <0x1012f200 0x20>; > }; > > gic: interrupt-controller@10139000 { >