Skip to content

Commit 49a3f84

Browse files
MaureenHelmhenrikbrixandersen
authored andcommitted
boards: adi: apard32690: Configure arduino gpio pins
Configures pins for the GPIOs attached to the Arduino connector to enable using this board with the eval_adxl372_ardz shield. Signed-off-by: Maureen Helm <[email protected]>
1 parent 46b9b6b commit 49a3f84

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

boards/adi/apard32690/apard32690_max32690_m4.dts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,35 @@
5353
led2 = &green_led;
5454
sw0 = &usr_btn;
5555
};
56+
57+
arduino_header: connector {
58+
compatible = "arduino-header-r3";
59+
#gpio-cells = <2>;
60+
gpio-map-mask = <0xffffffff 0xffffffc0>;
61+
gpio-map-pass-thru = <0 0x3f>;
62+
gpio-map = <0 0 &gpio3 0 0>, /* A0 */
63+
<1 0 &gpio3 1 0>, /* A1 */
64+
<2 0 &gpio3 2 0>, /* A2 */
65+
<3 0 &gpio3 3 0>, /* A3 */
66+
<4 0 &gpio3 4 0>, /* A4 */
67+
<5 0 &gpio3 5 0>, /* A5 */
68+
<6 0 &gpio2 14 0>, /* D0 */
69+
<7 0 &gpio2 16 0>, /* D1 */
70+
<8 0 &gpio2 13 0>, /* D2 */
71+
<9 0 &gpio2 15 0>, /* D3 */
72+
<10 0 &gpio0 8 0>, /* D4 */
73+
<11 0 &gpio0 7 0>, /* D5 */
74+
<12 0 &gpio1 24 0>, /* D6 */
75+
<13 0 &gpio1 25 0>, /* D7 */
76+
<14 0 &gpio1 31 0>, /* D8 */
77+
<15 0 &gpio1 30 0>, /* D9 */
78+
<16 0 &gpio1 23 0>, /* D10 */
79+
<17 0 &gpio1 29 0>, /* D11 */
80+
<18 0 &gpio1 28 0>, /* D12 */
81+
<19 0 &gpio1 26 0>, /* D13 */
82+
<20 0 &gpio2 17 0>, /* D14 */
83+
<21 0 &gpio2 18 0>; /* D15 */
84+
};
5685
};
5786

5887
&clk_ipo {

boards/adi/apard32690/apard32690_max32690_m4.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ toolchain:
88
- gnuarmemb
99
- xtools
1010
supported:
11+
- arduino_gpio
1112
- arduino_serial
1213
- arduino_spi
1314
- pmod_spi

0 commit comments

Comments
 (0)