Skip to content

Commit 310ec96

Browse files
author
Alain Volmat
committed
shields: st_b_lcd40_dsi1_mb1166: add stm32f769i_disco support
Add overlay and conf file dedicated for the stm32f769i_disco. Signed-off-by: Alain Volmat <[email protected]>
1 parent 6ed19b5 commit 310ec96

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copyright (c) 2025 STMicroelectronics
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
CONFIG_MEMC=y
5+
CONFIG_HEAP_MEM_POOL_SIZE=65536
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/*
2+
* Copyright (c) 2025 STMicroelectronics.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&sdram1 {
8+
/* Frame buffer memory when cached causes screen flickering. */
9+
zephyr,memory-attr = <( DT_MEM_ARM(ATTR_MPU_RAM_NOCACHE) )>;
10+
};
11+
12+
&zephyr_lcd_controller {
13+
status = "okay";
14+
ext-sdram = <&sdram1>;
15+
def-back-color-red = <0>;
16+
def-back-color-green = <0>;
17+
def-back-color-blue = <0>;
18+
};
19+
20+
&pllsai {
21+
div-m = <25>;
22+
mul-n = <384>;
23+
div-r = <5>;
24+
div-divr = <8>;
25+
clocks = <&clk_hse>;
26+
status = "okay";
27+
};
28+
29+
&zephyr_mipi_dsi {
30+
status = "okay";
31+
32+
/* DSI HOST dedicated PLL
33+
* F_VCO = CLK_IN / pll-idf * 2 * pll-ndiv
34+
* PHI = F_VCO / 2 / (1 << pll-odf) = lane_byte_clk
35+
* = 25 MHz / 5 * 2 * 100 / 2 / (1<<0) / 8 = 62.5 MHz
36+
*/
37+
pll-ndiv = <100>;
38+
pll-idf = <5>;
39+
pll-odf = <0>;
40+
41+
vs-active-high;
42+
hs-active-high;
43+
de-active-high;
44+
};

0 commit comments

Comments
 (0)