Skip to content

Commit

Permalink
board: st: stm32mp1: use of correct compatible string to add partitions
Browse files Browse the repository at this point in the history
Current compatible string used to update SPI NAND and SPI NOR devices
can lead to a wrong partitions update (for example, SPI NAND partitions
added to SPI NOR node in the device tree). To avoid this wrong behavior,
use jedec,spi-nor compatible string for SPI NOR devices and spi-nand
compatible string for SPI NAND devices.

Change-Id: Iae28ab1a0be932b26f9cf8b17d870508efa88b79
Signed-off-by: Christophe Kerello <[email protected]>
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/260967
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/270154
Tested-by: Patrick DELAUNAY <[email protected]>
Reviewed-by: CIBUILD <[email protected]>
Reviewed-by: Patrice CHOTARD <[email protected]>
Reviewed-by: Patrick DELAUNAY <[email protected]>
Domain-Review: Patrick DELAUNAY <[email protected]>
  • Loading branch information
Christophe Kerello authored and patrickdelaunay committed Oct 20, 2022
1 parent 1d1745c commit 1d868f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions board/st/stm32mp1/stm32mp1.c
Original file line number Diff line number Diff line change
Expand Up @@ -901,8 +901,8 @@ int mmc_get_env_dev(void)
int ft_board_setup(void *blob, struct bd_info *bd)
{
static const struct node_info nodes[] = {
{ "st,stm32f469-qspi", MTD_DEV_TYPE_NOR, },
{ "st,stm32f469-qspi", MTD_DEV_TYPE_SPINAND},
{ "jedec,spi-nor", MTD_DEV_TYPE_NOR, },
{ "spi-nand", MTD_DEV_TYPE_SPINAND},
{ "st,stm32mp15-fmc2", MTD_DEV_TYPE_NAND, },
{ "st,stm32mp1-fmc2-nfc", MTD_DEV_TYPE_NAND, },
};
Expand Down

0 comments on commit 1d868f8

Please sign in to comment.