2023-06-02 10:38:04

by Dario Binacchi

[permalink] [raw]
Subject: [PATCH v2 0/6] Add display support on the stm32f746-disco board

The series adds support for the display on the stm32f746-disco board,
along with a generic patch that adds the "bpp" parameter to the stm-drm
module. The intention is to allow users to size, within certain limits,
the memory footprint required by the framebuffer.

Changes in v2:
- Add 'Acked-by' tag of Conor Dooley.
- Fix build warning reported by kernel test robot.
- Add 'Reported-by' tag of kernel test robot.

Dario Binacchi (6):
ARM: dts: stm32: add ltdc support on stm32f746 MCU
ARM: dts: stm32: add pin map for LTDC on stm32f7
ARM: dts: stm32: support display on stm32f746-disco board
dt-bindings: display: simple: add Rocktech RK043FN48H
drm/panel: simple: add support for Rocktech RK043FN48H panel
drm/stm: add an option to change FB bpp

.../bindings/display/panel/panel-simple.yaml | 2 +
arch/arm/boot/dts/stm32f7-pinctrl.dtsi | 35 +++++++++++++
arch/arm/boot/dts/stm32f746-disco.dts | 51 +++++++++++++++++++
arch/arm/boot/dts/stm32f746.dtsi | 10 ++++
drivers/gpu/drm/panel/panel-simple.c | 29 +++++++++++
drivers/gpu/drm/stm/drv.c | 8 ++-
6 files changed, 134 insertions(+), 1 deletion(-)

--
2.32.0



2023-06-02 10:38:12

by Dario Binacchi

[permalink] [raw]
Subject: [PATCH v2 5/6] drm/panel: simple: add support for Rocktech RK043FN48H panel

Add support for Rocktech RK043FN48H 4.3" (480x272) LCD-TFT panel.

Signed-off-by: Dario Binacchi <[email protected]>
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

---

Changes in v2:
- Fix build warning reported by kernel test robot.
- Add 'Reported-by' tag of kernel test robot.

drivers/gpu/drm/panel/panel-simple.c | 29 ++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)

diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index 065f378bba9d..3b10e78d07d9 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -3188,6 +3188,32 @@ static const struct panel_desc qishenglong_gopher2b_lcd = {
.connector_type = DRM_MODE_CONNECTOR_DPI,
};

+static const struct display_timing rocktech_rk043fn48h_timing = {
+ .pixelclock = { 6000000, 9000000, 12000000 },
+ .hactive = { 480, 480, 480 },
+ .hback_porch = { 8, 43, 43 },
+ .hfront_porch = { 2, 8, 8 },
+ .hsync_len = { 1, 1, 1 },
+ .vactive = { 272, 272, 272 },
+ .vback_porch = { 2, 12, 12 },
+ .vfront_porch = { 1, 4, 4 },
+ .vsync_len = { 1, 10, 10 },
+ .flags = DISPLAY_FLAGS_VSYNC_LOW | DISPLAY_FLAGS_HSYNC_LOW |
+ DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE,
+};
+
+static const struct panel_desc rocktech_rk043fn48h = {
+ .timings = &rocktech_rk043fn48h_timing,
+ .num_timings = 1,
+ .bpc = 8,
+ .size = {
+ .width = 95,
+ .height = 54,
+ },
+ .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
+ .connector_type = DRM_MODE_CONNECTOR_DPI,
+};
+
static const struct display_timing rocktech_rk070er9427_timing = {
.pixelclock = { 26400000, 33300000, 46800000 },
.hactive = { 800, 800, 800 },
@@ -4218,6 +4244,9 @@ static const struct of_device_id platform_of_match[] = {
}, {
.compatible = "qishenglong,gopher2b-lcd",
.data = &qishenglong_gopher2b_lcd,
+ }, {
+ .compatible = "rocktech,rk043fn48h",
+ .data = &rocktech_rk043fn48h,
}, {
.compatible = "rocktech,rk070er9427",
.data = &rocktech_rk070er9427,
--
2.32.0


2023-06-05 12:21:28

by Raphael Gallais-Pou

[permalink] [raw]
Subject: Re: [PATCH v2 0/6] Add display support on the stm32f746-disco board

Hi Dario,


Thanks for this serie. I'll look at it shortly.

In the meantime, would it be possible to send it again as I think it is not
complete.

patchwork and lore.kernel.org both prompt incomplete parts of your serie.

https://patchwork.freedesktop.org/series/118814/?_sm_au_=iVVrkQQkv5r1r0rQcLpsvK618Vf61

https://lore.kernel.org/dri-devel/[email protected]/


Thanks,

Raphaƫl

On 6/2/23 12:21, Dario Binacchi wrote:
> The series adds support for the display on the stm32f746-disco board,
> along with a generic patch that adds the "bpp" parameter to the stm-drm
> module. The intention is to allow users to size, within certain limits,
> the memory footprint required by the framebuffer.
>
> Changes in v2:
> - Add 'Acked-by' tag of Conor Dooley.
> - Fix build warning reported by kernel test robot.
> - Add 'Reported-by' tag of kernel test robot.
>
> Dario Binacchi (6):
> ARM: dts: stm32: add ltdc support on stm32f746 MCU
> ARM: dts: stm32: add pin map for LTDC on stm32f7
> ARM: dts: stm32: support display on stm32f746-disco board
> dt-bindings: display: simple: add Rocktech RK043FN48H
> drm/panel: simple: add support for Rocktech RK043FN48H panel
> drm/stm: add an option to change FB bpp
>
> .../bindings/display/panel/panel-simple.yaml | 2 +
> arch/arm/boot/dts/stm32f7-pinctrl.dtsi | 35 +++++++++++++
> arch/arm/boot/dts/stm32f746-disco.dts | 51 +++++++++++++++++++
> arch/arm/boot/dts/stm32f746.dtsi | 10 ++++
> drivers/gpu/drm/panel/panel-simple.c | 29 +++++++++++
> drivers/gpu/drm/stm/drv.c | 8 ++-
> 6 files changed, 134 insertions(+), 1 deletion(-)
>