/* * Copyright (c) 2024 Analog Devices, Inc. * * SPDX-License-Identifier: Apache-2.0 */ /dts-v1/; #include #include #include #include / { model = "Analog Devices MAX78002EVKIT"; compatible = "adi,max78002evkit"; chosen { zephyr,console = &uart0; zephyr,shell-uart = &uart0; zephyr,sram = &sram2; zephyr,flash = &flash0; }; leds { compatible = "gpio-leds"; led1: led_1 { gpios = <&gpio2 4 GPIO_ACTIVE_HIGH>; label = "Green LED"; }; led2: led_2 { gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>; label = "Red LED"; }; }; buttons { compatible = "gpio-keys"; pb1: pb1 { gpios = <&gpio2 6 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "SW2"; zephyr,code = ; }; pb2: pb2 { gpios = <&gpio2 7 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "SW3"; zephyr,code = ; }; pb_wakeup: pb_wakeup { gpios = <&gpio3 1 (GPIO_PULL_UP | GPIO_ACTIVE_LOW | MAX32_GPIO_VSEL_VDDIOH)>; label = "Wakeup"; zephyr,code = ; }; }; /* These aliases are provided for compatibility with samples */ aliases { led0 = &led1; led1 = &led2; sw0 = &pb1; sw1 = &pb2; watchdog0 = &wdt0; }; }; &uart0 { pinctrl-0 = <&uart0a_tx_p0_1 &uart0a_rx_p0_0>; pinctrl-names = "default"; current-speed = <115200>; data-bits = <8>; parity = "none"; status = "okay"; }; &clk_ipo { status = "okay"; }; &clk_ibro { status = "okay"; }; &gpio0 { status = "okay"; }; &gpio1 { status = "okay"; }; &gpio2 { status = "okay"; }; &gpio3 { status = "okay"; }; &trng { status = "okay"; }; &i2c0 { status = "okay"; pinctrl-0 = <&i2c0_scl_p0_10 &i2c0_sda_p0_11>; pinctrl-names = "default"; }; &dma0 { status = "okay"; }; &wdt0 { status = "okay"; }; &spi0 { status = "okay"; pinctrl-0 = <&spi0_mosi_p0_5 &spi0_miso_p0_6 &spi0_sck_p0_7 &spi0_ss0_p0_4>; pinctrl-names = "default"; }; &w1 { pinctrl-0 = <&owm_io_p0_6 &owm_pe_p0_7>; pinctrl-names = "default"; };