[PATCH] clk: bcm: rpi: Add disp clock
Stefan Wahren
wahrenst at gmx.net
Fri May 31 02:55:03 PDT 2024
Hi Ivan,
Am 31.05.24 um 11:27 schrieb Ivan T. Ivanov:
> From: Maxime Ripard <maxime at 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 at cerno.tech>
> Signed-off-by: Ivan T. Ivanov <iivanov at 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,
> };
>
More information about the linux-arm-kernel
mailing list