1/*
2 * Copyright (c) 2023 bytes at work AG
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7&sdram2 {
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 = <&sdram2>;
15	def-back-color-red = <0>;
16	def-back-color-green = <0>;
17	def-back-color-blue = <0>;
18};
19
20/* ltdc uses pll3_r as pixel clock */
21&pll3 {
22	status = "okay";
23	clocks = <&clk_hse>;
24	div-m = <5>;
25	mul-n = <132>;
26	div-p = <2>;
27	div-q = <2>;
28	div-r = <24>; /* 27.5 MHz */
29};
30
31&zephyr_mipi_dsi {
32	status = "okay";
33
34	/* DSI HOST dedicated PLL
35	 * F_VCO = CLK_IN / pll-idf * 2 * pll-ndiv
36	 * PHI = F_VCO / 2 / (1 << pll-odf) = lane_byte_clk
37	 *     = 25 MHz / 5 * 2 * 100 / 2 / (1<<0) / 8 = 62.5 MHz
38	 */
39	pll-ndiv = <100>;
40	pll-idf = <5>;
41	pll-odf = <0>;
42
43	vs-active-high;
44	hs-active-high;
45	de-active-high;
46};
47