Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1657959rdb; Sat, 2 Dec 2023 04:52:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IHoOfG0NT/cbeEkUSG2dtpAJXZl8VcguLKTyWqiEAB7nD5Z7kRnKj+m6eIOrAcRq3HoWhP9 X-Received: by 2002:a05:6a20:3d95:b0:187:d4e3:c13a with SMTP id s21-20020a056a203d9500b00187d4e3c13amr1564250pzi.22.1701521536315; Sat, 02 Dec 2023 04:52:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701521536; cv=none; d=google.com; s=arc-20160816; b=F2ldy6dtCL7onHVGX3Ijc3EC2wG/YurtYn8JbNKJBO5m66vhUqLYKMe1vzv/2q/vGN TOk4FgRu0v7KxtG+h6pouqZ0auURqkm8Evc0y3VJXLgNzrtp5t1vpCWbvGJoJqGTrkNr eKqWaYXCzJ+C6jluMWtz14Ag60OpN+8fmPiGvPz3RSTOe6kDB1kqKA7bAZAaEC16nDcz kI0rhMVj6kXGl5yaDr/LP4p1N0X3L9dot3wMl/mJhWS/tBjDbbrv0ebWWrtoxrQPIC+G AAsAbhNiggJw3r7mVatqSlhuBJ1gcy69qr2MOHy9ReCn81Smi/l3Ld7CqrdDxc8LoRAM jFGA== 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 :dkim-signature; bh=ZZ7Vk4rlYI4wpR0DprPRhwDbWK92/MFMHHXtx/iHz6w=; fh=EsUCcIHjubL1z5kQw8qtdbtZco0984l+/07aD/SWaj4=; b=0ob9WfnfPFYRTrvD0TsB4amvdVQ+hK4G79ZSCdr3prRbBP25gvddgSds/Y8Fity2QD Wql/p3DBVC/y4qC/xYci011VTQwAVoh9ay+0Cu6Kr02Wt0u14rtv20Gp+Bdlng5UWuww qM9Z5F1yCFsijyKeB5iRoa/3mkYyEel5aqNhQA0zBFl8CHB+ZOAHVWtcYzj0DbpMWl8V VYimzuPAyqbRSRbXx+mdwA/cLbZkOUxvcM0/4VZUACanyM17absPXY7uJo/gaCaggLAT D3hu8ud5lhfTQ6BAHooT7pcYDT0zYhXX6Cru79RkXLDJTaxzropwynQrftG8JH3znWsA y9vA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FdlGoiv5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id y16-20020a056a00181000b006cc23e358bcsi5016707pfa.1.2023.12.02.04.52.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Dec 2023 04:52:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FdlGoiv5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 48602805F9F3; Sat, 2 Dec 2023 04:52:15 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232750AbjLBMwD (ORCPT + 99 others); Sat, 2 Dec 2023 07:52:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbjLBMv5 (ORCPT ); Sat, 2 Dec 2023 07:51:57 -0500 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F221C11B; Sat, 2 Dec 2023 04:52:01 -0800 (PST) Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-40b54261524so32570335e9.3; Sat, 02 Dec 2023 04:52:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701521520; x=1702126320; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ZZ7Vk4rlYI4wpR0DprPRhwDbWK92/MFMHHXtx/iHz6w=; b=FdlGoiv5Ilmiq6J7++JRxUlIW/smuP2FwY+0SRSD2s+X2SumG2VB8mqUmq38XfjX8J SnLdhnkTd0OU88aCEyE8SXc3VLSvyC5GjFWPifgGMAP5uwT5ipgjoSKEje/4fr1D1xFC neQkmWgCK5V2yHfJ+8R9yW9mqKiZsUptUFF1M6h3dab2hA5VmAgKhWW/NPMXS8BMFk67 zKia/NyVyXtGEa5k8NrGk+rSJNVcNMDJvwxEoZSlY2rugjq3MvQpNGwIK2bpFdr6g+Pr J+GNFWCypJbx0gFPJZUtJc0A1EjTM2pShNxYiZmz7pMoJI/f4XFayEqc3tV5NDe5TqMI TGFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701521520; x=1702126320; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ZZ7Vk4rlYI4wpR0DprPRhwDbWK92/MFMHHXtx/iHz6w=; b=ltc6JkYkArAXeurbBuD6hJkHys4uhnzP04x7ewLisztYejyGz9wganAUSxZA3aqTTs RUPko1iZNxadMJIvStTd3XjINZ8kvq+qEn1EjxJa2/zacfpcSQy0mnZa7I+8aUzLto7Y H9GRY0pkxUHBoP1/979d4BeqJhfsDRudtisLGyJmC3w7OLmw4EBCYus8e2D1++9SYN98 2iMrHy4scNGQACWEGea03is940TE36iJ/BQVBGhAzrb8YpmkdTBUIlCN07niWwsdPpJo VvJNFG7m/L/7Rk4D5H9jfWmQda5A1BQqdSPqauXYLuFcM+MJlFtUwI451RjowwwJMgWu 8hzQ== X-Gm-Message-State: AOJu0YytPMo8C1j4qpOUFUjDlCJmZJ41zz7w5VjVYSZDvZYzULpOFuah DxsQwNjULkfbOcLzP7kL/A== X-Received: by 2002:a05:600c:3b85:b0:40b:5e21:dd1a with SMTP id n5-20020a05600c3b8500b0040b5e21dd1amr414964wms.72.1701521520134; Sat, 02 Dec 2023 04:52:00 -0800 (PST) Received: from U4.lan ([2a02:810b:f40:4300:908e:b829:354b:f8ee]) by smtp.gmail.com with ESMTPSA id g5-20020a170906198500b009c5c5c2c5a4sm3018161ejd.219.2023.12.02.04.51.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Dec 2023 04:51:59 -0800 (PST) From: Alex Bee To: Heiko Stuebner , Conor Dooley , Krzysztof Kozlowski , Rob Herring 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: [PATCH v2 1/5] pmdomain: rockchip: Add missing powerdomains for RK3128 Date: Sat, 2 Dec 2023 13:51:40 +0100 Message-ID: <20231202125144.66052-2-knaerzche@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231202125144.66052-1-knaerzche@gmail.com> References: <20231202125144.66052-1-knaerzche@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Sat, 02 Dec 2023 04:52:15 -0800 (PST) For RK3128 the powerdomains PD_PERI, PD_SYS and PD_CRYPTO are currently missing. Add them. Signed-off-by: Alex Bee --- drivers/pmdomain/rockchip/pm-domains.c | 13 ++++++++----- include/dt-bindings/power/rk3128-power.h | 3 +++ 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/drivers/pmdomain/rockchip/pm-domains.c b/drivers/pmdomain/rockchip/pm-domains.c index 9b76b62869d0..62ba4129f6bb 100644 --- a/drivers/pmdomain/rockchip/pm-domains.c +++ b/drivers/pmdomain/rockchip/pm-domains.c @@ -998,11 +998,14 @@ static const struct rockchip_domain_info rk3066_pm_domains[] = { }; static const struct rockchip_domain_info rk3128_pm_domains[] = { - [RK3128_PD_CORE] = DOMAIN_RK3288("core", BIT(0), BIT(0), BIT(4), false), - [RK3128_PD_MSCH] = DOMAIN_RK3288("msch", 0, 0, BIT(6), true), - [RK3128_PD_VIO] = DOMAIN_RK3288("vio", BIT(3), BIT(3), BIT(2), false), - [RK3128_PD_VIDEO] = DOMAIN_RK3288("video", BIT(2), BIT(2), BIT(1), false), - [RK3128_PD_GPU] = DOMAIN_RK3288("gpu", BIT(1), BIT(1), BIT(3), false), + [RK3128_PD_CORE] = DOMAIN_RK3288("core", BIT(0), BIT(0), BIT(4), false), + [RK3128_PD_MSCH] = DOMAIN_RK3288("msch", 0, 0, BIT(6), true), + [RK3128_PD_VIO] = DOMAIN_RK3288("vio", BIT(3), BIT(3), BIT(2), false), + [RK3128_PD_VIDEO] = DOMAIN_RK3288("video", BIT(2), BIT(2), BIT(1), false), + [RK3128_PD_GPU] = DOMAIN_RK3288("gpu", BIT(1), BIT(1), BIT(3), false), + [RK3128_PD_PERI] = DOMAIN_RK3288("peri", 0, 0, BIT(0), false), + [RK3128_PD_SYS] = DOMAIN_RK3288("sys", 0, 0, BIT(5), true), + [RK3128_PD_CRYPTO] = DOMAIN_RK3288("crypto", 0, 0, BIT(7), false), }; static const struct rockchip_domain_info rk3188_pm_domains[] = { diff --git a/include/dt-bindings/power/rk3128-power.h b/include/dt-bindings/power/rk3128-power.h index c051dc3108db..68af6c68c272 100644 --- a/include/dt-bindings/power/rk3128-power.h +++ b/include/dt-bindings/power/rk3128-power.h @@ -10,5 +10,8 @@ #define RK3128_PD_VIDEO 2 #define RK3128_PD_GPU 3 #define RK3128_PD_MSCH 4 +#define RK3128_PD_PERI 5 +#define RK3128_PD_SYS 6 +#define RK3128_PD_CRYPTO 7 #endif -- 2.43.0