Skip to content

Commit bcac4ee

Browse files
committed
boards: adi: apard32690: Specify pmod gpio pins
Specifies which gpio pins are connected to the pmod spi header on the apard32690 board. This will enable using the adxl345 accelerometer interrupt when attaching the pmod_acl shield. Signed-off-by: Maureen Helm <[email protected]>
1 parent dc056dd commit bcac4ee

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

boards/adi/apard32690/apard32690_max32690_m4.dts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,21 @@
8484
<21 0 &gpio2 18 0>; /* D15 */
8585
};
8686

87+
pmod_header: pmod-header {
88+
compatible = "digilent,pmod";
89+
#gpio-cells = <2>;
90+
gpio-map-mask = <0xffffffff 0xffffffc0>;
91+
gpio-map-pass-thru = <0 0x3f>;
92+
gpio-map = <0 0 &gpio1 0 0>, /* IO1/CS */
93+
<1 0 &gpio1 1 0>, /* IO2/MOSI */
94+
<2 0 &gpio1 2 0>, /* IO3/MISO */
95+
<3 0 &gpio1 3 0>, /* IO4/SCK */
96+
<4 0 &gpio2 21 0>, /* IO5/INT */
97+
<5 0 &gpio1 6 0>, /* IO6/RESET */
98+
<6 0 &gpio1 4 0>, /* IO7/CS2 */
99+
<7 0 &gpio1 5 0>; /* IO8/CS3 */
100+
};
101+
87102
sdram1: sdram1@60000000 {
88103
compatible = "zephyr,memory-region", "mmio-sram";
89104
status = "disabled";

boards/adi/apard32690/apard32690_max32690_m4.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ supported:
1111
- arduino_serial
1212
- arduino_spi
1313
- pmod_spi
14+
- pmod_gpio
1415
- gpio
1516
- serial
1617
- spi

0 commit comments

Comments
 (0)