Skip to content

Commit

Permalink
boards: nxp: rd_rw612_bga: enable support for flash
Browse files Browse the repository at this point in the history
Enable support for the mx25u51245g flash chip present on the
RD RW612 BGA. Support has been verified with the following samples:

- samples/drivers/flash_shell
- tests/drivers/flash/common

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
  • Loading branch information
danieldegrasse authored and fabiobaltieri committed Mar 20, 2024
1 parent adfe4b8 commit 414b3b7
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
2 changes: 2 additions & 0 deletions boards/nxp/rd_rw612_bga/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ Supported Features
+-----------+------------+-----------------------------------+
| I2C | on-chip | i2c |
+-----------+------------+-----------------------------------+
| FLEXSPI | on-chip | flash |
+-----------+------------+-----------------------------------+
| TRNG | on-chip | entropy |
+-----------+------------+-----------------------------------+
| WWDT | on-chip | watchdog |
Expand Down
18 changes: 18 additions & 0 deletions boards/nxp/rd_rw612_bga/rd_rw612_bga-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,22 @@
bias-pull-up;
};
};

pinmux_flexspi: pinmux_flexspi {
group0 {
pinmux = <IO_MUX_QUAD_SPI_FLASH_IO28
IO_MUX_QUAD_SPI_FLASH_IO30
IO_MUX_QUAD_SPI_FLASH_IO31
IO_MUX_QUAD_SPI_FLASH_IO32
IO_MUX_QUAD_SPI_FLASH_IO33
IO_MUX_QUAD_SPI_FLASH_IO34>;
slew-rate = "ultra";
};

group1 {
pinmux = <IO_MUX_QUAD_SPI_FLASH_IO29>;
slew-rate = "ultra";
bias-pull-down;
};
};
};
10 changes: 9 additions & 1 deletion boards/nxp/rd_rw612_bga/rd_rw612_bga.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,22 @@ arduino_i2c: &flexcomm2 {
};

&flexspi {
status = "okay";
ahb-bufferable;
ahb-prefetch;
ahb-cacheable;
ahb-read-addr-opt;
rx-clock-source = <1>;
pinctrl-0 = <&pinmux_flexspi>;
pinctrl-names = "default";
status = "okay";
mx25u51245g: mx25u51245g@0 {
compatible = "nxp,imx-flexspi-nor";
spi-max-frequency = <133000000>;
reg = <0>;
/* MX25UM51245G is 64MB, 512MBit flash part */
size = <DT_SIZE_M(64 * 8)>;
status = "disabled";
status = "okay";
jedec-id = [c2 25 3a];
erase-block-size = <4096>;
write-block-size = <1>;
Expand Down

0 comments on commit 414b3b7

Please sign in to comment.