clk: bcm: rpi: Add disp clock
Subsystems (3)
PATCH 1/1 clk: bcm: rpi: Add disp clock
From: Maxime Ripard <[email protected]>
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.
--- drivers/clk/bcm/clk-raspberrypi.c | 5 +++++ include/soc/bcm2835/raspberrypi-firmware.h | 1 + 2 files changed, 6 insertions(+)
drivers/clk/bcm/clk-raspberrypi.c +5 -0
@@ -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, + }, };/*
include/soc/bcm2835/raspberrypi-firmware.h +1 -0
@@ -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, };
Signature · 1 line
2.43.0
Hi Ivan,
Am 31.05.24 um 11:27 schrieb Ivan T. Ivanov:
Quoted 7 lines
From: Maxime Ripard <[email protected]>
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/[email protected]/
Quoted 43 lines
Signed-off-by Maxime Ripard <[email protected]>Signed-off-by Ivan T. Ivanov <[email protected]>--- drivers/clk/bcm/clk-raspberrypi.c | 5 +++++ include/soc/bcm2835/raspberrypi-firmware.h | 1 + 2 files changed, 6 insertions(+)drivers/clk/bcm/clk-raspberrypi.c +5
-0@@ -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, + }, };/* include/soc/bcm2835/raspberrypi-firmware.h +1
-0@@ -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, };
Hi,
Quoted 6 lines · Stefan Wahren
Hi Ivan,
Am 31.05.24 um 11:27 schrieb Ivan T. Ivanov:
Quoted 2 lines
From: Maxime Ripard <[email protected]>
Quoted 8 lines
Quoted 5 lines
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
Hi Ivan,
Am 31.05.24 um 12:20 schrieb Ivan T. Ivanov:
Quoted 12 lines
Hi,
Quoted 9 lines · Stefan Wahren
Hi Ivan,
Am 31.05.24 um 11:27 schrieb Ivan T. Ivanov:
Quoted 6 lines
From: Maxime Ripard <[email protected]>
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.
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
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?
Quoted 1 line
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
Quoted 4 lines
Regards,
Ivan
Quoted 16 lines · Stefan Wahren
Hi Ivan,
Am 31.05.24 um 12:20 schrieb Ivan T. Ivanov:
Quoted 12 lines
Hi,
Quoted 9 lines · Stefan Wahren
Hi Ivan,
Am 31.05.24 um 11:27 schrieb Ivan T. Ivanov:
Quoted 6 lines
From: Maxime Ripard <[email protected]>
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.
Quoted 7 lines
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
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.
Quoted 4 lines
Quoted 1 line
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
Am 31.05.24 um 13:18 schrieb Ivan T. Ivanov:
Quoted 16 lines · Stefan Wahren
Quoted 15 lines
Hi Ivan,
Am 31.05.24 um 12:20 schrieb Ivan T. Ivanov:
Quoted 12 lines
Hi,
Quoted 9 lines · Stefan Wahren
Hi Ivan,
Am 31.05.24 um 11:27 schrieb Ivan T. Ivanov:
Quoted 6 lines
From: Maxime Ripard <[email protected]>
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.
Quoted 8 lines
Quoted 7 lines
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
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 :-)
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
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.
Quoted 4 lines
Regards,
Ivan