Skip to content

Commit eb478df

Browse files
papadkostasmbolivar-nordic
authored andcommitted
boards: arm: stm32f429i_disc1: enable LTDC interface
Enable LTDC interface to drive the ILI9341 in RGB mode. Signed-off-by: Konstantinos Papadopoulos <[email protected]>
1 parent 4537de8 commit eb478df

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

boards/arm/stm32f429i_disc1/stm32f429i_disc1.dts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
/dts-v1/;
88
#include <st/f4/stm32f429Xi.dtsi>
99
#include <st/f4/stm32f429zitx-pinctrl.dtsi>
10+
#include <dt-bindings/display/stm32_ltdc.h>
1011
#include <dt-bindings/display/ili9xxx.h>
1112

1213
/ {
@@ -184,3 +185,31 @@
184185
};
185186
};
186187
};
188+
189+
&ltdc {
190+
pinctrl-0 = <&ltdc_r2_pc10 &ltdc_r3_pb0 &ltdc_r4_pa11 &ltdc_r5_pa12
191+
&ltdc_r6_pb1 &ltdc_r7_pg6 &ltdc_g2_pa6 &ltdc_g3_pg10
192+
&ltdc_g4_pb10 &ltdc_g5_pb11 &ltdc_g6_pc7 &ltdc_g7_pd3
193+
&ltdc_b2_pd6 &ltdc_b3_pg11 &ltdc_b4_pg12 &ltdc_b5_pa3
194+
&ltdc_b6_pb8 &ltdc_b7_pb9 &ltdc_de_pf10 &ltdc_clk_pg7
195+
&ltdc_hsync_pc6 &ltdc_vsync_pa4>;
196+
pinctrl-names = "default";
197+
ext-sdram = <&sdram2>;
198+
status = "okay";
199+
200+
width = <240>;
201+
height = <320>;
202+
hsync-pol = <STM32_LTDC_HSPOL_ACTIVE_LOW>;
203+
vsync-pol = <STM32_LTDC_VSPOL_ACTIVE_LOW>;
204+
de-pol = <STM32_LTDC_DEPOL_ACTIVE_LOW>;
205+
pclk-pol = <STM32_LTDC_PCPOL_ACTIVE_LOW>;
206+
hsync-duration = <10>;
207+
vsync-duration = <2>;
208+
hbp-duration = <20>;
209+
vbp-duration = <2>;
210+
hfp-duration = <10>;
211+
vfp-duration = <4>;
212+
def-back-color-red = <0xFF>;
213+
def-back-color-green = <0xFF>;
214+
def-back-color-blue = <0xFF>;
215+
};

boards/arm/stm32f429i_disc1/stm32f429i_disc1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ supported:
1212
- counter
1313
- i2c
1414
- spi
15+
- display

0 commit comments

Comments
 (0)