File tree Expand file tree Collapse file tree 5 files changed +52
-0
lines changed Expand file tree Collapse file tree 5 files changed +52
-0
lines changed Original file line number Diff line number Diff line change @@ -8,4 +8,21 @@ if BOARD_FRDM_RW612
8
8
config NET_L2_ETHERNET
9
9
default y if DT_HAS_NXP_ENET_MAC_ENABLED && NETWORKING
10
10
11
+ if LVGL
12
+
13
+ # Enable DMA for LCDIC
14
+ config MIPI_DBI_NXP_LCDIC_DMA
15
+ default y if MIPI_DBI
16
+
17
+ # Increase descriptor count. LVGL will allocate a 30KB buffer,
18
+ # and the SPI driver sets up RX and TX side. Since LPC DMA has
19
+ # 1KB limit per descriptor, we need 60
20
+ config DMA_MCUX_LPC_NUMBER_OF_DESCRIPTORS
21
+ default 60
22
+
23
+ config LV_Z_FLUSH_THREAD
24
+ default y
25
+
26
+ endif # LVGL
27
+
11
28
endif # BOARD_FRDM_RW612
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 45
45
status = "okay";
46
46
};
47
47
};
48
+
49
+ nxp_lcd_pmod_connector: lcd-pmod-connector {
50
+ compatible = "nxp,lcd-pmod";
51
+ #gpio-cells = <2>;
52
+ gpio-map-mask = <0xffffffff 0xfffffff0>;
53
+ gpio-map-pass-thru = <0 0xf>;
54
+ gpio-map = <10 0 &hsgpio1 12 0>, /* Pin 10, LCD and touch reset */
55
+ <12 0 &hsgpio0 18 0>; /* Pin 11, LCD touch INT */
56
+ };
48
57
};
49
58
50
59
&flexcomm3 {
@@ -240,3 +249,13 @@ arduino_i2c: &flexcomm2 {
240
249
pinctrl-0 = <&pinmux_flexcomm2_i2c>;
241
250
pinctrl-names = "default";
242
251
};
252
+
253
+ zephyr_mipi_dbi_spi: &lcdic {
254
+ status = "okay";
255
+ pinctrl-0 = <&pinmux_lcdic>;
256
+ pinctrl-names = "default";
257
+ };
258
+
259
+ nxp_pmod_touch_panel_i2c: &arduino_i2c {
260
+ status = "okay";
261
+ };
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