* [PATCH] ARM: stm32: Align mtdparts with SPI NOR layout on DHSOM
@ 2021-10-23 22:46 Marek Vasut
2021-10-25 6:42 ` Patrice CHOTARD
2021-10-25 8:43 ` Patrick DELAUNAY
0 siblings, 2 replies; 7+ messages in thread
From: Marek Vasut @ 2021-10-23 22:46 UTC (permalink / raw)
To: u-boot; +Cc: Marek Vasut, Patrice Chotard, Patrick Delaunay
The DHSOM uses different SPI NOR layout than the ST devkit, stop
pulling in the ST specific runtime mtdparts settings and adjust
the mtdparts accordingly.
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Patrice Chotard <patrice.chotard@foss.st.com>
Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
---
board/dhelectronics/dh_stm32mp1/Makefile | 1 -
configs/stm32mp15_dhcom_basic_defconfig | 3 ++-
configs/stm32mp15_dhcor_basic_defconfig | 2 ++
3 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/board/dhelectronics/dh_stm32mp1/Makefile b/board/dhelectronics/dh_stm32mp1/Makefile
index b368b396a46..30db1dee807 100644
--- a/board/dhelectronics/dh_stm32mp1/Makefile
+++ b/board/dhelectronics/dh_stm32mp1/Makefile
@@ -5,5 +5,4 @@
obj-y += ../../st/common/stpmic1.o board.o
-obj-$(CONFIG_SYS_MTDPARTS_RUNTIME) += ../../st/common/stm32mp_mtdparts.o
obj-$(CONFIG_SET_DFU_ALT_INFO) += ../../st/common/stm32mp_dfu.o
diff --git a/configs/stm32mp15_dhcom_basic_defconfig b/configs/stm32mp15_dhcom_basic_defconfig
index 5ecc91c7c1b..f51896ed472 100644
--- a/configs/stm32mp15_dhcom_basic_defconfig
+++ b/configs/stm32mp15_dhcom_basic_defconfig
@@ -61,6 +61,8 @@ CONFIG_CMD_PMIC=y
CONFIG_CMD_REGULATOR=y
CONFIG_CMD_EXT4_WRITE=y
CONFIG_CMD_MTDPARTS=y
+CONFIG_MTDIDS_DEFAULT="nor0=nor0"
+CONFIG_MTDPARTS_DEFAULT="mtdparts=nor0:256k(fsbl1),256k(fsbl2),1408k(uboot),64k(env1),64k(env2)"
# CONFIG_SPL_DOS_PARTITION is not set
# CONFIG_ISO_PARTITION is not set
# CONFIG_SPL_PARTITION_UUIDS is not set
@@ -102,7 +104,6 @@ CONFIG_SUPPORT_EMMC_BOOT=y
CONFIG_STM32_SDMMC2=y
CONFIG_MTD=y
CONFIG_DM_MTD=y
-CONFIG_SYS_MTDPARTS_RUNTIME=y
CONFIG_DM_SPI_FLASH=y
CONFIG_SF_DEFAULT_SPEED=50000000
CONFIG_SPI_FLASH_SFDP_SUPPORT=y
diff --git a/configs/stm32mp15_dhcor_basic_defconfig b/configs/stm32mp15_dhcor_basic_defconfig
index 7c410b8224a..13e4553ac82 100644
--- a/configs/stm32mp15_dhcor_basic_defconfig
+++ b/configs/stm32mp15_dhcor_basic_defconfig
@@ -59,6 +59,8 @@ CONFIG_CMD_PMIC=y
CONFIG_CMD_REGULATOR=y
CONFIG_CMD_EXT4_WRITE=y
CONFIG_CMD_MTDPARTS=y
+CONFIG_MTDIDS_DEFAULT="nor0=nor0"
+CONFIG_MTDPARTS_DEFAULT="mtdparts=nor0:256k(fsbl1),256k(fsbl2),1408k(uboot),64k(env1),64k(env2)"
# CONFIG_SPL_DOS_PARTITION is not set
# CONFIG_ISO_PARTITION is not set
# CONFIG_SPL_PARTITION_UUIDS is not set
--
2.33.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] ARM: stm32: Align mtdparts with SPI NOR layout on DHSOM
2021-10-23 22:46 [PATCH] ARM: stm32: Align mtdparts with SPI NOR layout on DHSOM Marek Vasut
@ 2021-10-25 6:42 ` Patrice CHOTARD
2021-10-25 8:43 ` Patrick DELAUNAY
1 sibling, 0 replies; 7+ messages in thread
From: Patrice CHOTARD @ 2021-10-25 6:42 UTC (permalink / raw)
To: Marek Vasut, u-boot; +Cc: Patrick Delaunay
Hi Marek
On 10/24/21 12:46 AM, Marek Vasut wrote:
> The DHSOM uses different SPI NOR layout than the ST devkit, stop
> pulling in the ST specific runtime mtdparts settings and adjust
> the mtdparts accordingly.
>
> Signed-off-by: Marek Vasut <marex@denx.de>
> Cc: Patrice Chotard <patrice.chotard@foss.st.com>
> Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
> ---
> board/dhelectronics/dh_stm32mp1/Makefile | 1 -
> configs/stm32mp15_dhcom_basic_defconfig | 3 ++-
> configs/stm32mp15_dhcor_basic_defconfig | 2 ++
> 3 files changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/board/dhelectronics/dh_stm32mp1/Makefile b/board/dhelectronics/dh_stm32mp1/Makefile
> index b368b396a46..30db1dee807 100644
> --- a/board/dhelectronics/dh_stm32mp1/Makefile
> +++ b/board/dhelectronics/dh_stm32mp1/Makefile
> @@ -5,5 +5,4 @@
>
> obj-y += ../../st/common/stpmic1.o board.o
>
> -obj-$(CONFIG_SYS_MTDPARTS_RUNTIME) += ../../st/common/stm32mp_mtdparts.o
> obj-$(CONFIG_SET_DFU_ALT_INFO) += ../../st/common/stm32mp_dfu.o
> diff --git a/configs/stm32mp15_dhcom_basic_defconfig b/configs/stm32mp15_dhcom_basic_defconfig
> index 5ecc91c7c1b..f51896ed472 100644
> --- a/configs/stm32mp15_dhcom_basic_defconfig
> +++ b/configs/stm32mp15_dhcom_basic_defconfig
> @@ -61,6 +61,8 @@ CONFIG_CMD_PMIC=y
> CONFIG_CMD_REGULATOR=y
> CONFIG_CMD_EXT4_WRITE=y
> CONFIG_CMD_MTDPARTS=y
> +CONFIG_MTDIDS_DEFAULT="nor0=nor0"
> +CONFIG_MTDPARTS_DEFAULT="mtdparts=nor0:256k(fsbl1),256k(fsbl2),1408k(uboot),64k(env1),64k(env2)"
> # CONFIG_SPL_DOS_PARTITION is not set
> # CONFIG_ISO_PARTITION is not set
> # CONFIG_SPL_PARTITION_UUIDS is not set
> @@ -102,7 +104,6 @@ CONFIG_SUPPORT_EMMC_BOOT=y
> CONFIG_STM32_SDMMC2=y
> CONFIG_MTD=y
> CONFIG_DM_MTD=y
> -CONFIG_SYS_MTDPARTS_RUNTIME=y
> CONFIG_DM_SPI_FLASH=y
> CONFIG_SF_DEFAULT_SPEED=50000000
> CONFIG_SPI_FLASH_SFDP_SUPPORT=y
> diff --git a/configs/stm32mp15_dhcor_basic_defconfig b/configs/stm32mp15_dhcor_basic_defconfig
> index 7c410b8224a..13e4553ac82 100644
> --- a/configs/stm32mp15_dhcor_basic_defconfig
> +++ b/configs/stm32mp15_dhcor_basic_defconfig
> @@ -59,6 +59,8 @@ CONFIG_CMD_PMIC=y
> CONFIG_CMD_REGULATOR=y
> CONFIG_CMD_EXT4_WRITE=y
> CONFIG_CMD_MTDPARTS=y
> +CONFIG_MTDIDS_DEFAULT="nor0=nor0"
> +CONFIG_MTDPARTS_DEFAULT="mtdparts=nor0:256k(fsbl1),256k(fsbl2),1408k(uboot),64k(env1),64k(env2)"
> # CONFIG_SPL_DOS_PARTITION is not set
> # CONFIG_ISO_PARTITION is not set
> # CONFIG_SPL_PARTITION_UUIDS is not set
>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Thanks
Patrice
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] ARM: stm32: Align mtdparts with SPI NOR layout on DHSOM
2021-10-23 22:46 [PATCH] ARM: stm32: Align mtdparts with SPI NOR layout on DHSOM Marek Vasut
2021-10-25 6:42 ` Patrice CHOTARD
@ 2021-10-25 8:43 ` Patrick DELAUNAY
2021-11-10 15:56 ` Patrice CHOTARD
1 sibling, 1 reply; 7+ messages in thread
From: Patrick DELAUNAY @ 2021-10-25 8:43 UTC (permalink / raw)
To: Marek Vasut, u-boot; +Cc: Patrice Chotard
Hi,
On 10/24/21 12:46 AM, Marek Vasut wrote:
> The DHSOM uses different SPI NOR layout than the ST devkit, stop
> pulling in the ST specific runtime mtdparts settings and adjust
> the mtdparts accordingly.
>
> Signed-off-by: Marek Vasut <marex@denx.de>
> Cc: Patrice Chotard <patrice.chotard@foss.st.com>
> Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
> ---
> board/dhelectronics/dh_stm32mp1/Makefile | 1 -
> configs/stm32mp15_dhcom_basic_defconfig | 3 ++-
> configs/stm32mp15_dhcor_basic_defconfig | 2 ++
> 3 files changed, 4 insertions(+), 2 deletions(-)
>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Thanks
Patrick
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] ARM: stm32: Align mtdparts with SPI NOR layout on DHSOM
2021-10-25 8:43 ` Patrick DELAUNAY
@ 2021-11-10 15:56 ` Patrice CHOTARD
2021-11-10 16:02 ` Tom Rini
0 siblings, 1 reply; 7+ messages in thread
From: Patrice CHOTARD @ 2021-11-10 15:56 UTC (permalink / raw)
To: Patrick DELAUNAY, Marek Vasut, u-boot
Hi Marek
On 10/25/21 10:43 AM, Patrick DELAUNAY wrote:
> Hi,
>
> On 10/24/21 12:46 AM, Marek Vasut wrote:
>> The DHSOM uses different SPI NOR layout than the ST devkit, stop
>> pulling in the ST specific runtime mtdparts settings and adjust
>> the mtdparts accordingly.
>>
>> Signed-off-by: Marek Vasut <marex@denx.de>
>> Cc: Patrice Chotard <patrice.chotard@foss.st.com>
>> Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
>> ---
>> board/dhelectronics/dh_stm32mp1/Makefile | 1 -
>> configs/stm32mp15_dhcom_basic_defconfig | 3 ++-
>> configs/stm32mp15_dhcor_basic_defconfig | 2 ++
>> 3 files changed, 4 insertions(+), 2 deletions(-)
>>
>
> Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
>
> Thanks
> Patrick
>
>
>
Applied on u-boot-stm/master
Thanks
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] ARM: stm32: Align mtdparts with SPI NOR layout on DHSOM
2021-11-10 15:56 ` Patrice CHOTARD
@ 2021-11-10 16:02 ` Tom Rini
2021-11-10 17:05 ` Patrice CHOTARD
0 siblings, 1 reply; 7+ messages in thread
From: Tom Rini @ 2021-11-10 16:02 UTC (permalink / raw)
To: Patrice CHOTARD; +Cc: Patrick DELAUNAY, Marek Vasut, u-boot
[-- Attachment #1: Type: text/plain, Size: 1116 bytes --]
On Wed, Nov 10, 2021 at 04:56:37PM +0100, Patrice CHOTARD wrote:
> Hi Marek
>
> On 10/25/21 10:43 AM, Patrick DELAUNAY wrote:
> > Hi,
> >
> > On 10/24/21 12:46 AM, Marek Vasut wrote:
> >> The DHSOM uses different SPI NOR layout than the ST devkit, stop
> >> pulling in the ST specific runtime mtdparts settings and adjust
> >> the mtdparts accordingly.
> >>
> >> Signed-off-by: Marek Vasut <marex@denx.de>
> >> Cc: Patrice Chotard <patrice.chotard@foss.st.com>
> >> Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
> >> ---
> >> board/dhelectronics/dh_stm32mp1/Makefile | 1 -
> >> configs/stm32mp15_dhcom_basic_defconfig | 3 ++-
> >> configs/stm32mp15_dhcor_basic_defconfig | 2 ++
> >> 3 files changed, 4 insertions(+), 2 deletions(-)
> >>
> >
> > Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
> >
> Applied on u-boot-stm/master
> Thanks
Question and not saying don't send me a PR with it. Why aren't these in
the per-board dts files with the fixed-partition binding? That's been
long long supported in Linux and U-Boot parses it as well.
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] ARM: stm32: Align mtdparts with SPI NOR layout on DHSOM
2021-11-10 16:02 ` Tom Rini
@ 2021-11-10 17:05 ` Patrice CHOTARD
2021-11-10 17:12 ` Tom Rini
0 siblings, 1 reply; 7+ messages in thread
From: Patrice CHOTARD @ 2021-11-10 17:05 UTC (permalink / raw)
To: Tom Rini; +Cc: Patrick DELAUNAY, Marek Vasut, u-boot
Hi Tom
On 11/10/21 5:02 PM, Tom Rini wrote:
> On Wed, Nov 10, 2021 at 04:56:37PM +0100, Patrice CHOTARD wrote:
>> Hi Marek
>>
>> On 10/25/21 10:43 AM, Patrick DELAUNAY wrote:
>>> Hi,
>>>
>>> On 10/24/21 12:46 AM, Marek Vasut wrote:
>>>> The DHSOM uses different SPI NOR layout than the ST devkit, stop
>>>> pulling in the ST specific runtime mtdparts settings and adjust
>>>> the mtdparts accordingly.
>>>>
>>>> Signed-off-by: Marek Vasut <marex@denx.de>
>>>> Cc: Patrice Chotard <patrice.chotard@foss.st.com>
>>>> Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
>>>> ---
>>>> board/dhelectronics/dh_stm32mp1/Makefile | 1 -
>>>> configs/stm32mp15_dhcom_basic_defconfig | 3 ++-
>>>> configs/stm32mp15_dhcor_basic_defconfig | 2 ++
>>>> 3 files changed, 4 insertions(+), 2 deletions(-)
>>>>
>>>
>>> Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
>>>
>> Applied on u-boot-stm/master
>> Thanks
>
> Question and not saying don't send me a PR with it. Why aren't these in
> the per-board dts files with the fixed-partition binding? That's been
> long long supported in Linux and U-Boot parses it as well.
>
We have some constraints which need to be solved before switching on this bindings.
Usage of fixed-partition bindings is on our todo list ;-)
Thanks
Patrice
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] ARM: stm32: Align mtdparts with SPI NOR layout on DHSOM
2021-11-10 17:05 ` Patrice CHOTARD
@ 2021-11-10 17:12 ` Tom Rini
0 siblings, 0 replies; 7+ messages in thread
From: Tom Rini @ 2021-11-10 17:12 UTC (permalink / raw)
To: Patrice CHOTARD; +Cc: Patrick DELAUNAY, Marek Vasut, u-boot
[-- Attachment #1: Type: text/plain, Size: 1478 bytes --]
On Wed, Nov 10, 2021 at 06:05:49PM +0100, Patrice CHOTARD wrote:
> Hi Tom
>
> On 11/10/21 5:02 PM, Tom Rini wrote:
> > On Wed, Nov 10, 2021 at 04:56:37PM +0100, Patrice CHOTARD wrote:
> >> Hi Marek
> >>
> >> On 10/25/21 10:43 AM, Patrick DELAUNAY wrote:
> >>> Hi,
> >>>
> >>> On 10/24/21 12:46 AM, Marek Vasut wrote:
> >>>> The DHSOM uses different SPI NOR layout than the ST devkit, stop
> >>>> pulling in the ST specific runtime mtdparts settings and adjust
> >>>> the mtdparts accordingly.
> >>>>
> >>>> Signed-off-by: Marek Vasut <marex@denx.de>
> >>>> Cc: Patrice Chotard <patrice.chotard@foss.st.com>
> >>>> Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
> >>>> ---
> >>>> board/dhelectronics/dh_stm32mp1/Makefile | 1 -
> >>>> configs/stm32mp15_dhcom_basic_defconfig | 3 ++-
> >>>> configs/stm32mp15_dhcor_basic_defconfig | 2 ++
> >>>> 3 files changed, 4 insertions(+), 2 deletions(-)
> >>>>
> >>>
> >>> Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
> >>>
> >> Applied on u-boot-stm/master
> >> Thanks
> >
> > Question and not saying don't send me a PR with it. Why aren't these in
> > the per-board dts files with the fixed-partition binding? That's been
> > long long supported in Linux and U-Boot parses it as well.
> >
>
> We have some constraints which need to be solved before switching on this bindings.
> Usage of fixed-partition bindings is on our todo list ;-)
OK, thanks.
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2021-11-10 17:12 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-23 22:46 [PATCH] ARM: stm32: Align mtdparts with SPI NOR layout on DHSOM Marek Vasut
2021-10-25 6:42 ` Patrice CHOTARD
2021-10-25 8:43 ` Patrick DELAUNAY
2021-11-10 15:56 ` Patrice CHOTARD
2021-11-10 16:02 ` Tom Rini
2021-11-10 17:05 ` Patrice CHOTARD
2021-11-10 17:12 ` Tom Rini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox