All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marek.vasut@gmail.com>
To: linux-arm-kernel@lists.infradead.org
Cc: devicetree@vger.kernel.org,
	Geert Uytterhoeven <geert+renesas@glider.be>,
	Wolfram Sang <wsa@the-dreams.de>,
	linux-renesas-soc@vger.kernel.org,
	Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
	Simon Horman <horms+renesas@verge.net.au>,
	Marek Vasut <marek.vasut+renesas@gmail.com>
Subject: [PATCH 5/9] ARM: dts: porter: Drop MTD partitioning from DT
Date: Tue, 22 May 2018 14:02:53 +0200	[thread overview]
Message-ID: <20180522120257.13232-5-marek.vasut+renesas@gmail.com> (raw)
In-Reply-To: <20180522120257.13232-1-marek.vasut+renesas@gmail.com>

Drop the MTD partitioning from DT, since it does not describe HW
and to give way to a more flexible kernel command line partition
passing.

To retain the original partitioning, assure you have enabled
CONFIG_MTD_CMDLINE_PARTS in your kernel config and add the
following to your kernel command line:

  mtdparts=spi0.0:256k@0(loader_prg),4096k(user_prg),-(flash_fs)

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Simon Horman <horms+renesas@verge.net.au>
Cc: Wolfram Sang <wsa@the-dreams.de>
Cc: linux-renesas-soc@vger.kernel.org
---
 arch/arm/boot/dts/r8a7791-porter.dts | 21 ---------------------
 1 file changed, 21 deletions(-)

diff --git a/arch/arm/boot/dts/r8a7791-porter.dts b/arch/arm/boot/dts/r8a7791-porter.dts
index a01101b49d99..45d89e064407 100644
--- a/arch/arm/boot/dts/r8a7791-porter.dts
+++ b/arch/arm/boot/dts/r8a7791-porter.dts
@@ -344,27 +344,6 @@
 		spi-tx-bus-width = <4>;
 		spi-rx-bus-width = <4>;
 		m25p,fast-read;
-
-		partitions {
-			compatible = "fixed-partitions";
-			#address-cells = <1>;
-			#size-cells = <1>;
-
-			partition@0 {
-				label = "loader_prg";
-				reg = <0x00000000 0x00040000>;
-				read-only;
-			};
-			partition@40000 {
-				label = "user_prg";
-				reg = <0x00040000 0x00400000>;
-				read-only;
-			};
-			partition@440000 {
-				label = "flash_fs";
-				reg = <0x00440000 0x03bc0000>;
-			};
-		};
 	};
 };
 
-- 
2.16.2

WARNING: multiple messages have this Message-ID (diff)
From: Marek Vasut <marek.vasut@gmail.com>
To: linux-arm-kernel@lists.infradead.org
Cc: devicetree@vger.kernel.org,
	Marek Vasut <marek.vasut+renesas@gmail.com>,
	Geert Uytterhoeven <geert+renesas@glider.be>,
	Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
	Simon Horman <horms+renesas@verge.net.au>,
	Wolfram Sang <wsa@the-dreams.de>,
	linux-renesas-soc@vger.kernel.org
Subject: [PATCH 5/9] ARM: dts: porter: Drop MTD partitioning from DT
Date: Tue, 22 May 2018 14:02:53 +0200	[thread overview]
Message-ID: <20180522120257.13232-5-marek.vasut+renesas@gmail.com> (raw)
In-Reply-To: <20180522120257.13232-1-marek.vasut+renesas@gmail.com>

Drop the MTD partitioning from DT, since it does not describe HW
and to give way to a more flexible kernel command line partition
passing.

To retain the original partitioning, assure you have enabled
CONFIG_MTD_CMDLINE_PARTS in your kernel config and add the
following to your kernel command line:

  mtdparts=spi0.0:256k@0(loader_prg),4096k(user_prg),-(flash_fs)

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Simon Horman <horms+renesas@verge.net.au>
Cc: Wolfram Sang <wsa@the-dreams.de>
Cc: linux-renesas-soc@vger.kernel.org
---
 arch/arm/boot/dts/r8a7791-porter.dts | 21 ---------------------
 1 file changed, 21 deletions(-)

diff --git a/arch/arm/boot/dts/r8a7791-porter.dts b/arch/arm/boot/dts/r8a7791-porter.dts
index a01101b49d99..45d89e064407 100644
--- a/arch/arm/boot/dts/r8a7791-porter.dts
+++ b/arch/arm/boot/dts/r8a7791-porter.dts
@@ -344,27 +344,6 @@
 		spi-tx-bus-width = <4>;
 		spi-rx-bus-width = <4>;
 		m25p,fast-read;
-
-		partitions {
-			compatible = "fixed-partitions";
-			#address-cells = <1>;
-			#size-cells = <1>;
-
-			partition@0 {
-				label = "loader_prg";
-				reg = <0x00000000 0x00040000>;
-				read-only;
-			};
-			partition@40000 {
-				label = "user_prg";
-				reg = <0x00040000 0x00400000>;
-				read-only;
-			};
-			partition@440000 {
-				label = "flash_fs";
-				reg = <0x00440000 0x03bc0000>;
-			};
-		};
 	};
 };
 
-- 
2.16.2

WARNING: multiple messages have this Message-ID (diff)
From: marek.vasut@gmail.com (Marek Vasut)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 5/9] ARM: dts: porter: Drop MTD partitioning from DT
Date: Tue, 22 May 2018 14:02:53 +0200	[thread overview]
Message-ID: <20180522120257.13232-5-marek.vasut+renesas@gmail.com> (raw)
In-Reply-To: <20180522120257.13232-1-marek.vasut+renesas@gmail.com>

Drop the MTD partitioning from DT, since it does not describe HW
and to give way to a more flexible kernel command line partition
passing.

To retain the original partitioning, assure you have enabled
CONFIG_MTD_CMDLINE_PARTS in your kernel config and add the
following to your kernel command line:

  mtdparts=spi0.0:256k at 0(loader_prg),4096k(user_prg),-(flash_fs)

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Simon Horman <horms+renesas@verge.net.au>
Cc: Wolfram Sang <wsa@the-dreams.de>
Cc: linux-renesas-soc at vger.kernel.org
---
 arch/arm/boot/dts/r8a7791-porter.dts | 21 ---------------------
 1 file changed, 21 deletions(-)

diff --git a/arch/arm/boot/dts/r8a7791-porter.dts b/arch/arm/boot/dts/r8a7791-porter.dts
index a01101b49d99..45d89e064407 100644
--- a/arch/arm/boot/dts/r8a7791-porter.dts
+++ b/arch/arm/boot/dts/r8a7791-porter.dts
@@ -344,27 +344,6 @@
 		spi-tx-bus-width = <4>;
 		spi-rx-bus-width = <4>;
 		m25p,fast-read;
-
-		partitions {
-			compatible = "fixed-partitions";
-			#address-cells = <1>;
-			#size-cells = <1>;
-
-			partition at 0 {
-				label = "loader_prg";
-				reg = <0x00000000 0x00040000>;
-				read-only;
-			};
-			partition at 40000 {
-				label = "user_prg";
-				reg = <0x00040000 0x00400000>;
-				read-only;
-			};
-			partition at 440000 {
-				label = "flash_fs";
-				reg = <0x00440000 0x03bc0000>;
-			};
-		};
 	};
 };
 
-- 
2.16.2

  parent reply	other threads:[~2018-05-22 12:02 UTC|newest]

Thread overview: 111+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-22 12:02 [PATCH 1/9] ARM: shmobile: defconfig: Enable MTD command line partition parsing Marek Vasut
2018-05-22 12:02 ` Marek Vasut
2018-05-22 12:02 ` Marek Vasut
2018-05-22 12:02 ` [PATCH 2/9] ARM: dts: lager: Drop MTD partitioning from DT Marek Vasut
2018-05-22 12:02   ` Marek Vasut
2018-05-22 12:02   ` Marek Vasut
2018-05-22 12:34   ` Wolfram Sang
2018-05-22 12:34     ` Wolfram Sang
2018-05-22 12:34     ` Wolfram Sang
2018-05-22 14:32   ` Geert Uytterhoeven
2018-05-22 14:32     ` Geert Uytterhoeven
2018-05-22 14:32     ` Geert Uytterhoeven
2018-05-22 21:55     ` Marek Vasut
2018-05-22 21:55       ` Marek Vasut
2018-05-22 21:55       ` Marek Vasut
2018-05-22 12:02 ` [PATCH 3/9] ARM: dts: stout: " Marek Vasut
2018-05-22 12:02   ` Marek Vasut
2018-05-22 12:02   ` Marek Vasut
2018-05-22 12:34   ` Wolfram Sang
2018-05-22 12:34     ` Wolfram Sang
2018-05-22 12:34     ` Wolfram Sang
2018-05-22 14:33   ` Geert Uytterhoeven
2018-05-22 14:33     ` Geert Uytterhoeven
2018-05-22 14:33     ` Geert Uytterhoeven
2018-05-22 12:02 ` [PATCH 4/9] ARM: dts: koelsch: " Marek Vasut
2018-05-22 12:02   ` Marek Vasut
2018-05-22 12:02   ` Marek Vasut
2018-05-22 12:34   ` Wolfram Sang
2018-05-22 12:34     ` Wolfram Sang
2018-05-22 12:34     ` Wolfram Sang
2018-05-22 14:29   ` Geert Uytterhoeven
2018-05-22 14:29     ` Geert Uytterhoeven
2018-05-22 14:29     ` Geert Uytterhoeven
2018-05-22 12:02 ` Marek Vasut [this message]
2018-05-22 12:02   ` [PATCH 5/9] ARM: dts: porter: " Marek Vasut
2018-05-22 12:02   ` Marek Vasut
2018-05-22 12:34   ` Wolfram Sang
2018-05-22 12:34     ` Wolfram Sang
2018-05-22 12:34     ` Wolfram Sang
2018-05-22 14:34   ` Geert Uytterhoeven
2018-05-22 14:34     ` Geert Uytterhoeven
2018-05-22 14:34     ` Geert Uytterhoeven
2018-05-22 12:02 ` [PATCH 6/9] ARM: dts: wheat: " Marek Vasut
2018-05-22 12:02   ` Marek Vasut
2018-05-22 12:02   ` Marek Vasut
2018-05-22 12:34   ` Wolfram Sang
2018-05-22 12:34     ` Wolfram Sang
2018-05-22 12:34     ` Wolfram Sang
2018-05-22 14:43   ` Geert Uytterhoeven
2018-05-22 14:43     ` Geert Uytterhoeven
2018-05-22 14:43     ` Geert Uytterhoeven
2018-05-22 22:01     ` Marek Vasut
2018-05-22 22:01       ` Marek Vasut
2018-05-22 22:01       ` Marek Vasut
2018-05-23  6:25       ` Geert Uytterhoeven
2018-05-23  6:25         ` Geert Uytterhoeven
2018-05-23  6:25         ` Geert Uytterhoeven
2018-05-24 14:52         ` Marek Vasut
2018-05-24 14:52           ` Marek Vasut
2018-05-24 14:52           ` Marek Vasut
2018-05-28  8:41           ` Simon Horman
2018-05-28  8:41             ` Simon Horman
2018-05-28  8:41             ` Simon Horman
2018-05-28  8:54             ` Geert Uytterhoeven
2018-05-28  8:54               ` Geert Uytterhoeven
2018-05-28  8:54               ` Geert Uytterhoeven
2018-05-28  9:36               ` Simon Horman
2018-05-28  9:36                 ` Simon Horman
2018-05-28  9:36                 ` Simon Horman
2018-05-30 10:13                 ` Marek Vasut
2018-05-30 10:13                   ` Marek Vasut
2018-05-30 10:13                   ` Marek Vasut
2018-05-31 11:40                   ` Simon Horman
2018-05-31 11:40                     ` Simon Horman
2018-05-31 11:40                     ` Simon Horman
2018-05-22 12:02 ` [PATCH 7/9] ARM: dts: gose: " Marek Vasut
2018-05-22 12:02   ` Marek Vasut
2018-05-22 12:02   ` Marek Vasut
2018-05-22 12:34   ` Wolfram Sang
2018-05-22 12:34     ` Wolfram Sang
2018-05-22 12:34     ` Wolfram Sang
2018-05-22 14:44   ` Geert Uytterhoeven
2018-05-22 14:44     ` Geert Uytterhoeven
2018-05-22 14:44     ` Geert Uytterhoeven
2018-05-22 12:02 ` [PATCH 8/9] ARM: dts: alt: " Marek Vasut
2018-05-22 12:02   ` Marek Vasut
2018-05-22 12:02   ` Marek Vasut
2018-05-22 12:34   ` Wolfram Sang
2018-05-22 12:34     ` Wolfram Sang
2018-05-22 12:34     ` Wolfram Sang
2018-05-22 14:45   ` Geert Uytterhoeven
2018-05-22 14:45     ` Geert Uytterhoeven
2018-05-22 14:45     ` Geert Uytterhoeven
2018-05-22 12:02 ` [PATCH 9/9] ARM: dts: silk: " Marek Vasut
2018-05-22 12:02   ` Marek Vasut
2018-05-22 12:02   ` Marek Vasut
2018-05-22 12:34   ` Wolfram Sang
2018-05-22 12:34     ` Wolfram Sang
2018-05-22 12:34     ` Wolfram Sang
2018-05-22 14:46   ` Geert Uytterhoeven
2018-05-22 14:46     ` Geert Uytterhoeven
2018-05-22 14:46     ` Geert Uytterhoeven
2018-05-22 12:32 ` [PATCH 1/9] ARM: shmobile: defconfig: Enable MTD command line partition parsing Wolfram Sang
2018-05-22 12:32   ` Wolfram Sang
2018-05-22 12:32   ` Wolfram Sang
2018-05-22 14:29 ` Geert Uytterhoeven
2018-05-22 14:29   ` Geert Uytterhoeven
2018-05-22 14:29   ` Geert Uytterhoeven
2018-05-28  8:40 ` Simon Horman
2018-05-28  8:40   ` Simon Horman
2018-05-28  8:40   ` Simon Horman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180522120257.13232-5-marek.vasut+renesas@gmail.com \
    --to=marek.vasut@gmail.com \
    --cc=devicetree@vger.kernel.org \
    --cc=geert+renesas@glider.be \
    --cc=horms+renesas@verge.net.au \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=marek.vasut+renesas@gmail.com \
    --cc=wsa@the-dreams.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.