boards: arm: Use DT_SIZE macros for nxp external memories

Refactors nxp i.mx, kinetis, and lpc board-level device trees to use
DT_SIZE_K and DT_SIZE_M macros to define external memory sizes. This is
self documenting and easier to read.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
This commit is contained in:
Maureen Helm 2020-10-21 13:47:17 -05:00
commit 2edfb89db8
9 changed files with 13 additions and 13 deletions

View file

@ -43,7 +43,7 @@
arduino_serial: &lpuart1 {};
&flexspi {
reg = <0x402a8000 0x4000>, <0x60000000 0x1000000>;
reg = <0x402a8000 0x4000>, <0x60000000 DT_SIZE_M(16)>;
at25sf128a: at25sf128a@0 {
compatible = "adesto,at25sf128a", "jedec,spi-nor";
size = <134217728>;

View file

@ -72,7 +72,7 @@
arduino_serial: &lpuart4 {};
&flexspi {
reg = <0x402a8000 0x4000>, <0x60000000 0x1000000>;
reg = <0x402a8000 0x4000>, <0x60000000 DT_SIZE_M(16)>;
at25sf128a: at25sf128a@0 {
compatible = "adesto,at25sf128a", "jedec,spi-nor";
size = <134217728>;

View file

@ -27,7 +27,7 @@
sdram0: memory@80000000 {
/* ISSI IS42S16160J-6TLI */
device_type = "memory";
reg = <0x80000000 0x2000000>;
reg = <0x80000000 DT_SIZE_M(32)>;
};
leds {
@ -79,7 +79,7 @@
arduino_serial: &lpuart2 {};
&flexspi {
reg = <0x402a8000 0x4000>, <0x60000000 0x800000>;
reg = <0x402a8000 0x4000>, <0x60000000 DT_SIZE_M(8)>;
is25wp064: is25wp064@0 {
compatible = "issi,is25wp064", "jedec,spi-nor";
size = <67108864>;

View file

@ -29,7 +29,7 @@
sdram0: memory@80000000 {
/* Micron MT48LC16M16A2B4-6AIT:G */
device_type = "memory";
reg = <0x80000000 0x2000000>;
reg = <0x80000000 DT_SIZE_M(32)>;
};
leds {
@ -90,7 +90,7 @@
arduino_serial: &lpuart3 {};
&flexspi {
reg = <0x402a8000 0x4000>, <0x60000000 0x4000000>;
reg = <0x402a8000 0x4000>, <0x60000000 DT_SIZE_M(64)>;
hyperflash0: hyperflash@0 {
compatible = "cypress,s26ks512s";
reg = <0>;

View file

@ -9,7 +9,7 @@
/delete-node/ &hyperflash0;
&flexspi {
reg = <0x402a8000 0x4000>, <0x60000000 0x800000>;
reg = <0x402a8000 0x4000>, <0x60000000 DT_SIZE_M(8)>;
is25wp064: is25wp064@0 {
compatible = "issi,is25wp064", "jedec,spi-nor";
size = <67108864>;

View file

@ -30,7 +30,7 @@
sdram0: memory@80000000 {
/* Micron MT48LC16M16A2B4-6AIT:G */
device_type = "memory";
reg = <0x80000000 0x2000000>;
reg = <0x80000000 DT_SIZE_M(32)>;
};
leds {
@ -91,7 +91,7 @@
arduino_serial: &lpuart3 {};
&flexspi {
reg = <0x402a8000 0x4000>, <0x60000000 0x800000>;
reg = <0x402a8000 0x4000>, <0x60000000 DT_SIZE_M(8)>;
is25wp064: is25wp064@0 {
compatible = "issi,is25wp064", "jedec,spi-nor";
size = <67108864>;

View file

@ -8,7 +8,7 @@
/delete-node/ &is25wp064;
&flexspi {
reg = <0x402a8000 0x4000>, <0x60000000 0x4000000>;
reg = <0x402a8000 0x4000>, <0x60000000 DT_SIZE_M(64)>;
hyperflash0: hyperflash@0 {
compatible = "cypress,s26ks512s";
reg = <0>;

View file

@ -30,7 +30,7 @@
sdram0: memory@80000000 {
/* Micron MT48LC16M16A2B4-6AIT:G */
device_type = "memory";
reg = <0x80000000 0x2000000>;
reg = <0x80000000 DT_SIZE_M(32)>;
};
leds {

View file

@ -28,7 +28,7 @@
sdram0: memory@80000000 {
/* Micron MT48LC16M16A2B4-6AIT:G */
device_type = "memory";
reg = <0x80000000 0x2000000>;
reg = <0x80000000 DT_SIZE_M(32)>;
};
leds {
@ -52,7 +52,7 @@
&flexspi {
reg = <0x402a8000 0x4000>, <0x60000000 0x800000>;
reg = <0x402a8000 0x4000>, <0x60000000 DT_SIZE_M(8)>;
is25wp064: is25wp064@0 {
compatible = "issi,is25wp064", "jedec,spi-nor";
size = <67108864>;