Skip to content

Commit e31d66a

Browse files
ozersajpmurMaureenHelm
authored andcommitted
boards: Add MAX32690EVKit board
Added MAX32690EVKit board For more information about this board please check https://www.analog.com/ MAX32690 has two core, Cortex-M4 and Risc-V. Examples can be build by below command for cortex-m4 west build -b max32690evkit/max32690/m4 samples/hello_world As a shorthand, the soc may be omitted from the build command and keeping the corresponding forward slashes: west build -b max32690evkit//m4 samples/hello_world Co-authored-by: Jason Murphy <[email protected]> Co-authored-by: Maureen Helm <[email protected]> Signed-off-by: Sadik Ozer <[email protected]>
1 parent d33d5b3 commit e31d66a

File tree

9 files changed

+429
-0
lines changed

9 files changed

+429
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# MAX32690 board configuration
2+
3+
# Copyright (c) 2023-2024 Analog Devices, Inc.
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
config BOARD_MAX32690EVKIT
7+
select SOC_MAX32690_M4 if BOARD_MAX32690EVKIT_MAX32690_M4
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Copyright (c) 2023-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/max32690.cfg]")
6+
board_runner_args(jlink "--device=MAX32690" "--reset-after-load")
7+
8+
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
9+
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)

boards/adi/max32690evkit/board.yml

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

boards/adi/max32690evkit/doc/index.rst

Lines changed: 292 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
/*
2+
* Copyright (c) 2023-2024 Analog Devices, Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/dts-v1/;
8+
9+
#include <adi/max32/max32690.dtsi>
10+
#include <adi/max32/max32690-pinctrl.dtsi>
11+
#include <zephyr/dt-bindings/gpio/adi-max32-gpio.h>
12+
13+
/ {
14+
model = "Analog Devices MAX32690EVKIT";
15+
compatible = "adi,max32690evkit";
16+
17+
chosen {
18+
zephyr,console = &uart2;
19+
zephyr,shell-uart = &uart2;
20+
zephyr,sram = &sram0;
21+
zephyr,flash = &flash0;
22+
};
23+
24+
leds {
25+
compatible = "gpio-leds";
26+
red_led: led_0 {
27+
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
28+
label = "LED0";
29+
};
30+
green_led: led_1 {
31+
gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
32+
label = "LED1";
33+
};
34+
};
35+
36+
buttons {
37+
compatible = "gpio-keys";
38+
pb0: pb0 {
39+
gpios = <&gpio4 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
40+
label = "SW2";
41+
};
42+
};
43+
44+
aliases {
45+
led0 = &red_led;
46+
led1 = &green_led;
47+
sw0 = &pb0;
48+
};
49+
};
50+
51+
&clk_ipo {
52+
status = "okay";
53+
};
54+
55+
&clk_ibro {
56+
status = "okay";
57+
};
58+
59+
&gpio0 {
60+
status = "okay";
61+
};
62+
63+
&gpio1 {
64+
status = "okay";
65+
};
66+
67+
&gpio2 {
68+
status = "okay";
69+
};
70+
71+
&gpio3 {
72+
status = "okay";
73+
};
74+
75+
&gpio4 {
76+
status = "okay";
77+
};
78+
79+
&uart2 {
80+
clock-source = <ADI_MAX32_PRPH_CLK_SRC_IBRO>;
81+
pinctrl-0 = <&uart2a_tx_p1_10 &uart2a_rx_p1_9>;
82+
pinctrl-names = "default";
83+
current-speed = <115200>;
84+
data-bits = <8>;
85+
parity = "none";
86+
status = "okay";
87+
};
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
identifier: max32690evkit/max32690/m4
2+
name: max32690evkit m4
3+
type: mcu
4+
arch: arm
5+
toolchain:
6+
- zephyr
7+
- gnuarmemb
8+
- xtools
9+
supported:
10+
- gpio
11+
- serial
12+
ram: 1024
13+
flash: 3072
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Copyright (c) 2023-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)