File tree Expand file tree Collapse file tree 8 files changed +464
-0
lines changed Expand file tree Collapse file tree 8 files changed +464
-0
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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)
Original file line number Diff line number Diff line change 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
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 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+ };
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments