File tree 5 files changed +52
-0
lines changed
5 files changed +52
-0
lines changed Original file line number Diff line number Diff line change @@ -9,3 +9,20 @@ config NET_L2_ETHERNET
9
9
default y if DT_HAS_NXP_ENET_MAC_ENABLED && NETWORKING
10
10
11
11
endif # BOARD_FRDM_RW612
12
+
13
+ if LVGL
14
+
15
+ # Enable DMA for LCDIC
16
+ config MIPI_DBI_NXP_LCDIC_DMA
17
+ default y if MIPI_DBI
18
+
19
+ # Increase descriptor count. LVGL will allocate a 30KB buffer,
20
+ # and the SPI driver sets up RX and TX side. Since LPC DMA has
21
+ # 1KB limit per descriptor, we need 60
22
+ config DMA_MCUX_LPC_NUMBER_OF_DESCRIPTORS
23
+ default 60
24
+
25
+ config LV_Z_FLUSH_THREAD
26
+ default y
27
+
28
+ endif # LVGL
Original file line number Diff line number Diff line change @@ -69,6 +69,9 @@ Supported Features
69
69
+-----------+------------+-----------------------------------+
70
70
| Wi-Fi | on-chip | Wi-Fi |
71
71
+-----------+------------+-----------------------------------+
72
+ | LCDIC | on-chip | mipi-dbi. Tested with |
73
+ | | | :ref: `lcd_par_s035 ` |
74
+ +-----------+------------+-----------------------------------+
72
75
73
76
The default configuration can be found in the defconfig file:
74
77
Original file line number Diff line number Diff line change 60
60
slew-rate = "normal";
61
61
};
62
62
};
63
+
64
+ pinmux_lcdic: pinmux_lcdic {
65
+ group0 {
66
+ pinmux = <IO_MUX_LCD_SPI_IO44
67
+ IO_MUX_LCD_SPI_IO45
68
+ IO_MUX_LCD_SPI_IO46
69
+ IO_MUX_LCD_SPI_IO47
70
+ IO_MUX_LCD_SPI_IO48
71
+ IO_MUX_LCD_SPI_IO49>;
72
+ slew-rate = "ultra";
73
+ };
74
+ };
63
75
};
Original file line number Diff line number Diff line change 33
33
gpios = <&hsgpio0 12 0>;
34
34
};
35
35
};
36
+
37
+ nxp_lcd_pmod_connector: lcd-pmod-connector {
38
+ compatible = "nxp,lcd-pmod";
39
+ #gpio-cells = <2>;
40
+ gpio-map-mask = <0xffffffff 0xfffffff0>;
41
+ gpio-map-pass-thru = <0 0xf>;
42
+ gpio-map = <10 0 &hsgpio1 12 0>, /* Pin 10, LCD and touch reset */
43
+ <12 0 &hsgpio0 18 0>; /* Pin 11, LCD touch INT */
44
+ };
36
45
};
37
46
38
47
&flexcomm3 {
@@ -228,3 +237,13 @@ arduino_i2c: &flexcomm2 {
228
237
pinctrl-0 = <&pinmux_flexcomm2_i2c>;
229
238
pinctrl-names = "default";
230
239
};
240
+
241
+ zephyr_mipi_dbi_spi: &lcdic {
242
+ status = "okay";
243
+ pinctrl-0 = <&pinmux_lcdic>;
244
+ pinctrl-names = "default";
245
+ };
246
+
247
+ nxp_pmod_touch_panel_i2c: &arduino_i2c {
248
+ status = "okay";
249
+ };
Original file line number Diff line number Diff line change @@ -107,4 +107,5 @@ tests:
107
107
- platform:frdm_mcxn947/mcxn947/cpu0:SHIELD=lcd_par_s035_8080
108
108
- platform:frdm_mcxn236/mcxn236:SHIELD=lcd_par_s035_8080
109
109
- platform:frdm_mcxa156/mcxa156:SHIELD=lcd_par_s035_8080
110
+ - platform:frdm_rw612:SHIELD=lcd_par_s035_spi
110
111
- platform:ek_ra8d1:SHIELD=rtkmipilcdb00000be
You can’t perform that action at this time.
0 commit comments