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 <kostas.papadopulos@gmail.com>
This commit is contained in:
parent
5e519fef40
commit
4537de861b
1 changed files with 26 additions and 5 deletions
|
@ -7,6 +7,7 @@
|
|||
/dts-v1/;
|
||||
#include <st/f4/stm32f429Xi.dtsi>
|
||||
#include <st/f4/stm32f429zitx-pinctrl.dtsi>
|
||||
#include <dt-bindings/display/ili9xxx.h>
|
||||
|
||||
/ {
|
||||
model = "STMicroelectronics STM32F429I_DISC1 board";
|
||||
|
@ -18,7 +19,7 @@
|
|||
zephyr,sram = &sram0;
|
||||
zephyr,flash = &flash0;
|
||||
zephyr,ccm = &ccm0;
|
||||
zephyr,display = &ili9340;
|
||||
zephyr,display = &ili9341;
|
||||
};
|
||||
|
||||
sdram2: sdram@d0000000 {
|
||||
|
@ -114,14 +115,34 @@
|
|||
pinctrl-names = "default";
|
||||
status = "okay";
|
||||
cs-gpios = <&gpioc 2 GPIO_ACTIVE_LOW>;
|
||||
ili9340: ili9340@0 {
|
||||
compatible = "ilitek,ili9340";
|
||||
label = "DISPLAY";
|
||||
spi-max-frequency = <15151515>;
|
||||
ili9341: ili9341@0 {
|
||||
compatible = "ilitek,ili9341";
|
||||
label = "ILI9341";
|
||||
spi-max-frequency = <5625000>;
|
||||
reg = <0>;
|
||||
cmd-data-gpios = <&gpiod 13 GPIO_ACTIVE_LOW>;
|
||||
width = <240>;
|
||||
height = <320>;
|
||||
rotation = <180>;
|
||||
pixel-format = <ILI9XXX_PIXEL_FORMAT_RGB565>;
|
||||
pwctrla = [39 2c 00 34 02];
|
||||
pwctrlb = [00 c1 30];
|
||||
timctrla = [85 00 78];
|
||||
timctrlb = [00 00];
|
||||
pwseqctrl = [64 03 12 81];
|
||||
pumpratioctrl = [20];
|
||||
disctrl = [08 82 27];
|
||||
vmctrl1 = [45 15];
|
||||
vmctrl2 = [90];
|
||||
enable3g = [00];
|
||||
ifctl = [01 00 06];
|
||||
ifmode = [c2];
|
||||
gamset = [01];
|
||||
frmctr1 = [00 1b];
|
||||
pwctrl1 = [10];
|
||||
pwctrl2 = [10];
|
||||
pgamctrl = [0F 29 24 0c 0e 09 4e 78 3c 09 13 05 17 11 00];
|
||||
ngamctrl = [00 16 1b 04 11 07 31 33 42 05 0c 0a 28 2f 0f];
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue