dts: nordic: simplify definition of flash and sram sizes in dts

We only need to add the reg property in flash0 and sram0,
in the different DTS headers for the nRF SOCS. We do not
seem to need to define the nodes again. This commit applies
this simplification for flash and sram sizes definition.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
This commit is contained in:
Ioannis Glaropoulos 2018-12-19 17:10:37 +01:00 committed by Carles Cufí
commit fe2f30ad4c
8 changed files with 48 additions and 80 deletions

View file

@ -7,14 +7,10 @@
#include <mem.h>
#include <nordic/nrf51822.dtsi>
/ {
flash-controller@4001E000 {
flash0: flash@0 {
&flash0 {
reg = <0x00000000 DT_SIZE_K(256)>;
};
};
sram0: memory@20000000 {
&sram0 {
reg = <0x20000000 DT_SIZE_K(16)>;
};
};

View file

@ -7,14 +7,10 @@
#include <mem.h>
#include <nordic/nrf51822.dtsi>
/ {
flash-controller@4001E000 {
flash0: flash@0 {
&flash0 {
reg = <0x00000000 DT_SIZE_K(128)>;
};
};
sram0: memory@20000000 {
&sram0 {
reg = <0x20000000 DT_SIZE_K(16)>;
};
};

View file

@ -7,14 +7,10 @@
#include <mem.h>
#include <nordic/nrf51822.dtsi>
/ {
flash-controller@4001E000 {
flash0: flash@0 {
&flash0 {
reg = <0x00000000 DT_SIZE_K(256)>;
};
};
sram0: memory@20000000 {
&sram0 {
reg = <0x20000000 DT_SIZE_K(32)>;
};
};

View file

@ -7,14 +7,10 @@
#include <mem.h>
#include <nordic/nrf52810.dtsi>
/ {
flash-controller@4001E000 {
flash0: flash@0 {
&flash0 {
reg = <0x00000000 DT_SIZE_K(192)>;
};
};
sram0: memory@20000000 {
&sram0 {
reg = <0x20000000 DT_SIZE_K(24)>;
};
};

View file

@ -7,14 +7,10 @@
#include <mem.h>
#include <nordic/nrf52832.dtsi>
/ {
flash-controller@4001E000 {
flash0: flash@0 {
&flash0 {
reg = <0x00000000 DT_SIZE_K(512)>;
};
};
sram0: memory@20000000 {
&sram0 {
reg = <0x20000000 DT_SIZE_K(64)>;
};
};

View file

@ -7,14 +7,10 @@
#include <mem.h>
#include <nordic/nrf52832.dtsi>
/ {
flash-controller@4001E000 {
flash0: flash@0 {
&flash0 {
reg = <0x00000000 DT_SIZE_K(512)>;
};
};
sram0: memory@20000000 {
&sram0 {
reg = <0x20000000 DT_SIZE_K(64)>;
};
};

View file

@ -7,14 +7,10 @@
#include <mem.h>
#include <nordic/nrf52832.dtsi>
/ {
flash-controller@4001E000 {
flash0: flash@0 {
&flash0 {
reg = <0x00000000 DT_SIZE_K(256)>;
};
};
sram0: memory@20000000 {
&sram0 {
reg = <0x20000000 DT_SIZE_K(32)>;
};
};

View file

@ -7,14 +7,10 @@
#include <mem.h>
#include <nordic/nrf52840.dtsi>
/ {
flash-controller@4001E000 {
flash0: flash@0 {
&flash0 {
reg = <0x00000000 DT_SIZE_K(1024)>;
};
};
sram0: memory@20000000 {
&sram0 {
reg = <0x20000000 DT_SIZE_K(256)>;
};
};