* [PATCH] clk: bcm: rpi: Add disp clock
@ 2024-05-31 9:27 Ivan T. Ivanov
2024-05-31 9:55 ` Stefan Wahren
0 siblings, 1 reply; 6+ messages in thread
From: Ivan T. Ivanov @ 2024-05-31 9:27 UTC (permalink / raw)
To: sboyd
Cc: florian.fainelli, wahrenst, linux-clk, linux-arm-kernel,
Maxime Ripard, Ivan T . Ivanov
From: Maxime Ripard <maxime@cerno.tech>
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.
Without this new definition driver fails at probe on BCM2712.
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Signed-off-by: Ivan T. Ivanov <iivanov@suse.de>
---
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 4d411408e4af..fabd5595e9cd 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)
@@ -124,6 +125,10 @@ raspberrypi_clk_variants[RPI_FIRMWARE_NUM_CLK_ID] = {
[RPI_FIRMWARE_VEC_CLK_ID] = {
.export = 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.43.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] clk: bcm: rpi: Add disp clock
2024-05-31 9:27 [PATCH] clk: bcm: rpi: Add disp clock Ivan T. Ivanov
@ 2024-05-31 9:55 ` Stefan Wahren
2024-05-31 10:20 ` Ivan T. Ivanov
0 siblings, 1 reply; 6+ messages in thread
From: Stefan Wahren @ 2024-05-31 9:55 UTC (permalink / raw)
To: Ivan T. Ivanov, sboyd
Cc: florian.fainelli, linux-clk, linux-arm-kernel, Maxime Ripard,
Andrea della Porta
Hi Ivan,
Am 31.05.24 um 11:27 schrieb Ivan T. Ivanov:
> From: Maxime Ripard <maxime@cerno.tech>
>
> 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.
>
> Without this new definition driver fails at probe on BCM2712.
could you please explain the relation to Andrea's series [1]?
How can this occur, because there is no Raspberry Pi 5 support in Mainline?
[1] -
https://lore.kernel.org/linux-arm-kernel/cover.1717061147.git.andrea.porta@suse.com/
>
> Signed-off-by: Maxime Ripard <maxime@cerno.tech>
> Signed-off-by: Ivan T. Ivanov <iivanov@suse.de>
> ---
> 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 4d411408e4af..fabd5595e9cd 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)
> @@ -124,6 +125,10 @@ raspberrypi_clk_variants[RPI_FIRMWARE_NUM_CLK_ID] = {
> [RPI_FIRMWARE_VEC_CLK_ID] = {
> .export = 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,
> };
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] clk: bcm: rpi: Add disp clock
2024-05-31 9:55 ` Stefan Wahren
@ 2024-05-31 10:20 ` Ivan T. Ivanov
2024-05-31 11:06 ` Stefan Wahren
0 siblings, 1 reply; 6+ messages in thread
From: Ivan T. Ivanov @ 2024-05-31 10:20 UTC (permalink / raw)
To: Stefan Wahren
Cc: sboyd, florian.fainelli, linux-clk, linux-arm-kernel,
Maxime Ripard, Andrea della Porta
Hi,
On 05-31 11:55, Stefan Wahren wrote:
>
> Hi Ivan,
>
> Am 31.05.24 um 11:27 schrieb Ivan T. Ivanov:
> > From: Maxime Ripard <maxime@cerno.tech>
> >
> > 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.
> >
> > Without this new definition driver fails at probe on BCM2712.
> could you please explain the relation to Andrea's series [1]?
>
> How can this occur, because there is no Raspberry Pi 5 support in Mainline?
I am using few out-of-tree drivers on top of the Andrea's patch-set
and noticed the failure, so decided to prepare the road for RPi5.
I am not entirely sure what are you asking.
Regards,
Ivan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] clk: bcm: rpi: Add disp clock
2024-05-31 10:20 ` Ivan T. Ivanov
@ 2024-05-31 11:06 ` Stefan Wahren
2024-05-31 11:18 ` Ivan T. Ivanov
0 siblings, 1 reply; 6+ messages in thread
From: Stefan Wahren @ 2024-05-31 11:06 UTC (permalink / raw)
To: Ivan T. Ivanov
Cc: sboyd, florian.fainelli, linux-clk, linux-arm-kernel,
Maxime Ripard, Andrea della Porta
Hi Ivan,
Am 31.05.24 um 12:20 schrieb Ivan T. Ivanov:
> Hi,
>
> On 05-31 11:55, Stefan Wahren wrote:
>> Hi Ivan,
>>
>> Am 31.05.24 um 11:27 schrieb Ivan T. Ivanov:
>>> From: Maxime Ripard <maxime@cerno.tech>
>>>
>>> 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.
>>>
>>> Without this new definition driver fails at probe on BCM2712.
>> could you please explain the relation to Andrea's series [1]?
>>
>> How can this occur, because there is no Raspberry Pi 5 support in Mainline?
> I am using few out-of-tree drivers on top of the Andrea's patch-set
> and noticed the failure, so decided to prepare the road for RPi5.
okay and did you use the vendor DTB or Andreas' version?
> I am not entirely sure what are you asking.
Because Andreas DTS shouldn't require this patch and we usually don't
include changes which are not testable with Mainline Kernel.
Without a broader context this commit message is not self-explaining.
Best regards
>
> Regards,
> Ivan
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] clk: bcm: rpi: Add disp clock
2024-05-31 11:06 ` Stefan Wahren
@ 2024-05-31 11:18 ` Ivan T. Ivanov
2024-05-31 12:14 ` Stefan Wahren
0 siblings, 1 reply; 6+ messages in thread
From: Ivan T. Ivanov @ 2024-05-31 11:18 UTC (permalink / raw)
To: Stefan Wahren
Cc: sboyd, florian.fainelli, linux-clk, linux-arm-kernel,
Maxime Ripard, Andrea della Porta
On 05-31 13:06, Stefan Wahren wrote:
>
> Hi Ivan,
>
> Am 31.05.24 um 12:20 schrieb Ivan T. Ivanov:
> > Hi,
> >
> > On 05-31 11:55, Stefan Wahren wrote:
> > > Hi Ivan,
> > >
> > > Am 31.05.24 um 11:27 schrieb Ivan T. Ivanov:
> > > > From: Maxime Ripard <maxime@cerno.tech>
> > > >
> > > > 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.
> > > >
> > > > Without this new definition driver fails at probe on BCM2712.
> > > could you please explain the relation to Andrea's series [1]?
> > >
> > > How can this occur, because there is no Raspberry Pi 5 support in Mainline?
> > I am using few out-of-tree drivers on top of the Andrea's patch-set
> > and noticed the failure, so decided to prepare the road for RPi5.
> okay and did you use the vendor DTB or Andreas' version?
Patches from Andrea don't have "raspberrypi,firmware-clocks" node.
> > I am not entirely sure what are you asking.
> Because Andreas DTS shouldn't require this patch and we usually don't
> include changes which are not testable with Mainline Kernel.
>
So I should wait Andreas' patch set to be merged in before I can post
anything about RPi5?
Regards,
Ivan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] clk: bcm: rpi: Add disp clock
2024-05-31 11:18 ` Ivan T. Ivanov
@ 2024-05-31 12:14 ` Stefan Wahren
0 siblings, 0 replies; 6+ messages in thread
From: Stefan Wahren @ 2024-05-31 12:14 UTC (permalink / raw)
To: Ivan T. Ivanov
Cc: sboyd, florian.fainelli, linux-clk, linux-arm-kernel,
Maxime Ripard, Andrea della Porta
Am 31.05.24 um 13:18 schrieb Ivan T. Ivanov:
> On 05-31 13:06, Stefan Wahren wrote:
>> Hi Ivan,
>>
>> Am 31.05.24 um 12:20 schrieb Ivan T. Ivanov:
>>> Hi,
>>>
>>> On 05-31 11:55, Stefan Wahren wrote:
>>>> Hi Ivan,
>>>>
>>>> Am 31.05.24 um 11:27 schrieb Ivan T. Ivanov:
>>>>> From: Maxime Ripard <maxime@cerno.tech>
>>>>>
>>>>> 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.
>>>>>
>>>>> Without this new definition driver fails at probe on BCM2712.
>>>> could you please explain the relation to Andrea's series [1]?
>>>>
>>>> How can this occur, because there is no Raspberry Pi 5 support in Mainline?
>>> I am using few out-of-tree drivers on top of the Andrea's patch-set
>>> and noticed the failure, so decided to prepare the road for RPi5.
>> okay and did you use the vendor DTB or Andreas' version?
> Patches from Andrea don't have "raspberrypi,firmware-clocks" node.
That's the reason i'm asking :-)
>
>>> I am not entirely sure what are you asking.
>> Because Andreas DTS shouldn't require this patch and we usually don't
>> include changes which are not testable with Mainline Kernel.
>>
> So I should wait Andreas' patch set to be merged in before I can post
> anything about RPi5?
No, but it would be extremely helpful for the maintainers to know, which
patches (directly or indirectly) depend on which pending series. So a
comment below the commit message (at the same place as the patch
changelog) about this would be nice in this case.
>
> Regards,
> Ivan
>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-05-31 12:14 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-31 9:27 [PATCH] clk: bcm: rpi: Add disp clock Ivan T. Ivanov
2024-05-31 9:55 ` Stefan Wahren
2024-05-31 10:20 ` Ivan T. Ivanov
2024-05-31 11:06 ` Stefan Wahren
2024-05-31 11:18 ` Ivan T. Ivanov
2024-05-31 12:14 ` Stefan Wahren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox