boards: esp32: display for m5stickc_plus
add the st7789v LCD as the display Co-authored-by: Benjamin Cabé <benjamin@zephyrproject.org> Signed-off-by: Julien Vermillard <julien@vermillard.com>
This commit is contained in:
parent
0291c551a2
commit
6b159c1221
3 changed files with 41 additions and 18 deletions
|
@ -37,24 +37,18 @@
|
|||
pinmux = <SPIM2_CSEL_GPIO16>;
|
||||
};
|
||||
|
||||
spim3_miso_gpio25: spim3_miso_gpio25 {
|
||||
pinmux = <SPIM3_MISO_GPIO25>;
|
||||
spim3_default: spim3_default {
|
||||
group1 {
|
||||
pinmux = <SPIM3_MISO_GPIO36>,
|
||||
<SPIM3_SCLK_GPIO13>,
|
||||
<SPIM3_CSEL_GPIO5>;
|
||||
};
|
||||
group2 {
|
||||
pinmux = <SPIM3_MOSI_GPIO15>;
|
||||
output-low;
|
||||
};
|
||||
};
|
||||
|
||||
spim3_mosi_gpio15: spim3_mosi_gpio15 {
|
||||
pinmux = <SPIM3_MOSI_GPIO15>;
|
||||
output-low;
|
||||
};
|
||||
|
||||
spim3_sclk_gpio13: spim3_sclk_gpio13 {
|
||||
pinmux = <SPIM3_SCLK_GPIO13>;
|
||||
};
|
||||
|
||||
spim3_csel_gpio5: spim3_csel_gpio5 {
|
||||
pinmux = <SPIM3_CSEL_GPIO5>;
|
||||
};
|
||||
|
||||
|
||||
i2c0_default: i2c0_default {
|
||||
group1 {
|
||||
pinmux = <I2C0_SDA_GPIO21>,
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
zephyr,flash = &flash0;
|
||||
zephyr,code-partition = &slot0_partition;
|
||||
zephyr,rtc = &bm8563;
|
||||
zephyr,display = &st7789v;
|
||||
};
|
||||
|
||||
leds {
|
||||
|
@ -157,9 +158,36 @@
|
|||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
status = "okay";
|
||||
pinctrl-0 = <&spim3_miso_gpio25 &spim3_mosi_gpio15
|
||||
&spim3_sclk_gpio13 &spim3_csel_gpio5>;
|
||||
pinctrl-0 = <&spim3_default>;
|
||||
pinctrl-names = "default";
|
||||
st7789v: st7789v@0 {
|
||||
compatible = "sitronix,st7789v";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <20000000>;
|
||||
cmd-data-gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
|
||||
reset-gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
|
||||
|
||||
width = <135>;
|
||||
height = <240>;
|
||||
x-offset = <53>;
|
||||
y-offset = <40>;
|
||||
|
||||
vcom = <0x28>;
|
||||
gctrl = <0x35>;
|
||||
vrhs = <0x10>;
|
||||
vdvs = <0x20>;
|
||||
mdac = <0x00>;
|
||||
gamma = <0x01>;
|
||||
colmod = <0x55>;
|
||||
lcm = <0x2c>;
|
||||
porch-param = [0c 0c 00 33 33];
|
||||
cmd2en-param = [5a 69 02 00];
|
||||
pwctrl1-param = [a4 a1];
|
||||
pvgam-param = [d0 00 02 07 0a 28 32 44 42 06 0e 12 14 17];
|
||||
nvgam-param = [d0 00 02 07 0a 28 31 54 47 0e 1c 17 1b 1e];
|
||||
ram-param = [00 F0];
|
||||
rgb-param = [40 02 14];
|
||||
};
|
||||
};
|
||||
|
||||
&timer0 {
|
||||
|
|
|
@ -13,6 +13,7 @@ supported:
|
|||
- pinmux
|
||||
- nvs
|
||||
- regulator
|
||||
- display
|
||||
testing:
|
||||
ignore_tags:
|
||||
- net
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue