From: Christophe Kerello Date: Mon, 12 Sep 2022 15:40:50 +0000 (+0200) Subject: board: st: stm32mp1: use of correct compatible string to add partitions X-Git-Tag: v2023.07~312^2~1^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=89f3745152ab1a88eb9b6629a12b4ff0efe8c61b;p=platform%2Fkernel%2Fu-boot.git board: st: stm32mp1: use of correct compatible string to add partitions 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. Signed-off-by: Christophe Kerello Signed-off-by: Patrick Delaunay Reviewed-by: Patrice Chotard --- diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c index 581a4df..2d98ff4 100644 --- a/board/st/stm32mp1/stm32mp1.c +++ b/board/st/stm32mp1/stm32mp1.c @@ -898,8 +898,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, }, };