2017-04-11 23:05:42 +08:00
|
|
|
#include <arm/armv7-m.dtsi>
|
2018-03-03 23:39:47 +08:00
|
|
|
#include <dt-bindings/i2c/i2c.h>
|
2017-04-11 23:05:42 +08:00
|
|
|
#include <nordic/mem.h>
|
|
|
|
|
|
|
|
/ {
|
|
|
|
cpus {
|
2017-07-16 02:57:32 +08:00
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
2017-04-11 23:05:42 +08:00
|
|
|
cpu@0 {
|
2017-07-16 02:57:32 +08:00
|
|
|
device_type = "cpu";
|
2017-04-11 23:05:42 +08:00
|
|
|
compatible = "arm,cortex-m4f";
|
2017-07-16 02:57:32 +08:00
|
|
|
reg = <0>;
|
2017-04-11 23:05:42 +08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2017-09-20 16:55:30 +08:00
|
|
|
flash-controller@4001E000 {
|
|
|
|
compatible = "nrf,nrf52-flash-controller";
|
|
|
|
reg = <0x4001E000 0x550>;
|
|
|
|
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
2018-03-21 01:41:39 +08:00
|
|
|
label="NRF_FLASH_DRV_NAME";
|
2018-01-22 21:48:38 +08:00
|
|
|
|
2017-09-20 16:55:30 +08:00
|
|
|
flash0: flash@0 {
|
|
|
|
compatible = "soc-nv-flash";
|
2018-03-21 01:41:39 +08:00
|
|
|
label = "NRF_FLASH";
|
2017-09-20 16:55:30 +08:00
|
|
|
reg = <0x00000000 DT_FLASH_SIZE>;
|
|
|
|
write-block-size = <4>;
|
|
|
|
};
|
2017-04-11 23:05:42 +08:00
|
|
|
};
|
|
|
|
|
2017-07-21 20:43:01 +08:00
|
|
|
sram0: memory@20000000 {
|
2017-07-21 23:57:58 +08:00
|
|
|
device_type = "memory";
|
2017-07-20 21:21:12 +08:00
|
|
|
compatible = "mmio-sram";
|
2017-04-11 23:05:42 +08:00
|
|
|
reg = <0x20000000 DT_SRAM_SIZE>;
|
|
|
|
};
|
|
|
|
|
|
|
|
soc {
|
|
|
|
uart0: uart@40002000 {
|
|
|
|
compatible = "nordic,nrf-uarte", "nordic,nrf-uart";
|
|
|
|
reg = <0x40002000 0x1000>;
|
|
|
|
interrupts = <2 1>;
|
|
|
|
status = "disabled";
|
2017-05-17 05:25:03 +08:00
|
|
|
label = "UART_0";
|
2017-04-11 23:05:42 +08:00
|
|
|
};
|
2018-03-03 23:39:47 +08:00
|
|
|
|
|
|
|
i2c0: i2c@40003000 {
|
|
|
|
compatible = "nordic,nrf5-i2c";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
reg = <0x40003000 0x1000>;
|
|
|
|
clock-frequency = <I2C_BITRATE_STANDARD>;
|
|
|
|
interrupts = <3 1>;
|
|
|
|
status = "disabled";
|
|
|
|
label = "I2C_0";
|
|
|
|
};
|
|
|
|
|
|
|
|
i2c1: i2c@40004000 {
|
|
|
|
compatible = "nordic,nrf5-i2c";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
reg = <0x40004000 0x1000>;
|
|
|
|
clock-frequency = <I2C_BITRATE_STANDARD>;
|
|
|
|
interrupts = <4 1>;
|
|
|
|
status = "disabled";
|
|
|
|
label = "I2C_1";
|
|
|
|
};
|
2018-04-17 21:29:12 +08:00
|
|
|
|
|
|
|
wdt: watchdog@40010000 {
|
|
|
|
compatible = "nordic,nrf-watchdog";
|
|
|
|
reg = <0x40010000 0x1000>;
|
|
|
|
interrupts = <16 1>;
|
|
|
|
interrupt-names = "wdt";
|
|
|
|
label = "WDT";
|
|
|
|
};
|
2017-04-11 23:05:42 +08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&nvic {
|
|
|
|
arm,num-irq-priority-bits = <3>;
|
|
|
|
};
|