linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] Update the cache configuration for Microchip SAMA5D MPUs
@ 2025-06-25  6:49 Mihai Sain
  2025-06-25  6:49 ` [PATCH 1/3] ARM: dts: microchip: sama5d2: Update the cache configuration for CPU Mihai Sain
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Mihai Sain @ 2025-06-25  6:49 UTC (permalink / raw)
  To: nicolas.ferre, alexandre.belloni, claudiu.beznea, robh, krzk+dt,
	conor+dt, linux-arm-kernel, devicetree, linux-kernel
  Cc: Mihai Sain

This patch series updates the cache configuration Microchip SAMA5D MPUs.
The cache configuration is described in block diagram from datasheet.

Mihai Sain (3):
  ARM: dts: microchip: sama5d2: Update the cache configuration for CPU
  ARM: dts: microchip: sama5d3: Update the cache configuration for CPU
  ARM: dts: microchip: sama5d4: Update the cache configuration for CPU

 arch/arm/boot/dts/microchip/sama5d2.dtsi | 3 +++
 arch/arm/boot/dts/microchip/sama5d3.dtsi | 2 ++
 arch/arm/boot/dts/microchip/sama5d4.dtsi | 3 +++
 3 files changed, 8 insertions(+)


base-commit: 7595b66ae9de667bf35a8c99e8f1bfc4792e207e
-- 
2.50.0


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

* [PATCH 1/3] ARM: dts: microchip: sama5d2: Update the cache configuration for CPU
  2025-06-25  6:49 [PATCH 0/3] Update the cache configuration for Microchip SAMA5D MPUs Mihai Sain
@ 2025-06-25  6:49 ` Mihai Sain
  2025-06-25  6:49 ` [PATCH 2/3] ARM: dts: microchip: sama5d3: " Mihai Sain
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Mihai Sain @ 2025-06-25  6:49 UTC (permalink / raw)
  To: nicolas.ferre, alexandre.belloni, claudiu.beznea, robh, krzk+dt,
	conor+dt, linux-arm-kernel, devicetree, linux-kernel
  Cc: Mihai Sain

Add the memory size properties for L1 and L2 according with block
diagram from datasheet:

- L1 cache configuration with 32 KB for both data and instruction cache.
- L2 cache configuration with 128 KB unified cache.

[root@sama5d2 ~]$ lscpu
Architecture:             armv7l
  Byte Order:             Little Endian
CPU(s):                   1
  On-line CPU(s) list:    0
Vendor ID:                ARM
  Model name:             Cortex-A5
Caches (sum of all):
  L1d:                    32 KiB (1 instance)
  L1i:                    32 KiB (1 instance)
  L2:                     128 KiB (1 instance)

Signed-off-by: Mihai Sain <mihai.sain@microchip.com>
---
 arch/arm/boot/dts/microchip/sama5d2.dtsi | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm/boot/dts/microchip/sama5d2.dtsi b/arch/arm/boot/dts/microchip/sama5d2.dtsi
index dc22fb679333..17430d7f2055 100644
--- a/arch/arm/boot/dts/microchip/sama5d2.dtsi
+++ b/arch/arm/boot/dts/microchip/sama5d2.dtsi
@@ -32,6 +32,8 @@ cpu@0 {
 			device_type = "cpu";
 			compatible = "arm,cortex-a5";
 			reg = <0>;
+			d-cache-size = <0x8000>;	// L1, 32 KB
+			i-cache-size = <0x8000>;	// L1, 32 KB
 			next-level-cache = <&L2>;
 		};
 	};
@@ -160,6 +162,7 @@ L2: cache-controller@a00000 {
 			interrupts = <63 IRQ_TYPE_LEVEL_HIGH 4>;
 			cache-unified;
 			cache-level = <2>;
+			cache-size = <0x20000>;		// L2, 128 KB
 		};
 
 		ebi: ebi@10000000 {
-- 
2.50.0


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

* [PATCH 2/3] ARM: dts: microchip: sama5d3: Update the cache configuration for CPU
  2025-06-25  6:49 [PATCH 0/3] Update the cache configuration for Microchip SAMA5D MPUs Mihai Sain
  2025-06-25  6:49 ` [PATCH 1/3] ARM: dts: microchip: sama5d2: Update the cache configuration for CPU Mihai Sain
@ 2025-06-25  6:49 ` Mihai Sain
  2025-06-25  6:49 ` [PATCH 3/3] ARM: dts: microchip: sama5d4: " Mihai Sain
  2025-07-10  7:33 ` [PATCH 0/3] Update the cache configuration for Microchip SAMA5D MPUs Claudiu Beznea
  3 siblings, 0 replies; 5+ messages in thread
From: Mihai Sain @ 2025-06-25  6:49 UTC (permalink / raw)
  To: nicolas.ferre, alexandre.belloni, claudiu.beznea, robh, krzk+dt,
	conor+dt, linux-arm-kernel, devicetree, linux-kernel
  Cc: Mihai Sain

Add the memory size properties for L1 according with block
diagram from datasheet:

- L1 cache configuration with 32 KB for both data and instruction cache.

[root@sama5d3 ~]$ lscpu
Architecture:             armv7l
  Byte Order:             Little Endian
CPU(s):                   1
  On-line CPU(s) list:    0
Vendor ID:                ARM
  Model name:             Cortex-A5
Caches (sum of all):
  L1d:                    32 KiB (1 instance)
  L1i:                    32 KiB (1 instance)

Signed-off-by: Mihai Sain <mihai.sain@microchip.com>
---
 arch/arm/boot/dts/microchip/sama5d3.dtsi | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/boot/dts/microchip/sama5d3.dtsi b/arch/arm/boot/dts/microchip/sama5d3.dtsi
index e95799c17fdb..00ba59ac1968 100644
--- a/arch/arm/boot/dts/microchip/sama5d3.dtsi
+++ b/arch/arm/boot/dts/microchip/sama5d3.dtsi
@@ -48,6 +48,8 @@ cpu@0 {
 			device_type = "cpu";
 			compatible = "arm,cortex-a5";
 			reg = <0x0>;
+			d-cache-size = <0x8000>;	// L1, 32 KB
+			i-cache-size = <0x8000>;	// L1, 32 KB
 		};
 	};
 
-- 
2.50.0


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

* [PATCH 3/3] ARM: dts: microchip: sama5d4: Update the cache configuration for CPU
  2025-06-25  6:49 [PATCH 0/3] Update the cache configuration for Microchip SAMA5D MPUs Mihai Sain
  2025-06-25  6:49 ` [PATCH 1/3] ARM: dts: microchip: sama5d2: Update the cache configuration for CPU Mihai Sain
  2025-06-25  6:49 ` [PATCH 2/3] ARM: dts: microchip: sama5d3: " Mihai Sain
@ 2025-06-25  6:49 ` Mihai Sain
  2025-07-10  7:33 ` [PATCH 0/3] Update the cache configuration for Microchip SAMA5D MPUs Claudiu Beznea
  3 siblings, 0 replies; 5+ messages in thread
From: Mihai Sain @ 2025-06-25  6:49 UTC (permalink / raw)
  To: nicolas.ferre, alexandre.belloni, claudiu.beznea, robh, krzk+dt,
	conor+dt, linux-arm-kernel, devicetree, linux-kernel
  Cc: Mihai Sain

Add the memory size properties for L1 and L2 according with block
diagram from datasheet:

- L1 cache configuration with 32 KB for both data and instruction cache.
- L2 cache configuration with 128 KB unified cache.

[root@sama5d4 ~]$ lscpu
Architecture:             armv7l
  Byte Order:             Little Endian
CPU(s):                   1
  On-line CPU(s) list:    0
Vendor ID:                ARM
  Model name:             Cortex-A5
Caches (sum of all):
  L1d:                    32 KiB (1 instance)
  L1i:                    32 KiB (1 instance)
  L2:                     128 KiB (1 instance)

Signed-off-by: Mihai Sain <mihai.sain@microchip.com>
---
 arch/arm/boot/dts/microchip/sama5d4.dtsi | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm/boot/dts/microchip/sama5d4.dtsi b/arch/arm/boot/dts/microchip/sama5d4.dtsi
index 59a7d557c7cb..ec1d68c640de 100644
--- a/arch/arm/boot/dts/microchip/sama5d4.dtsi
+++ b/arch/arm/boot/dts/microchip/sama5d4.dtsi
@@ -50,6 +50,8 @@ cpu@0 {
 			device_type = "cpu";
 			compatible = "arm,cortex-a5";
 			reg = <0>;
+			d-cache-size = <0x8000>;	// L1, 32 KB
+			i-cache-size = <0x8000>;	// L1, 32 KB
 			next-level-cache = <&L2>;
 		};
 	};
@@ -143,6 +145,7 @@ L2: cache-controller@a00000 {
 			interrupts = <67 IRQ_TYPE_LEVEL_HIGH 4>;
 			cache-unified;
 			cache-level = <2>;
+			cache-size = <0x20000>;		// L2, 128 KB
 		};
 
 		ebi: ebi@10000000 {
-- 
2.50.0


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

* Re: [PATCH 0/3] Update the cache configuration for Microchip SAMA5D MPUs
  2025-06-25  6:49 [PATCH 0/3] Update the cache configuration for Microchip SAMA5D MPUs Mihai Sain
                   ` (2 preceding siblings ...)
  2025-06-25  6:49 ` [PATCH 3/3] ARM: dts: microchip: sama5d4: " Mihai Sain
@ 2025-07-10  7:33 ` Claudiu Beznea
  3 siblings, 0 replies; 5+ messages in thread
From: Claudiu Beznea @ 2025-07-10  7:33 UTC (permalink / raw)
  To: Mihai Sain, nicolas.ferre, alexandre.belloni, robh, krzk+dt,
	conor+dt, linux-arm-kernel, devicetree, linux-kernel



On 25.06.2025 09:49, Mihai Sain wrote:
> Mihai Sain (3):
>   ARM: dts: microchip: sama5d2: Update the cache configuration for CPU
>   ARM: dts: microchip: sama5d3: Update the cache configuration for CPU
>   ARM: dts: microchip: sama5d4: Update the cache configuration for CPU

Applied to at9-dt, thanks!

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

end of thread, other threads:[~2025-07-10  7:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-25  6:49 [PATCH 0/3] Update the cache configuration for Microchip SAMA5D MPUs Mihai Sain
2025-06-25  6:49 ` [PATCH 1/3] ARM: dts: microchip: sama5d2: Update the cache configuration for CPU Mihai Sain
2025-06-25  6:49 ` [PATCH 2/3] ARM: dts: microchip: sama5d3: " Mihai Sain
2025-06-25  6:49 ` [PATCH 3/3] ARM: dts: microchip: sama5d4: " Mihai Sain
2025-07-10  7:33 ` [PATCH 0/3] Update the cache configuration for Microchip SAMA5D MPUs Claudiu Beznea

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