2019-04-24 21:53:43 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2019, NXP
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <mem.h>
|
|
|
|
#include <arm/armv8-m.dtsi>
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
|
|
|
|
/ {
|
2020-01-10 23:44:52 +08:00
|
|
|
aliases{
|
|
|
|
gpio-0 = &gpio0;
|
|
|
|
gpio-1 = &gpio1;
|
|
|
|
gpio-2 = &gpio2;
|
|
|
|
gpio-3 = &gpio3;
|
|
|
|
spi-8 = &spi8;
|
|
|
|
usart-0 = &usart0;
|
|
|
|
};
|
|
|
|
|
2019-04-24 21:53:43 +08:00
|
|
|
cpus {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
cpu@0 {
|
|
|
|
compatible = "arm,cortex-m33f";
|
|
|
|
reg = <0>;
|
|
|
|
};
|
|
|
|
cpu@1 {
|
|
|
|
compatible = "arm,cortex-m33";
|
|
|
|
reg = <1>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
sram0:memory@30000000 {
|
|
|
|
compatible = "mmio-sram";
|
|
|
|
reg = <0x30000000 DT_SIZE_K(64)>;
|
|
|
|
};
|
|
|
|
|
|
|
|
sram1:memory@30010000 {
|
|
|
|
compatible = "mmio-sram";
|
|
|
|
reg = <0x30010000 DT_SIZE_K(64)>;
|
|
|
|
};
|
|
|
|
|
|
|
|
sram2:memory@30020000 {
|
|
|
|
compatible = "mmio-sram";
|
|
|
|
reg = <0x30020000 DT_SIZE_K(64)>;
|
|
|
|
};
|
|
|
|
|
|
|
|
sram3:memory@30030000 {
|
|
|
|
compatible = "mmio-sram";
|
|
|
|
reg = <0x30030000 DT_SIZE_K(64)>;
|
|
|
|
};
|
|
|
|
|
2019-07-03 00:48:48 +08:00
|
|
|
sramx:memory@14000000{
|
2019-04-24 21:53:43 +08:00
|
|
|
compatible = "mmio-sram";
|
2019-07-03 00:48:48 +08:00
|
|
|
reg = <0x14000000 DT_SIZE_K(32)>;
|
2019-04-24 21:53:43 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
soc {
|
|
|
|
|
|
|
|
flash0:flash@10000000 {
|
|
|
|
compatible = "soc-nv-flash";
|
|
|
|
reg = <0x10000000 DT_SIZE_K(630)>;
|
|
|
|
};
|
|
|
|
|
2019-11-11 18:08:52 +08:00
|
|
|
flash_reserved:flash@1009D800 {
|
|
|
|
compatible = "soc-nv-flash";
|
|
|
|
reg = <0x1009D800 DT_SIZE_K(10)>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
boot_rom:flash@13000000 {
|
|
|
|
compatible = "soc-nv-flash";
|
|
|
|
reg = <0x13000000 DT_SIZE_K(128)>;
|
|
|
|
};
|
|
|
|
|
2019-04-24 21:53:43 +08:00
|
|
|
usart0:usart@50086000 {
|
|
|
|
compatible = "nxp,lpc-usart";
|
|
|
|
reg = <0x50086000 0xE44>;
|
|
|
|
interrupts = <14 0>;
|
|
|
|
label = "USART_0";
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
2019-06-04 14:03:13 +08:00
|
|
|
gpio0:gpio@0 {
|
|
|
|
compatible = "nxp,lpc-gpio";
|
2019-04-24 21:53:43 +08:00
|
|
|
reg = <0x5008c000 0x2488>;
|
2019-10-09 20:31:03 +08:00
|
|
|
interrupts = <4 2>,<5 2>,<6 2>,<7 2>;
|
2019-04-24 21:53:43 +08:00
|
|
|
label = "GPIO_0";
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
};
|
|
|
|
|
2019-06-04 14:03:13 +08:00
|
|
|
gpio1:gpio@1 {
|
|
|
|
compatible = "nxp,lpc-gpio";
|
2019-04-24 21:53:43 +08:00
|
|
|
reg = <0x5008c000 0x2488>;
|
2019-10-09 20:31:03 +08:00
|
|
|
interrupts = <32 2>,<33 2>,<34 2>,<35 2>;
|
2019-04-24 21:53:43 +08:00
|
|
|
label = "GPIO_1";
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
};
|
2019-06-04 14:03:13 +08:00
|
|
|
|
|
|
|
gpio2:gpio@2 {
|
|
|
|
compatible = "nxp,lpc-gpio";
|
|
|
|
reg = <0x5008c000 0x2488>;
|
|
|
|
label = "GPIO_2";
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio3:gpio@3 {
|
|
|
|
compatible = "nxp,lpc-gpio";
|
|
|
|
reg = <0x5008c000 0x2488>;
|
|
|
|
label = "GPIO_3";
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
};
|
2019-06-30 23:16:52 +08:00
|
|
|
|
|
|
|
spi8: spi@5009f000 {
|
|
|
|
compatible = "nxp,lpc-spi";
|
|
|
|
reg = <0x5009f000 0x1000>;
|
|
|
|
interrupts = <59 0>;
|
|
|
|
label = "SPI_8";
|
|
|
|
status = "disabled";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
};
|
2019-04-24 21:53:43 +08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&nvic {
|
|
|
|
arm,num-irq-priority-bits = <3>;
|
|
|
|
};
|