| /* |
| * Copyright (c) 2025 Analog Devices, Inc. |
| * |
| * SPDX-License-Identifier: Apache-2.0 |
| */ |
| |
| /dts-v1/; |
| |
| #include <adi/max32/max32650.dtsi> |
| #include <adi/max32/max32650-pinctrl.dtsi> |
| #include <zephyr/dt-bindings/gpio/adi-max32-gpio.h> |
| #include <zephyr/dt-bindings/input/input-event-codes.h> |
| |
| / { |
| model = "Analog Devices MAX32650EVKIT"; |
| compatible = "adi,max32650evkit"; |
| |
| chosen { |
| zephyr,console = &uart0; |
| zephyr,shell-uart = &uart0; |
| zephyr,sram = &sram4; |
| zephyr,flash = &flash0; |
| }; |
| |
| leds { |
| compatible = "gpio-leds"; |
| |
| led1: led_1 { |
| gpios = <&gpio2 25 GPIO_ACTIVE_HIGH>; |
| label = "Red LED"; |
| }; |
| |
| led2: led_2 { |
| gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>; |
| label = "Green LED"; |
| }; |
| }; |
| |
| buttons { |
| compatible = "gpio-keys"; |
| |
| pb1: pb1 { |
| gpios = <&gpio2 28 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; |
| label = "SW2"; |
| zephyr,code = <INPUT_KEY_0>; |
| }; |
| |
| pb2: pb2 { |
| gpios = <&gpio2 30 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; |
| label = "SW3"; |
| zephyr,code = <INPUT_KEY_1>; |
| }; |
| }; |
| |
| /* These aliases are provided for compatibility with samples */ |
| aliases { |
| led0 = &led1; |
| led1 = &led2; |
| watchdog0 = &wdt0; |
| }; |
| }; |
| |
| &uart0 { |
| pinctrl-0 = <&uart0_tx_p2_12 &uart0_rx_p2_11>; |
| pinctrl-names = "default"; |
| current-speed = <115200>; |
| data-bits = <8>; |
| parity = "none"; |
| status = "okay"; |
| }; |
| |
| &clk_ipo { |
| status = "okay"; |
| }; |
| |
| &gpio0 { |
| status = "okay"; |
| }; |
| |
| &gpio1 { |
| status = "okay"; |
| }; |
| |
| &gpio2 { |
| status = "okay"; |
| }; |
| |
| &gpio3 { |
| status = "okay"; |
| }; |
| |
| &dma0 { |
| status = "okay"; |
| }; |
| |
| &i2c0 { |
| pinctrl-0 = <&i2c0_scl_p2_8 &i2c0_sda_p2_7>; |
| pinctrl-names = "default"; |
| status = "okay"; |
| }; |
| |
| &spi2 { |
| status = "okay"; |
| pinctrl-0 = <&spi2_mosi_p2_4 &spi2_miso_p2_3 &spi2_sck_p2_2 &spi2_ss0_p2_5>; |
| pinctrl-names = "default"; |
| }; |
| |
| &wdt0 { |
| status = "okay"; |
| }; |
| |
| &rtc_counter { |
| status = "okay"; |
| }; |