Skip to contentSkip to conversation

ARM: dts: lpc32xx: add device node for IRAM on-chip memory

PATCH New Vladimir Zapolskiy 2 participants 2 messages Jul 7, 2016 – Oct 3, 2016

Subsystems (2)
lore
Share & tools
lore

Vladimir Zapolskiy

author maintainer
#0 lore raw

PATCH 1/1 ARM: dts: lpc32xx: add device node for IRAM on-chip memory

The change adds a new device node with description of generic SRAM on-chip memory found on NXP LPC32xx SoC series and connected to AHB matrix slave port 3.

Note that NXP LPC3220 SoC has 128KiB of SRAM memory, the other LPC3230, LPC3240 and LPC3250 SoCs all have 256KiB SRAM space, in the shared DTSI file this change specifies 128KiB SRAM size.

Also it's worth to mention that the SRAM area contains of 64KiB banks, 2 banks on LPC3220 and 4 banks on the other SoCs from the series, and all SRAM banks but the first one have independent power controls, the description of this feature will be added with the introduction of power domains for the SoC series.

---

Hi Arnd, Olof, Kevin,

please consider to include this NXP LPC32xx DT change directly to ARM tree for v4.8.

The SRAM device node will be utilized to store PM resume code and to store MAC buffers.

 arch/arm/boot/dts/lpc32xx.dtsi | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
arch/arm/boot/dts/lpc32xx.dtsi +11 -1
index e295e1e..b5841fa 100644
@@ -51,9 +51,19 @@
 		#address-cells = <1>;
 		#size-cells = <1>;
 		compatible = "simple-bus";
-		ranges = <0x20000000 0x20000000 0x30000000>,
+		ranges = <0x00000000 0x00000000 0x10000000>,
+			 <0x20000000 0x20000000 0x30000000>,
 			 <0xe0000000 0xe0000000 0x04000000>;
 
+		iram: sram at 08000000 {
+			compatible = "mmio-sram";
+			reg = <0x08000000 0x20000>;
+
+			#address-cells = <1>;
+			#size-cells = <1>;
+			ranges = <0x00000000 0x08000000 0x20000>;
+		};
+
 		/*
 		 * Enable either SLC or MLC
 		 */
Signature · 1 line
2.8.0.rc3
#1 lore raw

PATCH 1/1 ARM: dts: lpc32xx: add device node for IRAM on-chip memory

Quoted 18 lines · Vladimir Zapolskiy

The change adds a new device node with description of generic SRAM on-chip memory found on NXP LPC32xx SoC series and connected to AHB matrix slave port 3.

Note that NXP LPC3220 SoC has 128KiB of SRAM memory, the other LPC3230, LPC3240 and LPC3250 SoCs all have 256KiB SRAM space, in the shared DTSI file this change specifies 128KiB SRAM size.

Also it's worth to mention that the SRAM area contains of 64KiB banks, 2 banks on LPC3220 and 4 banks on the other SoCs from the series, and all SRAM banks but the first one have independent power controls, the description of this feature will be added with the introduction of power domains for the SoC series.

---

Quoted 7 lines

Hi Arnd, Olof, Kevin,

please consider to include this NXP LPC32xx DT change directly to ARM tree for v4.8.

The SRAM device node will be utilized to store PM resume code and to store MAC buffers.

Hi,

When sweeping my inbox looking for patches we had missed, this still showed up from back in July. I've now applied it, it'll make it into 4.9 (in next/late). Sorry for missing it earlier.

-Olof