Skip to content

Commit 5d62e87

Browse files
danieldegrassenashif
authored andcommitted
boards: nxp: mimxrt1064: remove display, document usable shields
Remove display definition from MIMXRT1064 EVK, and document the shields that can be used with the board's FPC 40+6 pin parallel display interface. Signed-off-by: Daniel DeGrasse <[email protected]>
1 parent d27a352 commit 5d62e87

File tree

3 files changed

+34
-62
lines changed

3 files changed

+34
-62
lines changed

boards/nxp/mimxrt1064_evk/Kconfig.defconfig

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,6 @@ config DEVICE_CONFIGURATION_DATA
1111
config NXP_IMX_EXTERNAL_SDRAM
1212
default y
1313

14-
config INPUT
15-
default y if LVGL
16-
17-
if INPUT
18-
19-
config INPUT_FT5336_INTERRUPT
20-
default y
21-
22-
endif # INPUT
23-
2414
if NETWORKING
2515

2616
config NET_L2_ETHERNET
@@ -35,18 +25,4 @@ endif # ETH_MCUX
3525

3626
endif # NETWORKING
3727

38-
if LVGL
39-
40-
config LV_Z_VDB_SIZE
41-
default 16
42-
43-
config LV_DPI_DEF
44-
default 128
45-
46-
choice LV_COLOR_DEPTH
47-
default LV_COLOR_DEPTH_16
48-
endchoice
49-
50-
endif # LVGL
51-
5228
endif # BOARD_MIMXRT1064_EVK

boards/nxp/mimxrt1064_evk/doc/index.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ configuration supports the following hardware features:
111111
+-----------+------------+-------------------------------------+
112112
| SYSTICK | on-chip | systick |
113113
+-----------+------------+-------------------------------------+
114-
| DISPLAY | on-chip | display |
114+
| DISPLAY | on-chip | eLCDIF. Tested with |
115+
| | | :ref:`rk043fn02h_ct`, and |
116+
| | | :ref:`rk043fn66hs_ctg` shields |
115117
+-----------+------------+-------------------------------------+
116118
| VIDEO | on-chip | video, using CSI |
117119
+-----------+------------+-------------------------------------+

boards/nxp/mimxrt1064_evk/mimxrt1064_evk.dts

Lines changed: 31 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
#include <nxp/nxp_rt1064.dtsi>
1010
#include "mimxrt1064_evk-pinctrl.dtsi"
11-
#include <zephyr/dt-bindings/display/panel.h>
1211
#include <zephyr/dt-bindings/input/input-event-codes.h>
1312

1413
/ {
@@ -42,6 +41,33 @@
4241
reg = <0x80000000 DT_SIZE_M(32)>;
4342
};
4443

44+
/*
45+
* This node describes the GPIO pins of the parallel FPC interface,
46+
* This interface is standard to several NXP EVKs, and is used with
47+
* several parallel LCD displays (available as zephyr shields)
48+
*/
49+
nxp_parallel_lcd_connector: parallel-connector {
50+
compatible = "nxp,parallel-lcd-connector";
51+
#gpio-cells = <2>;
52+
gpio-map-mask = <0xffffffff 0xffffffc0>;
53+
gpio-map-pass-thru = <0 0x3f>;
54+
gpio-map = <0 0 &gpio2 31 0>; /* Pin 1, BL+ */
55+
};
56+
57+
/*
58+
* This node describes the GPIO pins of the I2C display FPC interface,
59+
* This interface is standard to several NXP EVKs, and is used with
60+
* several parallel LCD displays (available as zephyr shields)
61+
*/
62+
nxp_i2c_touch_fpc: i2c-touch-connector {
63+
compatible = "nxp,i2c-tsc-fpc";
64+
#gpio-cells = <2>;
65+
gpio-map-mask = <0xffffffff 0xffffffc0>;
66+
gpio-map-pass-thru = <0 0x3f>;
67+
gpio-map = <1 0 &gpio1 2 0>, /* Pin 2, LCD touch RST */
68+
<2 0 &gpio1 11 0>; /* Pin 3, LCD touch INT */
69+
};
70+
4571
leds {
4672
compatible = "gpio-leds";
4773
green_led: led-1 {
@@ -100,49 +126,17 @@
100126
<20 0 &gpio1 17 0>, /* D14 */
101127
<21 0 &gpio1 16 0>; /* D15 */
102128
};
103-
104-
panel {
105-
compatible = "rocktech,rk043fn02h-ct";
106-
port {
107-
lcd_panel_in: endpoint {
108-
remote-endpoint = <&lcd_panel_out>;
109-
};
110-
};
111-
};
112129
};
113130

114-
arduino_i2c: &lpi2c1 {};
131+
nxp_touch_i2c: &lpi2c1 {};
115132

116-
&lcdif {
117-
status = "okay";
118-
width = <480>;
119-
height = <272>;
120-
display-timings {
121-
compatible = "zephyr,panel-timing";
122-
hsync-len = <41>;
123-
hfront-porch = <4>;
124-
hback-porch = <8>;
125-
vsync-len = <10>;
126-
vfront-porch = <4>;
127-
vback-porch = <2>;
128-
de-active= <1>;
129-
pixelclk-active = <1>;
130-
hsync-active = <0>;
131-
vsync-active = <0>;
132-
clock-frequency = <9210240>;
133-
};
134-
pixel-format = <PANEL_PIXEL_FORMAT_BGR_565>;
135-
data-bus-width = "16-bit";
133+
zephyr_lcdif: &lcdif {
136134
pinctrl-0 = <&pinmux_lcdif>;
137135
pinctrl-names = "default";
138-
backlight-gpios = <&gpio2 31 GPIO_ACTIVE_HIGH>;
139-
port {
140-
lcd_panel_out: endpoint {
141-
remote-endpoint = <&lcd_panel_in>;
142-
};
143-
};
144136
};
145137

138+
nxp_parallel_i2c: &lpi2c1 {};
139+
146140
&lpi2c1 {
147141
status = "okay";
148142

0 commit comments

Comments
 (0)