From: Alex Bee <knaerzche@gmail.com>
To: Heiko Stuebner <heiko@sntech.de>,
Conor Dooley <conor+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Rob Herring <robh+dt@kernel.org>
Cc: Daniel Vetter <daniel@ffwll.ch>, David Airlie <airlied@gmail.com>,
Thomas Zimmermann <tzimmermann@suse.de>,
Maxime Ripard <mripard@kernel.org>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
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 <knaerzche@gmail.com>
Subject: [PATCH v2 1/5] pmdomain: rockchip: Add missing powerdomains for RK3128
Date: Sat, 2 Dec 2023 13:51:40 +0100 [thread overview]
Message-ID: <20231202125144.66052-2-knaerzche@gmail.com> (raw)
In-Reply-To: <20231202125144.66052-1-knaerzche@gmail.com>
For RK3128 the powerdomains PD_PERI, PD_SYS and PD_CRYPTO are currently
missing.
Add them.
Signed-off-by: Alex Bee <knaerzche@gmail.com>
---
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
next prev parent reply other threads:[~2023-12-02 12:52 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-02 12:51 [PATCH v2 0/5] Add power-controller and gpu for RK3128 Alex Bee
2023-12-02 12:51 ` Alex Bee [this message]
2023-12-08 15:29 ` [PATCH v2 1/5] pmdomain: rockchip: Add missing powerdomains " Rob Herring
2023-12-02 12:51 ` [PATCH v2 2/5] ARM: dts: rockchip: Add power-controller " Alex Bee
2023-12-02 15:51 ` Heiko Stübner
2023-12-02 16:36 ` Alex Bee
2023-12-02 17:46 ` Heiko Stübner
2023-12-03 16:05 ` Alex Bee
2023-12-03 16:42 ` Heiko Stübner
2023-12-04 15:23 ` Alex Bee
2023-12-02 12:51 ` [PATCH v2 3/5] dt-bindings: gpu: mali-utgard: Add Rockchip RK3128 compatible Alex Bee
2023-12-02 12:51 ` [PATCH v2 4/5] ARM: dts: rockchip: Add GPU node for RK3128 Alex Bee
2023-12-02 12:51 ` [PATCH v2 5/5] ARM: dts: rockchip: Enable GPU for XPI-3128 Alex Bee
2023-12-02 15:57 ` (subset) [PATCH v2 0/5] Add power-controller and gpu for RK3128 Heiko Stuebner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231202125144.66052-2-knaerzche@gmail.com \
--to=knaerzche@gmail.com \
--cc=airlied@gmail.com \
--cc=conor+dt@kernel.org \
--cc=daniel@ffwll.ch \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=heiko@sntech.de \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=robh+dt@kernel.org \
--cc=tzimmermann@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox