Skip to content

Commit

Permalink
boards: adi: apard32690: Configure arduino gpio pins
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
MaureenHelm authored and henrikbrixandersen committed Oct 21, 2024
1 parent 46b9b6b commit 49a3f84
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
29 changes: 29 additions & 0 deletions boards/adi/apard32690/apard32690_max32690_m4.dts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,35 @@
led2 = &green_led;
sw0 = &usr_btn;
};

arduino_header: connector {
compatible = "arduino-header-r3";
#gpio-cells = <2>;
gpio-map-mask = <0xffffffff 0xffffffc0>;
gpio-map-pass-thru = <0 0x3f>;
gpio-map = <0 0 &gpio3 0 0>, /* A0 */
<1 0 &gpio3 1 0>, /* A1 */
<2 0 &gpio3 2 0>, /* A2 */
<3 0 &gpio3 3 0>, /* A3 */
<4 0 &gpio3 4 0>, /* A4 */
<5 0 &gpio3 5 0>, /* A5 */
<6 0 &gpio2 14 0>, /* D0 */
<7 0 &gpio2 16 0>, /* D1 */
<8 0 &gpio2 13 0>, /* D2 */
<9 0 &gpio2 15 0>, /* D3 */
<10 0 &gpio0 8 0>, /* D4 */
<11 0 &gpio0 7 0>, /* D5 */
<12 0 &gpio1 24 0>, /* D6 */
<13 0 &gpio1 25 0>, /* D7 */
<14 0 &gpio1 31 0>, /* D8 */
<15 0 &gpio1 30 0>, /* D9 */
<16 0 &gpio1 23 0>, /* D10 */
<17 0 &gpio1 29 0>, /* D11 */
<18 0 &gpio1 28 0>, /* D12 */
<19 0 &gpio1 26 0>, /* D13 */
<20 0 &gpio2 17 0>, /* D14 */
<21 0 &gpio2 18 0>; /* D15 */
};
};

&clk_ipo {
Expand Down
1 change: 1 addition & 0 deletions boards/adi/apard32690/apard32690_max32690_m4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ toolchain:
- gnuarmemb
- xtools
supported:
- arduino_gpio
- arduino_serial
- arduino_spi
- pmod_spi
Expand Down

0 comments on commit 49a3f84

Please sign in to comment.