|
6 | 6 |
|
7 | 7 | #include <espressif/esp32s3/esp32s3_wroom_n16r8.dtsi> |
8 | 8 | #include <espressif/partitions_0x0_amp.dtsi> |
| 9 | +#include <dt-bindings/spi/spi.h> |
| 10 | +#include <zephyr/dt-bindings/display/ili9xxx.h> |
9 | 11 | #include "m5stack_cores3-pinctrl.dtsi" |
10 | 12 | #include "m5stack_mbus_connectors.dtsi" |
11 | 13 | #include "grove_connectors.dtsi" |
12 | 14 |
|
13 | 15 | / { |
14 | | - chosen { |
15 | | - zephyr,sram = &sram1; |
16 | | - zephyr,console = &usb_serial; |
17 | | - zephyr,shell-uart = &usb_serial; |
18 | | - zephyr,flash = &flash0; |
19 | | - zephyr,code-partition = &slot0_partition; |
20 | | - zephyr,rtc = &bm8563_rtc; |
21 | | - zephyr,bt-hci = &esp32_bt_hci; |
22 | | - zephyr,touch = &ft6336_touch; |
23 | | - }; |
24 | | - |
25 | | - aliases { |
26 | | - uart-0 = &uart0; |
27 | | - uart-1 = &uart1; |
28 | | - uart-2 = &uart2; |
29 | | - i2c-0 = &i2c0; |
30 | | - i2c-1 = &i2c1; |
31 | | - watchdog0 = &wdt0; |
32 | | - rtc = &bm8563_rtc; |
33 | | - sdhc0 = &sd0; |
34 | | - led0 = &axp2101_led; |
35 | | - fuel-gauge0 = &fuel_gauge; |
36 | | - }; |
37 | | - |
38 | | - lvgl_pointer { |
39 | | - compatible = "zephyr,lvgl-pointer-input"; |
40 | | - input = <&ft6336_touch>; |
41 | | - }; |
| 16 | + chosen { |
| 17 | + zephyr,sram = &sram1; |
| 18 | + zephyr,console = &usb_serial; |
| 19 | + zephyr,shell-uart = &usb_serial; |
| 20 | + zephyr,flash = &flash0; |
| 21 | + zephyr,code-partition = &slot0_partition; |
| 22 | + zephyr,rtc = &bm8563_rtc; |
| 23 | + zephyr,bt-hci = &esp32_bt_hci; |
| 24 | + zephyr,touch = &ft6336_touch; |
| 25 | + zephyr,display = &ili9342c; |
| 26 | + }; |
| 27 | + |
| 28 | + aliases { |
| 29 | + uart-0 = &uart0; |
| 30 | + uart-1 = &uart1; |
| 31 | + uart-2 = &uart2; |
| 32 | + i2c-0 = &i2c0; |
| 33 | + i2c-1 = &i2c1; |
| 34 | + watchdog0 = &wdt0; |
| 35 | + rtc = &bm8563_rtc; |
| 36 | + sdhc0 = &sd0; |
| 37 | + led0 = &axp2101_led; |
| 38 | + fuel-gauge0 = &fuel_gauge; |
| 39 | + display = &ili9342c; |
| 40 | + }; |
| 41 | + |
| 42 | + lvgl_pointer { |
| 43 | + compatible = "zephyr,lvgl-pointer-input"; |
| 44 | + input = <&ft6336_touch>; |
| 45 | + }; |
| 46 | + |
| 47 | + mipi_dbi { |
| 48 | + compatible = "zephyr,mipi-dbi-spi"; |
| 49 | + spi-dev = <&spi2>; |
| 50 | + duplex = <SPI_HALF_DUPLEX>; |
| 51 | + mipi-mode = "MIPI_DBI_MODE_SPI_3WIRE"; |
| 52 | + write-only; |
| 53 | + reset-gpios = <&aw9523b_gpio 13 GPIO_ACTIVE_LOW>; |
| 54 | + #address-cells = <1>; |
| 55 | + #size-cells = <0>; |
| 56 | + |
| 57 | + ili9342c: ili9342c@0 { |
| 58 | + compatible = "ilitek,ili9342c"; |
| 59 | + reg = <0>; |
| 60 | + mipi-max-frequency = <40000000>; |
| 61 | + vin-supply = <&vcc_bl>; |
| 62 | + pixel-format = <ILI9XXX_PIXEL_FORMAT_RGB565>; |
| 63 | + display-inversion; |
| 64 | + width = <320>; |
| 65 | + height = <240>; |
| 66 | + rotation = <0>; |
| 67 | + }; |
| 68 | + }; |
42 | 69 | }; |
43 | 70 |
|
44 | 71 | &usb_serial { |
|
209 | 236 | }; |
210 | 237 |
|
211 | 238 | &spi2 { |
212 | | - status = "okay"; |
213 | | - #address-cells = <1>; |
214 | | - #size-cells = <0>; |
215 | | - status = "okay"; |
216 | | - pinctrl-0 = <&spim2_default>; |
217 | | - pinctrl-names = "default"; |
218 | | - clock-frequency = <20000000>; |
219 | | - cs-gpios = <&gpio0 3 GPIO_ACTIVE_LOW>, /* LCD */ |
220 | | - <&gpio0 4 GPIO_ACTIVE_LOW>; /* TF-CARD */ |
| 239 | + status = "okay"; |
| 240 | + #address-cells = <1>; |
| 241 | + #size-cells = <0>; |
| 242 | + pinctrl-0 = <&spim2_default>; |
| 243 | + pinctrl-names = "default"; |
| 244 | + dma-enabled; |
| 245 | + clock-frequency = <40000000>; |
| 246 | + cs-gpios = <&gpio0 3 GPIO_ACTIVE_LOW>, /* LCD */ |
| 247 | + <&gpio0 4 GPIO_ACTIVE_LOW>; /* TF-CARD */ |
221 | 248 |
|
222 | 249 | sd0: sd@1 { |
223 | 250 | compatible = "zephyr,sdhc-spi-slot"; |
|
0 commit comments