From: Dave Stevenson <dave.stevenson@raspberrypi.com>
To: Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>,
Florian Fainelli <florian.fainelli@broadcom.com>,
Broadcom internal kernel review list
<bcm-kernel-feedback-list@broadcom.com>,
Ray Jui <rjui@broadcom.com>,
Scott Branden <sbranden@broadcom.com>
Cc: linux-clk@vger.kernel.org, linux-rpi-kernel@lists.infradead.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org,
Dave Stevenson <dave.stevenson@raspberrypi.com>,
Maxime Ripard <mripard@kernel.org>
Subject: [PATCH 5/5] clk: bcm: rpi: Add disp clock
Date: Thu, 16 Jan 2025 16:24:12 +0000 [thread overview]
Message-ID: <20250116-bcm2712-clk-updates-v1-5-10bc92ffbf41@raspberrypi.com> (raw)
In-Reply-To: <20250116-bcm2712-clk-updates-v1-0-10bc92ffbf41@raspberrypi.com>
From: Maxime Ripard <mripard@kernel.org>
BCM2712 has an extra clock exposed by the firmware called DISP, and used
by (at least) the HVS. Let's add it to the list of clocks to register in
Linux.
Acked-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
---
drivers/clk/bcm/clk-raspberrypi.c | 5 +++++
include/soc/bcm2835/raspberrypi-firmware.h | 1 +
2 files changed, 6 insertions(+)
diff --git a/drivers/clk/bcm/clk-raspberrypi.c b/drivers/clk/bcm/clk-raspberrypi.c
index b12d86720207..0e1fe3759530 100644
--- a/drivers/clk/bcm/clk-raspberrypi.c
+++ b/drivers/clk/bcm/clk-raspberrypi.c
@@ -34,6 +34,7 @@ static char *rpi_firmware_clk_names[] = {
[RPI_FIRMWARE_M2MC_CLK_ID] = "m2mc",
[RPI_FIRMWARE_PIXEL_BVB_CLK_ID] = "pixel-bvb",
[RPI_FIRMWARE_VEC_CLK_ID] = "vec",
+ [RPI_FIRMWARE_DISP_CLK_ID] = "disp",
};
#define RPI_FIRMWARE_STATE_ENABLE_BIT BIT(0)
@@ -139,6 +140,10 @@ raspberrypi_clk_variants[RPI_FIRMWARE_NUM_CLK_ID] = {
.export = true,
.minimize = true,
},
+ [RPI_FIRMWARE_DISP_CLK_ID] = {
+ .export = true,
+ .minimize = true,
+ },
};
/*
diff --git a/include/soc/bcm2835/raspberrypi-firmware.h b/include/soc/bcm2835/raspberrypi-firmware.h
index 73cac8d0287e..e1f87fbfe554 100644
--- a/include/soc/bcm2835/raspberrypi-firmware.h
+++ b/include/soc/bcm2835/raspberrypi-firmware.h
@@ -152,6 +152,7 @@ enum rpi_firmware_clk_id {
RPI_FIRMWARE_M2MC_CLK_ID,
RPI_FIRMWARE_PIXEL_BVB_CLK_ID,
RPI_FIRMWARE_VEC_CLK_ID,
+ RPI_FIRMWARE_DISP_CLK_ID,
RPI_FIRMWARE_NUM_CLK_ID,
};
--
2.34.1
next prev parent reply other threads:[~2025-01-16 16:24 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-16 16:24 [PATCH 0/5] clk: bcm: rpi: Add additional clocks for 2712 Dave Stevenson
2025-01-16 16:24 ` [PATCH 1/5] clk: bcm: rpi: Add ISP to exported clocks Dave Stevenson
2025-01-16 17:44 ` Florian Fainelli
2025-01-16 21:28 ` Stephen Boyd
2025-01-16 16:24 ` [PATCH 2/5] clk: bcm: rpi: Allow cpufreq driver to also adjust gpu clocks Dave Stevenson
2025-01-16 17:44 ` Florian Fainelli
2025-01-16 21:28 ` Stephen Boyd
2025-01-16 16:24 ` [PATCH 3/5] clk: bcm: rpi: Enable minimize for all firmware clocks Dave Stevenson
2025-01-16 17:45 ` Florian Fainelli
2025-01-16 21:28 ` Stephen Boyd
2025-01-16 16:24 ` [PATCH 4/5] clk: bcm: rpi: Create helper to retrieve private data Dave Stevenson
2025-01-16 17:45 ` Florian Fainelli
2025-01-16 21:29 ` Stephen Boyd
2025-01-16 16:24 ` Dave Stevenson [this message]
2025-01-16 17:45 ` [PATCH 5/5] clk: bcm: rpi: Add disp clock Florian Fainelli
2025-01-16 21:29 ` Stephen Boyd
2025-01-16 19:11 ` [PATCH 0/5] clk: bcm: rpi: Add additional clocks for 2712 Stefan Wahren
2025-01-16 19:30 ` Dave Stevenson
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=20250116-bcm2712-clk-updates-v1-5-10bc92ffbf41@raspberrypi.com \
--to=dave.stevenson@raspberrypi.com \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=florian.fainelli@broadcom.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rpi-kernel@lists.infradead.org \
--cc=mripard@kernel.org \
--cc=mturquette@baylibre.com \
--cc=rjui@broadcom.com \
--cc=sboyd@kernel.org \
--cc=sbranden@broadcom.com \
/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
all inboxes | Powered by JetHome®