linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: imx28-m28: Fix unit-address for partitions
@ 2016-04-27 14:02 Fabio Estevam
  2016-04-27 14:45 ` Marek Vasut
  0 siblings, 1 reply; 2+ messages in thread
From: Fabio Estevam @ 2016-04-27 14:02 UTC (permalink / raw)
  To: linux-arm-kernel

According to ePAPR v1.1: "The unit-address must match the first address
specified in the reg property of the node"

So do as recommended.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
---
 arch/arm/boot/dts/imx28-m28.dtsi | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/arm/boot/dts/imx28-m28.dtsi b/arch/arm/boot/dts/imx28-m28.dtsi
index 759cc56..6270701 100644
--- a/arch/arm/boot/dts/imx28-m28.dtsi
+++ b/arch/arm/boot/dts/imx28-m28.dtsi
@@ -34,22 +34,22 @@
 					read-only;
 				};
 
-				partition at 1 {
+				partition at 300000 {
 					label = "environment";
 					reg = <0x00300000 0x00080000>;
 				};
 
-				partition at 2 {
+				partition at 380000 {
 					label = "redundant-environment";
 					reg = <0x00380000 0x00080000>;
 				};
 
-				partition at 3 {
+				partition at 400000 {
 					label = "kernel";
 					reg = <0x00400000 0x00400000>;
 				};
 
-				partition at 4 {
+				partition at 800000 {
 					label = "filesystem";
 					reg = <0x00800000 0x0f800000>;
 				};
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] ARM: dts: imx28-m28: Fix unit-address for partitions
  2016-04-27 14:02 [PATCH] ARM: dts: imx28-m28: Fix unit-address for partitions Fabio Estevam
@ 2016-04-27 14:45 ` Marek Vasut
  0 siblings, 0 replies; 2+ messages in thread
From: Marek Vasut @ 2016-04-27 14:45 UTC (permalink / raw)
  To: linux-arm-kernel

On 04/27/2016 04:02 PM, Fabio Estevam wrote:
> According to ePAPR v1.1: "The unit-address must match the first address
> specified in the reg property of the node"
> 
> So do as recommended.

Looks good, but if I may, I would suggest something more drastic.
Would you instead remove the whole partitioning from the M28 DT?
We always pass mtdparts from command line, so having some sort of
default partitioning is quite pointless.

Thanks for spotting this though, it's a good reminder to review
older boards.

> Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
> ---
>  arch/arm/boot/dts/imx28-m28.dtsi | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/arch/arm/boot/dts/imx28-m28.dtsi b/arch/arm/boot/dts/imx28-m28.dtsi
> index 759cc56..6270701 100644
> --- a/arch/arm/boot/dts/imx28-m28.dtsi
> +++ b/arch/arm/boot/dts/imx28-m28.dtsi
> @@ -34,22 +34,22 @@
>  					read-only;
>  				};
>  
> -				partition at 1 {
> +				partition at 300000 {
>  					label = "environment";
>  					reg = <0x00300000 0x00080000>;
>  				};
>  
> -				partition at 2 {
> +				partition at 380000 {
>  					label = "redundant-environment";
>  					reg = <0x00380000 0x00080000>;
>  				};
>  
> -				partition at 3 {
> +				partition at 400000 {
>  					label = "kernel";
>  					reg = <0x00400000 0x00400000>;
>  				};
>  
> -				partition at 4 {
> +				partition at 800000 {
>  					label = "filesystem";
>  					reg = <0x00800000 0x0f800000>;
>  				};
> 


-- 
Best regards,
Marek Vasut

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-04-27 14:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-27 14:02 [PATCH] ARM: dts: imx28-m28: Fix unit-address for partitions Fabio Estevam
2016-04-27 14:45 ` Marek Vasut

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).