Skip to content

Commit 68d2160

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 8c2390f commit 68d2160

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Copyright (c) 2025 STMicroelectronics
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
CONFIG_MEMC=y
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+
ext-sdram = <&sdram1>;
14+
def-back-color-red = <0>;
15+
def-back-color-green = <0>;
16+
def-back-color-blue = <0>;
17+
status = "okay";
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+
/* DSI HOST dedicated PLL
31+
* F_VCO = CLK_IN / pll-idf * 2 * pll-ndiv
32+
* PHI = F_VCO / 2 / (1 << pll-odf) = lane_byte_clk
33+
* = 25 MHz / 5 * 2 * 100 / 2 / (1<<0) / 8 = 62.5 MHz
34+
*/
35+
pll-ndiv = <100>;
36+
pll-idf = <5>;
37+
pll-odf = <0>;
38+
39+
vs-active-high;
40+
hs-active-high;
41+
de-active-high;
42+
43+
status = "okay";
44+
};

0 commit comments

Comments
 (0)