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:
parent
25ddc4e0f5
commit
2edfb89db8
9 changed files with 13 additions and 13 deletions
|
@ -43,7 +43,7 @@
|
||||||
arduino_serial: &lpuart1 {};
|
arduino_serial: &lpuart1 {};
|
||||||
|
|
||||||
&flexspi {
|
&flexspi {
|
||||||
reg = <0x402a8000 0x4000>, <0x60000000 0x1000000>;
|
reg = <0x402a8000 0x4000>, <0x60000000 DT_SIZE_M(16)>;
|
||||||
at25sf128a: at25sf128a@0 {
|
at25sf128a: at25sf128a@0 {
|
||||||
compatible = "adesto,at25sf128a", "jedec,spi-nor";
|
compatible = "adesto,at25sf128a", "jedec,spi-nor";
|
||||||
size = <134217728>;
|
size = <134217728>;
|
||||||
|
|
|
@ -72,7 +72,7 @@
|
||||||
arduino_serial: &lpuart4 {};
|
arduino_serial: &lpuart4 {};
|
||||||
|
|
||||||
&flexspi {
|
&flexspi {
|
||||||
reg = <0x402a8000 0x4000>, <0x60000000 0x1000000>;
|
reg = <0x402a8000 0x4000>, <0x60000000 DT_SIZE_M(16)>;
|
||||||
at25sf128a: at25sf128a@0 {
|
at25sf128a: at25sf128a@0 {
|
||||||
compatible = "adesto,at25sf128a", "jedec,spi-nor";
|
compatible = "adesto,at25sf128a", "jedec,spi-nor";
|
||||||
size = <134217728>;
|
size = <134217728>;
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
sdram0: memory@80000000 {
|
sdram0: memory@80000000 {
|
||||||
/* ISSI IS42S16160J-6TLI */
|
/* ISSI IS42S16160J-6TLI */
|
||||||
device_type = "memory";
|
device_type = "memory";
|
||||||
reg = <0x80000000 0x2000000>;
|
reg = <0x80000000 DT_SIZE_M(32)>;
|
||||||
};
|
};
|
||||||
|
|
||||||
leds {
|
leds {
|
||||||
|
@ -79,7 +79,7 @@
|
||||||
arduino_serial: &lpuart2 {};
|
arduino_serial: &lpuart2 {};
|
||||||
|
|
||||||
&flexspi {
|
&flexspi {
|
||||||
reg = <0x402a8000 0x4000>, <0x60000000 0x800000>;
|
reg = <0x402a8000 0x4000>, <0x60000000 DT_SIZE_M(8)>;
|
||||||
is25wp064: is25wp064@0 {
|
is25wp064: is25wp064@0 {
|
||||||
compatible = "issi,is25wp064", "jedec,spi-nor";
|
compatible = "issi,is25wp064", "jedec,spi-nor";
|
||||||
size = <67108864>;
|
size = <67108864>;
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
sdram0: memory@80000000 {
|
sdram0: memory@80000000 {
|
||||||
/* Micron MT48LC16M16A2B4-6AIT:G */
|
/* Micron MT48LC16M16A2B4-6AIT:G */
|
||||||
device_type = "memory";
|
device_type = "memory";
|
||||||
reg = <0x80000000 0x2000000>;
|
reg = <0x80000000 DT_SIZE_M(32)>;
|
||||||
};
|
};
|
||||||
|
|
||||||
leds {
|
leds {
|
||||||
|
@ -90,7 +90,7 @@
|
||||||
arduino_serial: &lpuart3 {};
|
arduino_serial: &lpuart3 {};
|
||||||
|
|
||||||
&flexspi {
|
&flexspi {
|
||||||
reg = <0x402a8000 0x4000>, <0x60000000 0x4000000>;
|
reg = <0x402a8000 0x4000>, <0x60000000 DT_SIZE_M(64)>;
|
||||||
hyperflash0: hyperflash@0 {
|
hyperflash0: hyperflash@0 {
|
||||||
compatible = "cypress,s26ks512s";
|
compatible = "cypress,s26ks512s";
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
/delete-node/ &hyperflash0;
|
/delete-node/ &hyperflash0;
|
||||||
|
|
||||||
&flexspi {
|
&flexspi {
|
||||||
reg = <0x402a8000 0x4000>, <0x60000000 0x800000>;
|
reg = <0x402a8000 0x4000>, <0x60000000 DT_SIZE_M(8)>;
|
||||||
is25wp064: is25wp064@0 {
|
is25wp064: is25wp064@0 {
|
||||||
compatible = "issi,is25wp064", "jedec,spi-nor";
|
compatible = "issi,is25wp064", "jedec,spi-nor";
|
||||||
size = <67108864>;
|
size = <67108864>;
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
sdram0: memory@80000000 {
|
sdram0: memory@80000000 {
|
||||||
/* Micron MT48LC16M16A2B4-6AIT:G */
|
/* Micron MT48LC16M16A2B4-6AIT:G */
|
||||||
device_type = "memory";
|
device_type = "memory";
|
||||||
reg = <0x80000000 0x2000000>;
|
reg = <0x80000000 DT_SIZE_M(32)>;
|
||||||
};
|
};
|
||||||
|
|
||||||
leds {
|
leds {
|
||||||
|
@ -91,7 +91,7 @@
|
||||||
arduino_serial: &lpuart3 {};
|
arduino_serial: &lpuart3 {};
|
||||||
|
|
||||||
&flexspi {
|
&flexspi {
|
||||||
reg = <0x402a8000 0x4000>, <0x60000000 0x800000>;
|
reg = <0x402a8000 0x4000>, <0x60000000 DT_SIZE_M(8)>;
|
||||||
is25wp064: is25wp064@0 {
|
is25wp064: is25wp064@0 {
|
||||||
compatible = "issi,is25wp064", "jedec,spi-nor";
|
compatible = "issi,is25wp064", "jedec,spi-nor";
|
||||||
size = <67108864>;
|
size = <67108864>;
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
/delete-node/ &is25wp064;
|
/delete-node/ &is25wp064;
|
||||||
&flexspi {
|
&flexspi {
|
||||||
reg = <0x402a8000 0x4000>, <0x60000000 0x4000000>;
|
reg = <0x402a8000 0x4000>, <0x60000000 DT_SIZE_M(64)>;
|
||||||
hyperflash0: hyperflash@0 {
|
hyperflash0: hyperflash@0 {
|
||||||
compatible = "cypress,s26ks512s";
|
compatible = "cypress,s26ks512s";
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
sdram0: memory@80000000 {
|
sdram0: memory@80000000 {
|
||||||
/* Micron MT48LC16M16A2B4-6AIT:G */
|
/* Micron MT48LC16M16A2B4-6AIT:G */
|
||||||
device_type = "memory";
|
device_type = "memory";
|
||||||
reg = <0x80000000 0x2000000>;
|
reg = <0x80000000 DT_SIZE_M(32)>;
|
||||||
};
|
};
|
||||||
|
|
||||||
leds {
|
leds {
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
sdram0: memory@80000000 {
|
sdram0: memory@80000000 {
|
||||||
/* Micron MT48LC16M16A2B4-6AIT:G */
|
/* Micron MT48LC16M16A2B4-6AIT:G */
|
||||||
device_type = "memory";
|
device_type = "memory";
|
||||||
reg = <0x80000000 0x2000000>;
|
reg = <0x80000000 DT_SIZE_M(32)>;
|
||||||
};
|
};
|
||||||
|
|
||||||
leds {
|
leds {
|
||||||
|
@ -52,7 +52,7 @@
|
||||||
|
|
||||||
|
|
||||||
&flexspi {
|
&flexspi {
|
||||||
reg = <0x402a8000 0x4000>, <0x60000000 0x800000>;
|
reg = <0x402a8000 0x4000>, <0x60000000 DT_SIZE_M(8)>;
|
||||||
is25wp064: is25wp064@0 {
|
is25wp064: is25wp064@0 {
|
||||||
compatible = "issi,is25wp064", "jedec,spi-nor";
|
compatible = "issi,is25wp064", "jedec,spi-nor";
|
||||||
size = <67108864>;
|
size = <67108864>;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue