Skip to content

Commit 4537de8

Browse files
papadkostasmbolivar-nordic
authored andcommitted
boards: arm: stm32f429i_disc1: update onboard display
Onboard display is actually an ILI9341. It is connected to SPI5 which is shared with L3GD20. Max clock is set as described in BSP driver files (stm32f429i_discovery.c@638). ILI9341 configuration updated to enable RGB interface use. Signed-off-by: Konstantinos Papadopoulos <[email protected]>
1 parent 5e519fe commit 4537de8

File tree

1 file changed

+26
-5
lines changed

1 file changed

+26
-5
lines changed

boards/arm/stm32f429i_disc1/stm32f429i_disc1.dts

Lines changed: 26 additions & 5 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/ili9xxx.h>
1011

1112
/ {
1213
model = "STMicroelectronics STM32F429I_DISC1 board";
@@ -18,7 +19,7 @@
1819
zephyr,sram = &sram0;
1920
zephyr,flash = &flash0;
2021
zephyr,ccm = &ccm0;
21-
zephyr,display = &ili9340;
22+
zephyr,display = &ili9341;
2223
};
2324

2425
sdram2: sdram@d0000000 {
@@ -114,14 +115,34 @@
114115
pinctrl-names = "default";
115116
status = "okay";
116117
cs-gpios = <&gpioc 2 GPIO_ACTIVE_LOW>;
117-
ili9340: ili9340@0 {
118-
compatible = "ilitek,ili9340";
119-
label = "DISPLAY";
120-
spi-max-frequency = <15151515>;
118+
ili9341: ili9341@0 {
119+
compatible = "ilitek,ili9341";
120+
label = "ILI9341";
121+
spi-max-frequency = <5625000>;
121122
reg = <0>;
122123
cmd-data-gpios = <&gpiod 13 GPIO_ACTIVE_LOW>;
123124
width = <240>;
124125
height = <320>;
126+
rotation = <180>;
127+
pixel-format = <ILI9XXX_PIXEL_FORMAT_RGB565>;
128+
pwctrla = [39 2c 00 34 02];
129+
pwctrlb = [00 c1 30];
130+
timctrla = [85 00 78];
131+
timctrlb = [00 00];
132+
pwseqctrl = [64 03 12 81];
133+
pumpratioctrl = [20];
134+
disctrl = [08 82 27];
135+
vmctrl1 = [45 15];
136+
vmctrl2 = [90];
137+
enable3g = [00];
138+
ifctl = [01 00 06];
139+
ifmode = [c2];
140+
gamset = [01];
141+
frmctr1 = [00 1b];
142+
pwctrl1 = [10];
143+
pwctrl2 = [10];
144+
pgamctrl = [0F 29 24 0c 0e 09 4e 78 3c 09 13 05 17 11 00];
145+
ngamctrl = [00 16 1b 04 11 07 31 33 42 05 0c 0a 28 2f 0f];
125146
};
126147
};
127148

0 commit comments

Comments
 (0)