* [PATCH 0/2] patches used to enable u-boot video driver on raspberry pi 4B platform
@ 2023-07-26 2:42 Meng Li
2023-07-26 2:42 ` [PATCH 1/2] bcm2835: Add simiple-framebuffer for use with fkms Meng Li
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Meng Li @ 2023-07-26 2:42 UTC (permalink / raw)
To: u-boot, mbrugger, pbrobinson, agust; +Cc: meng.li
From: Meng Li <meng.li@windriver.com>
There are 2 patches as bleow:
0001-bcm2835-Add-simiple-framebuffer-for-use-with-fkms.patch
0002-rpi-set-the-correct-parameter-for-simple-framebuffer.patch
The first one is used to enable u-boot video driver.
The second one is used to fix the wired display status on monitor.
Jason Wessel (1):
bcm2835: Add simiple-framebuffer for use with fkms
Meng Li (1):
rpi: set the correct parameter for simple framebuffer node
board/raspberrypi/rpi/rpi.c | 2 ++
drivers/video/bcm2835.c | 3 +++
2 files changed, 5 insertions(+)
--
2.34.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] bcm2835: Add simiple-framebuffer for use with fkms
2023-07-26 2:42 [PATCH 0/2] patches used to enable u-boot video driver on raspberry pi 4B platform Meng Li
@ 2023-07-26 2:42 ` Meng Li
2023-07-26 2:42 ` [PATCH 2/2] rpi: set the correct parameter for simple framebuffer node Meng Li
2023-08-14 6:07 ` [PATCH 0/2] patches used to enable u-boot video driver on raspberry pi 4B platform Anatolij Gustschin
2 siblings, 0 replies; 4+ messages in thread
From: Meng Li @ 2023-07-26 2:42 UTC (permalink / raw)
To: u-boot, mbrugger, pbrobinson, agust; +Cc: meng.li
From: Jason Wessel <jason.wessel@windriver.com>
When the fkms dtb overlay is used only the simple-framebuffer is
presented as a usable video display. So, add "simple-framebuffer"
compatible to enable video driver bcm2835.
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Meng Li <Meng.Li@windriver.com>
---
drivers/video/bcm2835.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/video/bcm2835.c b/drivers/video/bcm2835.c
index c2962932c9..9078755c76 100644
--- a/drivers/video/bcm2835.c
+++ b/drivers/video/bcm2835.c
@@ -54,6 +54,9 @@ static const struct udevice_id bcm2835_video_ids[] = {
{ .compatible = "brcm,bcm2835-hdmi" },
{ .compatible = "brcm,bcm2711-hdmi0" },
{ .compatible = "brcm,bcm2708-fb" },
+#ifndef CONFIG_VIDEO_DT_SIMPLEFB
+ { .compatible = "simple-framebuffer" },
+#endif
{ }
};
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] rpi: set the correct parameter for simple framebuffer node
2023-07-26 2:42 [PATCH 0/2] patches used to enable u-boot video driver on raspberry pi 4B platform Meng Li
2023-07-26 2:42 ` [PATCH 1/2] bcm2835: Add simiple-framebuffer for use with fkms Meng Li
@ 2023-07-26 2:42 ` Meng Li
2023-08-14 6:07 ` [PATCH 0/2] patches used to enable u-boot video driver on raspberry pi 4B platform Anatolij Gustschin
2 siblings, 0 replies; 4+ messages in thread
From: Meng Li @ 2023-07-26 2:42 UTC (permalink / raw)
To: u-boot, mbrugger, pbrobinson, agust; +Cc: meng.li
When raspberrpi-4b platform boots up, there are 2 sets of same bootup
log displayed on HDMI monitor screen, it looks like the screen is split
into 2 parts. The root cause is that video format of u-boot is different
from kernel. The fixing "a8r8g8b8" video format is used in u-boot, but
"r5g6b5" video format from framebuffer node is used in kernel image. In
order to avoid weird display status on screen, it needs to set the correct
parameter for simple framebuffer node even if it has existed.
Signed-off-by: Meng Li <Meng.Li@windriver.com>
---
board/raspberrypi/rpi/rpi.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c
index 1057ebb994..38bcab15cf 100644
--- a/board/raspberrypi/rpi/rpi.c
+++ b/board/raspberrypi/rpi/rpi.c
@@ -561,6 +561,8 @@ int ft_board_setup(void *blob, struct bd_info *bd)
node = fdt_node_offset_by_compatible(blob, -1, "simple-framebuffer");
if (node < 0)
fdt_simplefb_add_node(blob);
+ else
+ fdt_simplefb_enable_and_mem_rsv(blob);
#ifdef CONFIG_EFI_LOADER
/* Reserve the spin table */
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 0/2] patches used to enable u-boot video driver on raspberry pi 4B platform
2023-07-26 2:42 [PATCH 0/2] patches used to enable u-boot video driver on raspberry pi 4B platform Meng Li
2023-07-26 2:42 ` [PATCH 1/2] bcm2835: Add simiple-framebuffer for use with fkms Meng Li
2023-07-26 2:42 ` [PATCH 2/2] rpi: set the correct parameter for simple framebuffer node Meng Li
@ 2023-08-14 6:07 ` Anatolij Gustschin
2 siblings, 0 replies; 4+ messages in thread
From: Anatolij Gustschin @ 2023-08-14 6:07 UTC (permalink / raw)
To: Meng Li; +Cc: u-boot, mbrugger, pbrobinson
On Wed, 26 Jul 2023 10:42:33 +0800
Meng Li Meng.Li@windriver.com wrote:
> From: Meng Li <meng.li@windriver.com>
>
> There are 2 patches as bleow:
> 0001-bcm2835-Add-simiple-framebuffer-for-use-with-fkms.patch
> 0002-rpi-set-the-correct-parameter-for-simple-framebuffer.patch
> The first one is used to enable u-boot video driver.
> The second one is used to fix the wired display status on monitor.
>
> Jason Wessel (1):
> bcm2835: Add simiple-framebuffer for use with fkms
>
> Meng Li (1):
> rpi: set the correct parameter for simple framebuffer node
>
> board/raspberrypi/rpi/rpi.c | 2 ++
> drivers/video/bcm2835.c | 3 +++
> 2 files changed, 5 insertions(+)
applied to u-boot-video/master, thanks!
--
Anatolij
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-08-14 6:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-26 2:42 [PATCH 0/2] patches used to enable u-boot video driver on raspberry pi 4B platform Meng Li
2023-07-26 2:42 ` [PATCH 1/2] bcm2835: Add simiple-framebuffer for use with fkms Meng Li
2023-07-26 2:42 ` [PATCH 2/2] rpi: set the correct parameter for simple framebuffer node Meng Li
2023-08-14 6:07 ` [PATCH 0/2] patches used to enable u-boot video driver on raspberry pi 4B platform Anatolij Gustschin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox