|
8 | 8 |
|
9 | 9 | #include <nxp/nxp_rt1064.dtsi> |
10 | 10 | #include "mimxrt1064_evk-pinctrl.dtsi" |
11 | | -#include <zephyr/dt-bindings/display/panel.h> |
12 | 11 | #include <zephyr/dt-bindings/input/input-event-codes.h> |
13 | 12 |
|
14 | 13 | / { |
|
42 | 41 | reg = <0x80000000 DT_SIZE_M(32)>; |
43 | 42 | }; |
44 | 43 |
|
| 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 | + |
45 | 71 | leds { |
46 | 72 | compatible = "gpio-leds"; |
47 | 73 | green_led: led-1 { |
|
100 | 126 | <20 0 &gpio1 17 0>, /* D14 */ |
101 | 127 | <21 0 &gpio1 16 0>; /* D15 */ |
102 | 128 | }; |
103 | | - |
104 | | - panel { |
105 | | - compatible = "rocktech,rk043fn02h-ct"; |
106 | | - port { |
107 | | - lcd_panel_in: endpoint { |
108 | | - remote-endpoint = <&lcd_panel_out>; |
109 | | - }; |
110 | | - }; |
111 | | - }; |
112 | 129 | }; |
113 | 130 |
|
114 | | -arduino_i2c: &lpi2c1 {}; |
| 131 | +nxp_touch_i2c: &lpi2c1 {}; |
115 | 132 |
|
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 { |
136 | 134 | pinctrl-0 = <&pinmux_lcdif>; |
137 | 135 | 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 | | - }; |
144 | 136 | }; |
145 | 137 |
|
| 138 | +nxp_parallel_i2c: &lpi2c1 {}; |
| 139 | + |
146 | 140 | &lpi2c1 { |
147 | 141 | status = "okay"; |
148 | 142 |
|
|
0 commit comments