Skip to content

Commit dce6752

Browse files
Alain Volmatcfriedt
authored andcommitted
boards: st: enable ltdc/display in stm32h7s78_dk
Enable the display panel of the stm32h7s78_dk with framebuffer located within the PSRAM. Signed-off-by: Alain Volmat <[email protected]>
1 parent 0cbe3c6 commit dce6752

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

boards/st/stm32h7s78_dk/stm32h7s78_dk.dts

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <st/h7rs/stm32h7s7X8.dtsi>
99
#include <st/h7/stm32h7s7l8hxh-pinctrl.dtsi>
1010
#include "arduino_r3_connector.dtsi"
11+
#include "zephyr/dt-bindings/display/panel.h"
1112
#include <zephyr/dt-bindings/input/input-event-codes.h>
1213

1314
/ {
@@ -19,6 +20,7 @@
1920
zephyr,shell-uart = &uart4;
2021
zephyr,flash = &flash0;
2122
zephyr,sram = &sram0;
23+
zephyr,display = &ltdc;
2224
};
2325

2426
psram: memory@90000000 {
@@ -107,6 +109,14 @@
107109
status = "okay";
108110
};
109111

112+
&pll3 {
113+
div-m = <12>;
114+
mul-n = <25>;
115+
div-r = <2>;
116+
clocks = <&clk_hse>;
117+
status = "okay";
118+
};
119+
110120
&rcc {
111121
clocks = <&pll>;
112122
clock-frequency = <DT_FREQ_M(250)>;
@@ -304,3 +314,40 @@ usb2: &usbotg_fs {
304314
};
305315

306316
zephyr_udc0: &usb2 {};
317+
318+
&ltdc {
319+
pinctrl-0 = <&ltdc_r0_pf9 &ltdc_r1_pf10 &ltdc_r2_pf0 &ltdc_r3_pb4
320+
&ltdc_r4_pb3 &ltdc_r5_pa15 &ltdc_r6_pg1 &ltdc_r7_pg0
321+
&ltdc_g0_pf7 &ltdc_g1_pf15 &ltdc_g2_pa1 &ltdc_g3_pa0
322+
&ltdc_g4_pb13 &ltdc_g5_pb12 &ltdc_g6_pb11 &ltdc_g7_pb15
323+
&ltdc_b0_pf11 &ltdc_b1_pg14 &ltdc_b2_pa12 &ltdc_b3_pa11
324+
&ltdc_b4_pa10 &ltdc_b5_pa9 &ltdc_b6_pa8 &ltdc_b7_pa6
325+
&ltdc_de_pb14 &ltdc_clk_pg13 &ltdc_hsync_pg2 &ltdc_vsync_pe11>;
326+
pinctrl-names = "default";
327+
disp-on-gpios = <&gpioe 15 GPIO_ACTIVE_HIGH>;
328+
bl-ctrl-gpios = <&gpiog 15 GPIO_ACTIVE_HIGH>;
329+
330+
status = "okay";
331+
332+
width = <800>;
333+
height = <480>;
334+
pixel-format = <PANEL_PIXEL_FORMAT_RGB_565>;
335+
336+
display-timings {
337+
compatible = "zephyr,panel-timing";
338+
de-active = <0>;
339+
pixelclk-active = <0>;
340+
hsync-active = <0>;
341+
vsync-active = <0>;
342+
hsync-len = <4>;
343+
vsync-len = <4>;
344+
hback-porch = <8>;
345+
vback-porch = <8>;
346+
hfront-porch = <8>;
347+
vfront-porch = <8>;
348+
};
349+
350+
def-back-color-red = <0xFF>;
351+
def-back-color-green = <0xFF>;
352+
def-back-color-blue = <0xFF>;
353+
};

0 commit comments

Comments
 (0)