Skip to content

Commit b69fa39

Browse files
pdgendtkartben
authored andcommitted
boards: nxp: mimxrt1170_evk: Add arduino GPIO/SPI/UART header nodes
The MIMXRT1170-EVK/EVKB has an Arduino compatible header, add device tree nodes for the corresponding pins. Signed-off-by: Pieter De Gendt <[email protected]>
1 parent 263cc93 commit b69fa39

File tree

1 file changed

+33
-3
lines changed

1 file changed

+33
-3
lines changed

boards/nxp/mimxrt1170_evk/mimxrt1170_evk.dtsi

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,38 @@
4949
pwms = <&flexpwm1_pwm2 0 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
5050
};
5151
};
52+
53+
arduino_header: connector {
54+
compatible = "arduino-header-r3";
55+
#gpio-cells = <2>;
56+
gpio-map-mask = <0xffffffff 0xffffffc0>;
57+
gpio-map-pass-thru = <0 0x3f>;
58+
gpio-map = <0 0 &gpio9 9 0>, /* A0 */
59+
<1 0 &gpio9 10 0>, /* A1 */
60+
<2 0 &gpio9 11 0>, /* A2 */
61+
<3 0 &gpio9 12 0>, /* A3 */
62+
<4 0 &gpio9 8 0>, /* A4 */
63+
<5 0 &gpio9 7 0>, /* A5 */
64+
<6 0 &gpio11 12 0>, /* D0 */
65+
<7 0 &gpio11 11 0>, /* D1 */
66+
<8 0 &gpio11 13 0>, /* D2 */
67+
<9 0 &gpio9 3 0>, /* D3 */
68+
<10 0 &gpio9 5 0>, /* D4 */
69+
<11 0 &gpio9 4 0>, /* D5 */
70+
<12 0 &gpio8 31 0>, /* D6 */
71+
<13 0 &gpio9 13 0>, /* D7 */
72+
<14 0 &gpio9 6 0>, /* D8 */
73+
<15 0 &gpio9 0 0>, /* D9 */
74+
<16 0 &gpio9 28 0>, /* D10 */
75+
<17 0 &gpio9 29 0>, /* D11 */
76+
<18 0 &gpio9 30 0>, /* D12 */
77+
<19 0 &gpio9 27 0>, /* D13 */
78+
<20 0 &gpio12 4 0>, /* D14 */
79+
<21 0 &gpio12 5 0>; /* D15 */
80+
};
5281
};
5382

54-
&lpi2c5 {
83+
arduino_i2c: &lpi2c5 {
5584
status = "okay";
5685
pinctrl-0 = <&pinmux_lpi2c5>;
5786
pinctrl-names = "default";
@@ -78,7 +107,8 @@
78107
current-speed = <115200>;
79108
};
80109

81-
&lpuart2 {
110+
arduino_serial: &lpuart2 {
111+
/* No HW flow control possible for Arduino Header due to missing LPUART2 RTS on D3 */
82112
pinctrl-0 = <&pinmux_lpuart2>;
83113
pinctrl-1 = <&pinmux_lpuart2_sleep>;
84114
pinctrl-names = "default", "sleep";
@@ -180,7 +210,7 @@
180210
pinctrl-names = "default";
181211
};
182212

183-
&lpspi1 {
213+
arduino_spi: &lpspi1 {
184214
pinctrl-0 = <&pinmux_lpspi1>;
185215
pinctrl-names = "default";
186216
};

0 commit comments

Comments
 (0)