linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3] ARM: dts: imx28-lwe: Fix partitions definitions
@ 2024-09-02 11:46 Lukasz Majewski
  2024-09-02 11:46 ` [PATCH] ARM: dts: imx28-lwe: Reduce maximal SPI frequency Lukasz Majewski
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Lukasz Majewski @ 2024-09-02 11:46 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Shawn Guo,
	Sascha Hauer
  Cc: Pengutronix Kernel Team, Fabio Estevam, devicetree, imx,
	linux-arm-kernel, linux-kernel, Lukasz Majewski

The SPI-NOR memory layout has evolved during time lifetime of the
device - for example special partitions to keep track of booted devices
for A/B booting scheme were added.

Signed-off-by: Lukasz Majewski <lukma@denx.de>

---
Changes for v3:
- Split patches
- Modify the subject prefix

Changes for v2:
- Add more descriptive commit message
- Replace e.g. partition@4 with partition@fe0000
- Use lower case letters for HEX offsets descriptions
---
 arch/arm/boot/dts/nxp/mxs/imx28-lwe.dtsi | 19 +++++++++++++------
 1 file changed, 13 insertions(+), 6 deletions(-)

diff --git a/arch/arm/boot/dts/nxp/mxs/imx28-lwe.dtsi b/arch/arm/boot/dts/nxp/mxs/imx28-lwe.dtsi
index 69fcb0dde940..a954fef8bd8e 100644
--- a/arch/arm/boot/dts/nxp/mxs/imx28-lwe.dtsi
+++ b/arch/arm/boot/dts/nxp/mxs/imx28-lwe.dtsi
@@ -133,14 +133,21 @@ partition@90000 {
 				reg = <0x90000 0x10000>;
 			};
 
-			partition@100000 {
-				label = "kernel";
-				reg = <0x100000 0x400000>;
+			partition@a0000 {
+				label = "rescue";
+				reg = <0xa0000 0xf40000>;
 			};
 
-			partition@500000 {
-				label = "swupdate";
-				reg = <0x500000 0x800000>;
+			partition@fe0000 {
+				/* 1st sector for SPL boot img source data */
+				label = "spl-boot-data1";
+				reg = <0xfe0000 0x10000>;
+			};
+
+			partition@ff0000 {
+				/* 2nd sector for SPL boot img source data */
+				label = "spl-boot-data2";
+				reg = <0xff0000 0x10000>;
 			};
 		};
 	};
-- 
2.39.2



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

* [PATCH] ARM: dts: imx28-lwe: Reduce maximal SPI frequency
  2024-09-02 11:46 [PATCH v3] ARM: dts: imx28-lwe: Fix partitions definitions Lukasz Majewski
@ 2024-09-02 11:46 ` Lukasz Majewski
  2024-09-02 11:46 ` [PATCH] ARM: dts: imx28-lwe: Remove saif[01] definitions Lukasz Majewski
  2024-09-03  7:03 ` [PATCH v3] ARM: dts: imx28-lwe: Fix partitions definitions Shawn Guo
  2 siblings, 0 replies; 4+ messages in thread
From: Lukasz Majewski @ 2024-09-02 11:46 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Shawn Guo,
	Sascha Hauer
  Cc: Pengutronix Kernel Team, Fabio Estevam, devicetree, imx,
	linux-arm-kernel, linux-kernel, Lukasz Majewski

Due to some operational problems (HW) the maximal speed of the SPI
frequency for flash memory has been reduced by half.

Signed-off-by: Lukasz Majewski <lukma@denx.de>
---
 arch/arm/boot/dts/nxp/mxs/imx28-lwe.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/nxp/mxs/imx28-lwe.dtsi b/arch/arm/boot/dts/nxp/mxs/imx28-lwe.dtsi
index a954fef8bd8e..0fc74eeac217 100644
--- a/arch/arm/boot/dts/nxp/mxs/imx28-lwe.dtsi
+++ b/arch/arm/boot/dts/nxp/mxs/imx28-lwe.dtsi
@@ -109,7 +109,7 @@ &ssp3 {
 
 	flash@0 {
 		compatible = "jedec,spi-nor";
-		spi-max-frequency = <40000000>;
+		spi-max-frequency = <20000000>;
 		reg = <0>;
 
 		partitions {
-- 
2.39.2



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

* [PATCH] ARM: dts: imx28-lwe: Remove saif[01] definitions
  2024-09-02 11:46 [PATCH v3] ARM: dts: imx28-lwe: Fix partitions definitions Lukasz Majewski
  2024-09-02 11:46 ` [PATCH] ARM: dts: imx28-lwe: Reduce maximal SPI frequency Lukasz Majewski
@ 2024-09-02 11:46 ` Lukasz Majewski
  2024-09-03  7:03 ` [PATCH v3] ARM: dts: imx28-lwe: Fix partitions definitions Shawn Guo
  2 siblings, 0 replies; 4+ messages in thread
From: Lukasz Majewski @ 2024-09-02 11:46 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Shawn Guo,
	Sascha Hauer
  Cc: Pengutronix Kernel Team, Fabio Estevam, devicetree, imx,
	linux-arm-kernel, linux-kernel, Lukasz Majewski

The saif[01] nodes are specific to other group of the imx287
based devices, so need to be moved to different devices description file.

Leaving them here causes issues with next revision of XEA device.

Signed-off-by: Lukasz Majewski <lukma@denx.de>
---
 arch/arm/boot/dts/nxp/mxs/imx28-lwe.dtsi | 17 -----------------
 1 file changed, 17 deletions(-)

diff --git a/arch/arm/boot/dts/nxp/mxs/imx28-lwe.dtsi b/arch/arm/boot/dts/nxp/mxs/imx28-lwe.dtsi
index 0fc74eeac217..410dfe17f8ca 100644
--- a/arch/arm/boot/dts/nxp/mxs/imx28-lwe.dtsi
+++ b/arch/arm/boot/dts/nxp/mxs/imx28-lwe.dtsi
@@ -55,23 +55,6 @@ &i2c0 {
 	status = "okay";
 };
 
-&saif0 {
-	pinctrl-names = "default";
-	pinctrl-0 = <&saif0_pins_a>;
-	#sound-dai-cells = <0>;
-	assigned-clocks = <&clks 53>;
-	assigned-clock-rates = <12000000>;
-	status = "okay";
-};
-
-&saif1 {
-	pinctrl-names = "default";
-	pinctrl-0 = <&saif1_pins_a>;
-	fsl,saif-master = <&saif0>;
-	#sound-dai-cells = <0>;
-	status = "okay";
-};
-
 &spi3_pins_a {
 	fsl,pinmux-ids = <
 		MX28_PAD_AUART2_RX__SSP3_D4
-- 
2.39.2



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

* Re: [PATCH v3] ARM: dts: imx28-lwe: Fix partitions definitions
  2024-09-02 11:46 [PATCH v3] ARM: dts: imx28-lwe: Fix partitions definitions Lukasz Majewski
  2024-09-02 11:46 ` [PATCH] ARM: dts: imx28-lwe: Reduce maximal SPI frequency Lukasz Majewski
  2024-09-02 11:46 ` [PATCH] ARM: dts: imx28-lwe: Remove saif[01] definitions Lukasz Majewski
@ 2024-09-03  7:03 ` Shawn Guo
  2 siblings, 0 replies; 4+ messages in thread
From: Shawn Guo @ 2024-09-03  7:03 UTC (permalink / raw)
  To: Lukasz Majewski
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam, devicetree,
	imx, linux-arm-kernel, linux-kernel

On Mon, Sep 02, 2024 at 01:46:50PM +0200, Lukasz Majewski wrote:
> The SPI-NOR memory layout has evolved during time lifetime of the
> device - for example special partitions to keep track of booted devices
> for A/B booting scheme were added.
> 
> Signed-off-by: Lukasz Majewski <lukma@denx.de>

Applied all, thanks!



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

end of thread, other threads:[~2024-09-03  7:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-02 11:46 [PATCH v3] ARM: dts: imx28-lwe: Fix partitions definitions Lukasz Majewski
2024-09-02 11:46 ` [PATCH] ARM: dts: imx28-lwe: Reduce maximal SPI frequency Lukasz Majewski
2024-09-02 11:46 ` [PATCH] ARM: dts: imx28-lwe: Remove saif[01] definitions Lukasz Majewski
2024-09-03  7:03 ` [PATCH v3] ARM: dts: imx28-lwe: Fix partitions definitions Shawn Guo

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).