2017-04-28 09:07:20 -07:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2017 Justin Watson
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <arm/armv7-m.dtsi>
|
2017-05-21 02:47:32 +02:00
|
|
|
#include <dt-bindings/i2c/i2c.h>
|
2017-04-28 09:07:20 -07:00
|
|
|
|
|
|
|
/ {
|
2019-11-04 12:17:05 -06:00
|
|
|
aliases {
|
|
|
|
watchdog0 = &wdog;
|
|
|
|
};
|
|
|
|
|
2017-04-28 09:07:20 -07:00
|
|
|
cpus {
|
2017-07-15 21:57:32 +03:00
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
2019-06-21 14:47:08 +02:00
|
|
|
cpu0: cpu@0 {
|
2017-07-15 21:57:32 +03:00
|
|
|
device_type = "cpu";
|
2017-04-28 09:07:20 -07:00
|
|
|
compatible = "arm,cortex-m4";
|
2017-07-15 21:57:32 +03:00
|
|
|
reg = <0>;
|
2017-04-28 09:07:20 -07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2017-07-21 15:43:01 +03:00
|
|
|
sram0: memory@20070000 {
|
2017-07-20 07:59:29 -05:00
|
|
|
compatible = "mmio-sram";
|
2017-04-28 09:07:20 -07:00
|
|
|
reg = <0x20070000 0x18000>;
|
|
|
|
};
|
|
|
|
|
2017-07-21 15:43:01 +03:00
|
|
|
flash0: flash@80000 {
|
2018-01-22 09:28:58 -06:00
|
|
|
compatible = "soc-nv-flash";
|
|
|
|
label = "FLASH_0";
|
2017-04-28 09:07:20 -07:00
|
|
|
reg = <0x00080000 0x80000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
soc {
|
2020-02-20 13:36:52 +01:00
|
|
|
/* Only used for HWINFO device ID */
|
|
|
|
flash-controller@400e0a00 {
|
|
|
|
compatible = "atmel,sam-flash-controller";
|
|
|
|
label = "FLASH_CTRL";
|
|
|
|
reg = <0x400e0a00 0x200>;
|
|
|
|
peripheral-id = <6>;
|
|
|
|
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
};
|
|
|
|
|
2018-11-09 05:53:08 -06:00
|
|
|
wdog: watchdog@400e1a50 {
|
2018-10-24 22:16:25 -07:00
|
|
|
compatible = "atmel,sam-watchdog";
|
2018-11-09 05:53:08 -06:00
|
|
|
reg = <0x400e1a50 0xc>;
|
2018-10-24 22:16:25 -07:00
|
|
|
interrupts = <4 0>;
|
|
|
|
peripheral-id = <4>;
|
|
|
|
label = "WATCHDOG_0";
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
2018-11-09 05:53:08 -06:00
|
|
|
i2c0: i2c@4008c000 {
|
2017-05-21 02:47:32 +02:00
|
|
|
compatible = "atmel,sam-i2c-twi";
|
|
|
|
clock-frequency = <I2C_BITRATE_STANDARD>;
|
2018-11-09 05:53:08 -06:00
|
|
|
reg = <0x4008c000 0x128>;
|
2017-05-21 02:47:32 +02:00
|
|
|
interrupts = <22 0>;
|
|
|
|
peripheral-id = <22>;
|
|
|
|
label = "I2C_0";
|
|
|
|
status = "disabled";
|
2019-06-19 00:20:17 -05:00
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
2017-05-21 02:47:32 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
i2c1: i2c@40090000 {
|
|
|
|
compatible = "atmel,sam-i2c-twi";
|
|
|
|
clock-frequency = <I2C_BITRATE_STANDARD>;
|
|
|
|
reg = <0x40090000 0x128>;
|
|
|
|
interrupts = <23 0>;
|
|
|
|
peripheral-id = <23>;
|
|
|
|
label = "I2C_1";
|
|
|
|
status = "disabled";
|
2019-06-19 00:20:17 -05:00
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
2017-05-21 02:47:32 +02:00
|
|
|
};
|
|
|
|
|
2018-11-09 05:53:08 -06:00
|
|
|
uart0: uart@400e0800 {
|
2017-06-29 16:44:38 -07:00
|
|
|
compatible = "atmel,sam-uart";
|
2018-11-09 05:53:08 -06:00
|
|
|
reg = <0x400e0800 0x124>;
|
2018-02-19 21:58:07 -08:00
|
|
|
interrupts = <8 1>;
|
2017-10-15 15:27:47 +02:00
|
|
|
peripheral-id = <8>;
|
2017-04-28 09:07:20 -07:00
|
|
|
status = "disabled";
|
2017-05-16 21:14:09 -05:00
|
|
|
label = "UART_0";
|
2017-04-28 09:07:20 -07:00
|
|
|
};
|
2017-06-29 16:44:38 -07:00
|
|
|
|
|
|
|
usart0: usart@40098000 {
|
|
|
|
compatible = "atmel,sam-usart";
|
|
|
|
reg = <0x40098000 0x130>;
|
|
|
|
interrupts = <17 0>;
|
2017-10-15 15:27:47 +02:00
|
|
|
peripheral-id = <17>;
|
2017-06-29 16:44:38 -07:00
|
|
|
status = "disabled";
|
|
|
|
label = "USART_0";
|
|
|
|
};
|
|
|
|
|
2018-11-09 05:53:08 -06:00
|
|
|
usart1: usart@4009c000 {
|
2017-06-29 16:44:38 -07:00
|
|
|
compatible = "atmel,sam-usart";
|
2018-11-09 05:53:08 -06:00
|
|
|
reg = <0x4009c000 0x130>;
|
2017-06-29 16:44:38 -07:00
|
|
|
interrupts = <18 0>;
|
2017-10-15 15:27:47 +02:00
|
|
|
peripheral-id = <18>;
|
2017-06-29 16:44:38 -07:00
|
|
|
status = "disabled";
|
|
|
|
label = "USART_1";
|
|
|
|
};
|
|
|
|
|
2018-11-09 05:53:08 -06:00
|
|
|
usart2: usart@400a0000 {
|
2017-06-29 16:44:38 -07:00
|
|
|
compatible = "atmel,sam-usart";
|
2018-11-09 05:53:08 -06:00
|
|
|
reg = <0x400a0000 0x130>;
|
2017-10-18 18:36:37 +02:00
|
|
|
interrupts = <19 0>;
|
2017-10-15 15:27:47 +02:00
|
|
|
peripheral-id = <19>;
|
2017-06-29 16:44:38 -07:00
|
|
|
status = "disabled";
|
|
|
|
label = "USART_2";
|
|
|
|
};
|
|
|
|
|
2018-11-09 05:53:08 -06:00
|
|
|
usart3: usart@400a4000 {
|
2017-06-29 16:44:38 -07:00
|
|
|
compatible = "atmel,sam-usart";
|
2018-11-09 05:53:08 -06:00
|
|
|
reg = <0x400a4000 0x130>;
|
2017-06-29 16:44:38 -07:00
|
|
|
interrupts = <20 0>;
|
2017-10-15 15:27:47 +02:00
|
|
|
peripheral-id = <20>;
|
2017-06-29 16:44:38 -07:00
|
|
|
status = "disabled";
|
|
|
|
label = "USART_3";
|
|
|
|
};
|
2019-09-10 08:13:05 +02:00
|
|
|
|
|
|
|
pioa: pio@400e0e00 {
|
|
|
|
compatible = "atmel,sam-gpio";
|
|
|
|
reg = <0x400e0e00 0x190>;
|
|
|
|
interrupts = <11 1>;
|
|
|
|
peripheral-id = <11>;
|
|
|
|
label = "PIO_A";
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
};
|
|
|
|
|
|
|
|
piob: pio@400e1000 {
|
|
|
|
compatible = "atmel,sam-gpio";
|
|
|
|
reg = <0x400e1000 0x190>;
|
|
|
|
interrupts = <12 1>;
|
|
|
|
peripheral-id = <12>;
|
|
|
|
label = "PIO_B";
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
};
|
|
|
|
|
|
|
|
pioc: pio@400e1200 {
|
|
|
|
compatible = "atmel,sam-gpio";
|
|
|
|
reg = <0x400e1200 0x190>;
|
|
|
|
interrupts = <13 1>;
|
|
|
|
peripheral-id = <13>;
|
|
|
|
label = "PIO_C";
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
};
|
|
|
|
|
|
|
|
piod: pio@400e1400 {
|
|
|
|
compatible = "atmel,sam-gpio";
|
|
|
|
reg = <0x400e1400 0x190>;
|
|
|
|
interrupts = <14 1>;
|
|
|
|
peripheral-id = <14>;
|
|
|
|
label = "PIO_D";
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
};
|
|
|
|
|
|
|
|
pioe: pio@400e1600 {
|
|
|
|
compatible = "atmel,sam-gpio";
|
|
|
|
reg = <0x400e1600 0x190>;
|
|
|
|
interrupts = <15 1>;
|
|
|
|
peripheral-id = <15>;
|
|
|
|
label = "PIO_E";
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
};
|
2017-04-28 09:07:20 -07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&nvic {
|
2017-06-08 10:02:41 -07:00
|
|
|
arm,num-irq-priority-bits = <4>;
|
2017-04-28 09:07:20 -07:00
|
|
|
};
|