board/odroid_go: Add display support
Add display support. Tested using samples: samples/drivers/display samples/subsys/display/lvgl Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
This commit is contained in:
parent
6d1a08b3a8
commit
3a2c5bd56d
3 changed files with 37 additions and 0 deletions
|
@ -9,3 +9,6 @@ config BOARD
|
|||
|
||||
config ENTROPY_ESP32_RNG
|
||||
default y if ENTROPY_GENERATOR
|
||||
|
||||
config SPI
|
||||
default y if DISPLAY
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
zephyr,console = &uart0;
|
||||
zephyr,shell-uart = &uart0;
|
||||
zephyr,flash = &flash0;
|
||||
zephyr,display = &ili9341;
|
||||
};
|
||||
|
||||
leds {
|
||||
|
@ -54,6 +55,14 @@
|
|||
};
|
||||
};
|
||||
|
||||
lcd_backlight_en {
|
||||
compatible = "regulator-fixed-sync", "regulator-fixed";
|
||||
label = "lcd_backlight_enable";
|
||||
regulator-name = "lcd_backlight_enable";
|
||||
enable-gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
|
||||
regulator-boot-on;
|
||||
};
|
||||
|
||||
aliases {
|
||||
uart-0 = &uart0;
|
||||
led0 = &blue_led;
|
||||
|
@ -91,6 +100,28 @@
|
|||
scl-pin = <15>;
|
||||
};
|
||||
|
||||
&spi3 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
status = "okay";
|
||||
miso-pin = <19>;
|
||||
mosi-pin = <23>;
|
||||
sclk-pin = <18>;
|
||||
csel-pin = <5>;
|
||||
|
||||
ili9341: ili9341@0 {
|
||||
compatible = "ilitek,ili9341";
|
||||
label = "DISPLAY";
|
||||
spi-max-frequency = <25000000>;
|
||||
reg = <0>;
|
||||
cmd-data-gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
|
||||
pixel-format = <0>;
|
||||
rotation = <270>;
|
||||
width = <320>;
|
||||
height = <240>;
|
||||
};
|
||||
};
|
||||
|
||||
&timer0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
@ -26,3 +26,6 @@ CONFIG_GEN_IRQ_VECTOR_TABLE=n
|
|||
|
||||
CONFIG_I2C=y
|
||||
CONFIG_CLOCK_CONTROL=y
|
||||
|
||||
# required to enable LCD backlight
|
||||
CONFIG_REGULATOR=y
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue