2023-10-13 21:23:57 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2023-2024 Analog Devices, Inc.
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <arm/armv7-m.dtsi>
|
|
|
|
#include <adi/max32/max32xxx.dtsi>
|
|
|
|
|
|
|
|
&pinctrl {
|
|
|
|
reg = <0x40008000 0x2400>;
|
|
|
|
|
|
|
|
gpio2: gpio@40080400 {
|
|
|
|
reg = <0x40080400 0x200>;
|
|
|
|
compatible = "adi,max32-gpio";
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
interrupts = <26 0>;
|
|
|
|
clocks = <&gcr ADI_MAX32_CLOCK_BUS2 0>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio3: gpio@40080600 {
|
|
|
|
reg = <0x40080600 0x200>;
|
|
|
|
compatible = "adi,max32-gpio";
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
interrupts = <54 0>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
/* MAX32655 extra peripherals. */
|
|
|
|
/ {
|
|
|
|
soc {
|
|
|
|
sram1: memory@20008000 {
|
|
|
|
compatible = "mmio-sram";
|
|
|
|
reg = <0x20008000 DT_SIZE_K(32)>;
|
|
|
|
};
|
|
|
|
|
|
|
|
sram2: memory@20010000 {
|
|
|
|
compatible = "mmio-sram";
|
|
|
|
reg = <0x20010000 DT_SIZE_K(48)>;
|
|
|
|
};
|
|
|
|
|
|
|
|
sram3: memory@2001c000 {
|
|
|
|
compatible = "mmio-sram";
|
|
|
|
reg = <0x2001c000 DT_SIZE_K(16)>;
|
|
|
|
};
|
|
|
|
|
|
|
|
uart3: serial@40081400 {
|
|
|
|
compatible = "adi,max32-uart";
|
|
|
|
reg = <0x40081400 0x1000>;
|
|
|
|
clocks = <&gcr ADI_MAX32_CLOCK_BUS2 4>;
|
|
|
|
clock-source = <ADI_MAX32_PRPH_CLK_SRC_IBRO>;
|
|
|
|
interrupts = <88 0>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
2023-11-02 20:44:47 +08:00
|
|
|
|
|
|
|
dma0: dma@40028000 {
|
|
|
|
compatible = "adi,max32-dma";
|
|
|
|
reg = <0x40028000 0x1000>;
|
|
|
|
clocks = <&gcr ADI_MAX32_CLOCK_BUS0 5>;
|
|
|
|
interrupts = <28 0>, <29 0>, <30 0>, <31 0>;
|
|
|
|
dma-channels = <4>;
|
|
|
|
status = "disabled";
|
|
|
|
#dma-cells = <2>;
|
|
|
|
};
|
2023-10-25 14:25:05 +08:00
|
|
|
|
|
|
|
wdt1: watchdog@40080800 {
|
|
|
|
compatible = "adi,max32-watchdog";
|
|
|
|
reg = <0x40080800 0x400>;
|
|
|
|
interrupts = <57 0>;
|
|
|
|
clocks = <&gcr ADI_MAX32_CLOCK_BUS2 1>;
|
|
|
|
clock-source = <ADI_MAX32_PRPH_CLK_SRC_IBRO>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
2023-11-22 17:39:30 +08:00
|
|
|
|
|
|
|
spi0: spi@400be000 {
|
|
|
|
compatible = "adi,max32-spi";
|
|
|
|
reg = <0x400be000 0x1000>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
clocks = <&gcr ADI_MAX32_CLOCK_BUS1 16>;
|
|
|
|
interrupts = <56 0>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
spi1: spi@40046000 {
|
|
|
|
compatible = "adi,max32-spi";
|
|
|
|
reg = <0x40046000 0x1000>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
clocks = <&gcr ADI_MAX32_CLOCK_BUS0 6>;
|
|
|
|
interrupts = <16 0>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
2023-11-16 00:38:15 +08:00
|
|
|
|
|
|
|
lptimer0: timer@40080c00 {
|
|
|
|
compatible = "adi,max32-timer";
|
|
|
|
reg = <0x40080c00 0x400>;
|
|
|
|
interrupts = <9 0>;
|
|
|
|
status = "disabled";
|
|
|
|
clocks = <&gcr ADI_MAX32_CLOCK_BUS2 2>;
|
|
|
|
clock-source = <ADI_MAX32_PRPH_CLK_SRC_PCLK>;
|
|
|
|
prescaler = <1>;
|
2024-05-14 15:43:35 +08:00
|
|
|
counter {
|
|
|
|
compatible = "adi,max32-counter";
|
|
|
|
status = "disabled";
|
|
|
|
};
|
2023-11-16 00:38:15 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
lptimer1: timer@40081000 {
|
|
|
|
compatible = "adi,max32-timer";
|
|
|
|
reg = <0x40081000 0x400>;
|
|
|
|
interrupts = <10 0>;
|
|
|
|
status = "disabled";
|
|
|
|
clocks = <&gcr ADI_MAX32_CLOCK_BUS2 3>;
|
|
|
|
clock-source = <ADI_MAX32_PRPH_CLK_SRC_PCLK>;
|
|
|
|
prescaler = <1>;
|
2024-05-14 15:43:35 +08:00
|
|
|
counter {
|
|
|
|
compatible = "adi,max32-counter";
|
|
|
|
status = "disabled";
|
|
|
|
};
|
2023-11-16 00:38:15 +08:00
|
|
|
};
|
2023-11-30 18:52:52 +08:00
|
|
|
|
|
|
|
w1: w1@4003d000 {
|
|
|
|
compatible = "adi,max32-w1";
|
|
|
|
reg = <0x4003d000 0x1000>;
|
|
|
|
clocks = <&gcr ADI_MAX32_CLOCK_BUS1 13>;
|
|
|
|
interrupts = <67 0>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
2023-10-13 21:23:57 +08:00
|
|
|
};
|
|
|
|
};
|