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/max32675.dtsi>
10#include <adi/max32/max32675-pinctrl.dtsi>
11#include <zephyr/dt-bindings/gpio/adi-max32-gpio.h>
12#include <zephyr/dt-bindings/input/input-event-codes.h>
13#include <zephyr/dt-bindings/dma/max32675_dma.h>
14
15/ {
16	model = "Analog Devices MAX32675EVKIT";
17	compatible = "adi,max32675evkit";
18
19	chosen {
20		zephyr,console = &uart0;
21		zephyr,shell-uart = &uart0;
22		zephyr,sram = &sram3;
23		zephyr,flash = &flash0;
24	};
25
26	leds {
27		compatible = "gpio-leds";
28		led1: led_1 {
29			gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
30			label = "Red LED";
31		};
32		led2: led_2 {
33			gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
34			label = "Green LED";
35		};
36	};
37
38	buttons {
39		compatible = "gpio-keys";
40		pb1: pb1 {
41			gpios = <&gpio1 11 (GPIO_PULL_UP | GPIO_ACTIVE_LOW
42						| MAX32_GPIO_VSEL_VDDIOH)>;
43			label = "SW1";
44			zephyr,code = <INPUT_KEY_0>;
45		};
46		pb2: pb2 {
47			gpios = <&gpio1 12 (GPIO_PULL_UP | GPIO_ACTIVE_LOW
48						| MAX32_GPIO_VSEL_VDDIOH)>;
49			label = "SW2";
50			zephyr,code = <INPUT_KEY_1>;
51		};
52	};
53
54	/* These aliases are provided for compatibility with samples */
55	aliases {
56		led0 = &led1;
57		led1 = &led2;
58		sw0 = &pb1;
59		sw1 = &pb2;
60	};
61};
62
63&uart0 {
64	pinctrl-0 = <&uart0a_tx_p0_9 &uart0a_rx_p0_8>;
65	pinctrl-names = "default";
66	current-speed = <115200>;
67	data-bits = <8>;
68	parity = "none";
69	status = "okay";
70};
71
72&clk_ipo {
73	status = "okay";
74};
75
76&dma0 {
77	status = "okay";
78};
79
80&gpio0 {
81	status = "okay";
82};
83
84&gpio1 {
85	status = "okay";
86};
87
88&i2c2 {
89	status = "okay";
90	pinctrl-0 = <&i2c2a_scl_p0_18 &i2c2a_sda_p0_19>;
91	pinctrl-names = "default";
92};
93
94&trng {
95	status = "okay";
96};
97
98&spi1 {
99	status = "okay";
100	pinctrl-0 = <&spi1a_mosi_p0_15 &spi1a_miso_p0_14 &spi1a_sck_p0_16 &spi1a_ss0_p0_17>;
101	pinctrl-names = "default";
102};
103