Skip to content

Commit 63009d7

Browse files
ozersaMaureenHelm
authored andcommitted
boards: Add MAX32672EVKIT board
Add MAX32672EVKIT board files For more information about this board please check https://www.analog.com/ Co-authored-by: Maureen Helm <[email protected]> Signed-off-by: Sadik Ozer <[email protected]>
1 parent 16dda2c commit 63009d7

File tree

8 files changed

+464
-0
lines changed

8 files changed

+464
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# MAX32672EVKIT boards configuration
2+
3+
# Copyright (c) 2024 Analog Devices, Inc.
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
config BOARD_MAX32672EVKIT
7+
select SOC_MAX32672
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Copyright (c) 2024 Analog Devices, Inc.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
board_runner_args(openocd --cmd-pre-init "source [find interface/cmsis-dap.cfg]")
5+
board_runner_args(openocd --cmd-pre-init "source [find target/max32672.cfg]")
6+
board_runner_args(jlink "--device=MAX32672" "--reset-after-load")
7+
8+
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
9+
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)

boards/adi/max32672evkit/board.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Copyright (c) 2024 Analog Devices, Inc.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
board:
5+
name: max32672evkit
6+
vendor: adi
7+
socs:
8+
- name: max32672
49.1 KB
Loading

boards/adi/max32672evkit/doc/index.rst

Lines changed: 341 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
/*
2+
* Copyright (c) 2024 Analog Devices, Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/dts-v1/;
8+
9+
#include <adi/max32/max32672.dtsi>
10+
#include <adi/max32/max32672-pinctrl.dtsi>
11+
#include <zephyr/dt-bindings/gpio/adi-max32-gpio.h>
12+
#include <zephyr/dt-bindings/input/input-event-codes.h>
13+
14+
/ {
15+
model = "Analog Devices MAX32672EVKIT";
16+
compatible = "adi,max32672evkit";
17+
18+
chosen {
19+
zephyr,console = &uart0;
20+
zephyr,shell-uart = &uart0;
21+
zephyr,sram = &sram3;
22+
zephyr,flash = &flash0;
23+
};
24+
25+
leds {
26+
compatible = "gpio-leds";
27+
led1: led_1 {
28+
gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
29+
label = "Red LED";
30+
};
31+
led2: led_2 {
32+
gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
33+
label = "Green LED";
34+
};
35+
};
36+
37+
buttons {
38+
compatible = "gpio-keys";
39+
pb1: pb1 {
40+
gpios = <&gpio0 18 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
41+
label = "SW3";
42+
zephyr,code = <INPUT_KEY_0>;
43+
};
44+
};
45+
46+
/* These aliases are provided for compatibility with samples */
47+
aliases {
48+
led0 = &led1;
49+
led1 = &led2;
50+
sw0 = &pb1;
51+
};
52+
};
53+
54+
&uart0 {
55+
pinctrl-0 = <&uart0a_tx_p0_9 &uart0a_rx_p0_8>;
56+
pinctrl-names = "default";
57+
current-speed = <115200>;
58+
data-bits = <8>;
59+
parity = "none";
60+
status = "okay";
61+
};
62+
63+
&clk_ipo {
64+
status = "okay";
65+
};
66+
67+
&gpio0 {
68+
status = "okay";
69+
};
70+
71+
&gpio1 {
72+
status = "okay";
73+
};
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
identifier: max32672evkit
2+
name: max32672evkit
3+
type: mcu
4+
arch: arm
5+
toolchain:
6+
- zephyr
7+
- gnuarmemb
8+
- xtools
9+
supported:
10+
- gpio
11+
- serial
12+
ram: 200
13+
flash: 1024
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Copyright (c) 2024 Analog Devices, Inc.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
# Enable GPIO
5+
CONFIG_GPIO=y
6+
7+
# Console
8+
CONFIG_CONSOLE=y
9+
CONFIG_UART_CONSOLE=y
10+
11+
# Enable UART
12+
CONFIG_SERIAL=y
13+
CONFIG_UART_INTERRUPT_DRIVEN=y

0 commit comments

Comments
 (0)