117 lines
2.4 KiB
Plaintext
117 lines
2.4 KiB
Plaintext
/*
|
|
* Copyright (c) 2023-2024 Analog Devices, Inc.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/dts-v1/;
|
|
|
|
#include <adi/max32/max32666.dtsi>
|
|
#include <adi/max32/max32666-pinctrl.dtsi>
|
|
#include <zephyr/dt-bindings/gpio/adi-max32-gpio.h>
|
|
#include <zephyr/dt-bindings/input/input-event-codes.h>
|
|
|
|
/ {
|
|
model = "Analog Devices MAX32666FTHR";
|
|
compatible = "adi,max32666fthr";
|
|
|
|
chosen {
|
|
zephyr,console = &uart1;
|
|
zephyr,shell-uart = &uart1;
|
|
zephyr,sram = &sram4;
|
|
zephyr,flash = &flash0;
|
|
};
|
|
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
led1: led_1 {
|
|
gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
|
|
label = "Red LED";
|
|
};
|
|
led2: led_2 {
|
|
gpios = <&gpio0 30 GPIO_ACTIVE_LOW>;
|
|
label = "Blue LED";
|
|
};
|
|
led3: led_3 {
|
|
gpios = <&gpio0 31 GPIO_ACTIVE_LOW>;
|
|
label = "Green LED";
|
|
};
|
|
};
|
|
|
|
buttons {
|
|
compatible = "gpio-keys";
|
|
pb1: pb1 {
|
|
gpios = <&gpio1 10 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
|
|
label = "SW1";
|
|
zephyr,code = <INPUT_KEY_0>;
|
|
};
|
|
};
|
|
|
|
/* These aliases are provided for compatibility with samples */
|
|
aliases {
|
|
led0 = &led1;
|
|
led1 = &led2;
|
|
led2 = &led3;
|
|
sw0 = &pb1;
|
|
watchdog0 = &wdt0;
|
|
};
|
|
|
|
/* Used for accessing other pins */
|
|
feather_header: feather_connector {
|
|
compatible = "adafruit-feather-header";
|
|
#gpio-cells = <2>;
|
|
gpio-map-mask = <0xffffffff 0xffffffc0>;
|
|
gpio-map-pass-thru = <0 0x3f>;
|
|
gpio-map = <12 0 &gpio0 7 0>, /* SDA */
|
|
<13 0 &gpio0 6 0>, /* SCL */
|
|
<14 0 &gpio0 0 0>, /* GPIO */
|
|
<15 0 &gpio0 1 0>, /* GPIO */
|
|
<16 0 &gpio0 2 0>, /* GPIO */
|
|
<17 0 &gpio0 4 0>, /* GPIO */
|
|
<18 0 &gpio0 5 0>, /* GPIO */
|
|
<19 0 &gpio0 3 0>, /* GPIO */
|
|
<20 0 &gpio0 12 0>, /* OWM */
|
|
/* 11 not connected */
|
|
<10 0 &gpio0 9 0>, /* TX */
|
|
<9 0 &gpio0 10 0>, /* RX */
|
|
<8 0 &gpio0 26 0>, /* MISO */
|
|
<7 0 &gpio0 25 0>, /* MOSI */
|
|
<6 0 &gpio0 27 0>, /* SCK */
|
|
<5 0 &gpio0 21 0>, /* AIN5 */
|
|
<4 0 &gpio0 20 0>, /* AIN4 */
|
|
<3 0 &gpio0 19 0>, /* AIN3 */
|
|
<2 0 &gpio0 18 0>, /* AIN2 */
|
|
<1 0 &gpio0 17 0>, /* AIN1 */
|
|
<0 0 &gpio0 16 0>; /* AIN0 */
|
|
};
|
|
};
|
|
|
|
&uart1 {
|
|
pinctrl-0 = <&uart1_tx_p1_13 &uart1_rx_p1_12>;
|
|
pinctrl-names = "default";
|
|
current-speed = <115200>;
|
|
data-bits = <8>;
|
|
parity = "none";
|
|
status = "okay";
|
|
};
|
|
|
|
&clk_ipo {
|
|
status = "okay";
|
|
};
|
|
|
|
&gpio0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&gpio1 {
|
|
status = "okay";
|
|
};
|
|
|
|
&trng {
|
|
status = "okay";
|
|
};
|
|
|
|
&wdt0 {
|
|
status = "okay";
|
|
};
|