Skip to contentSkip to conversation

Add specific RZ/Five cache compatible

PATCH In review Conor Dooley 3 participants 8 messages May 12, 2025 – May 13, 2025

Subsystems (4)
lore
Share & tools
lore

Conor Dooley

author maintainer
#0 lore raw

v2 cover Add specific RZ/Five cache compatible

From: Conor Dooley <[email protected]>

v2: add "-ax45mp" to compatible string.

CC Ben Zong-You Xie <[email protected]>
CC Conor Dooley <[email protected]>
CC Rob Herring <[email protected]>
CC Krzysztof Kozlowski <[email protected]>
CC Geert Uytterhoeven <[email protected]>
CC Magnus Damm <[email protected]>
CC Lad Prabhakar <[email protected]>
CC [email protected] (open list:RISC-V ARCHITECTURE)

Conor Dooley (2):
dt-bindings: cache: add specific RZ/Five compatible to ax45mp
riscv: dts: renesas: add specific RZ/Five cache compatible

 .../devicetree/bindings/cache/andestech,ax45mp-cache.yaml     | 4 +++-
 arch/riscv/boot/dts/renesas/r9a07g043f.dtsi                   | 3 ++-
 2 files changed, 5 insertions(+), 2 deletions(-)
Signature · 1 line
2.45.2
author maintainer
#1 lore raw

PATCH v2 1/2 dt-bindings: cache: add specific RZ/Five compatible to ax45mp

From: Conor Dooley <[email protected]>

When the binding was originally written, it was assumed that all ax45mp-caches had the same properties etc. This has turned out to be incorrect, as the QiLai SoC has a different number of cache-sets.

Add a specific compatible for the RZ/Five for property enforcement and in case there turns out to be additional differences between these implementations of the cache controller.

---
 .../devicetree/bindings/cache/andestech,ax45mp-cache.yaml     | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/cache/andestech,ax45mp-cache.yaml +3 -1
index d2cbe49f4e15f..82668d327344e 100644
@@ -28,6 +28,7 @@ select:
 properties:
   compatible:
     items:
+      - const: renesas,r9a07g043f-ax45mp-cache
       - const: andestech,ax45mp-cache
       - const: cache
 
@@ -70,7 +71,8 @@ examples:
     #include <dt-bindings/interrupt-controller/irq.h>
 
     cache-controller@13400000 {
-        compatible = "andestech,ax45mp-cache", "cache";
+        compatible = "renesas,r9a07g043f-ax45mp-cache", "andestech,ax45mp-cache",
+                     "cache";
         reg = <0x13400000 0x100000>;
         interrupts = <508 IRQ_TYPE_LEVEL_HIGH>;
         cache-line-size = <64>;
Signature · 1 line
2.45.2
Reviewed-by on v2 1/2
#2 lore raw

Re: [PATCH v2 1/2] dt-bindings: cache: add specific RZ/Five compatible to ax45mp

Quoted 6 lines · Conor Dooley

From: Conor Dooley <[email protected]>

When the binding was originally written, it was assumed that all ax45mp-caches had the same properties etc. This has turned out to be incorrect, as the QiLai SoC has a different number of cache-sets.

Quoted 6 lines

Add a specific compatible for the RZ/Five for property enforcement and in case there turns out to be additional differences between these implementations of the cache controller.

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
Reviewed-by Lad Prabhakar on v2 1/2
#3 lore raw

Re: [PATCH v2 1/2] dt-bindings: cache: add specific RZ/Five compatible to ax45mp

In reply to Conor Dooley
Quoted 11 lines · Conor Dooley

From: Conor Dooley <[email protected]>

When the binding was originally written, it was assumed that all ax45mp-caches had the same properties etc. This has turned out to be incorrect, as the QiLai SoC has a different number of cache-sets.

Add a specific compatible for the RZ/Five for property enforcement and in case there turns out to be additional differences between these implementations of the cache controller.

Quoted 6 lines
---
 .../devicetree/bindings/cache/andestech,ax45mp-cache.yaml     | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Cheers,
Prabhakar

Quoted 26 lines
Documentation/devicetree/bindings/cache/andestech,ax45mp-cache.yaml +3 -2
index d2cbe49f4e15f..82668d327344e 100644
@@ -28,6 +28,7 @@ select:
 properties:
   compatible:
     items:
+      - const: renesas,r9a07g043f-ax45mp-cache
       - const: andestech,ax45mp-cache
       - const: cache
 
@@ -70,7 +71,8 @@ examples:
     #include <dt-bindings/interrupt-controller/irq.h>
 
     cache-controller@13400000 {
-        compatible = "andestech,ax45mp-cache", "cache";
+        compatible = "renesas,r9a07g043f-ax45mp-cache", "andestech,ax45mp-cache",
+                     "cache";
         reg = <0x13400000 0x100000>;
         interrupts = <508 IRQ_TYPE_LEVEL_HIGH>;
         cache-line-size = <64>;
--

2.45.2

author maintainer
#4 lore raw

PATCH v2 2/2 riscv: dts: renesas: add specific RZ/Five cache compatible

In reply to Conor Dooley

From: Conor Dooley <[email protected]>

When the binding was originally written, it was assumed that all ax45mp-caches had the same properties etc. This has turned out to be incorrect, as the QiLai SoC has a different number of cache-sets.

Add a specific compatible for the RZ/Five for property enforcement and in case there turns out to be additional differences between these implementations of the cache controller.

---
 arch/riscv/boot/dts/renesas/r9a07g043f.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/riscv/boot/dts/renesas/r9a07g043f.dtsi +2 -1
index e0ddf8f602c79..a8bcb26f42700 100644
@@ -143,7 +143,8 @@ plic: interrupt-controller@12c00000 {
 	};
 
 	l2cache: cache-controller@13400000 {
-		compatible = "andestech,ax45mp-cache", "cache";
+		compatible = "renesas,r9a07g043f-ax45mp-cache", "andestech,ax45mp-cache",
+			     "cache";
 		reg = <0x0 0x13400000 0x0 0x100000>;
 		interrupts = <SOC_PERIPHERAL_IRQ(476) IRQ_TYPE_LEVEL_HIGH>;
 		cache-size = <0x40000>;
Signature · 1 line
2.45.2
Reviewed-by on v2 2/2
#5 lore raw

Re: [PATCH v2 2/2] riscv: dts: renesas: add specific RZ/Five cache compatible

Hi Conor,

Quoted 6 lines · Conor Dooley

From: Conor Dooley <[email protected]>

When the binding was originally written, it was assumed that all ax45mp-caches had the same properties etc. This has turned out to be incorrect, as the QiLai SoC has a different number of cache-sets.

Quoted 6 lines

Add a specific compatible for the RZ/Five for property enforcement and in case there turns out to be additional differences between these implementations of the cache controller.

Thanks for the update!

arch/riscv/boot/dts/renesas/r9a07g043f.dtsi plic: interrupt-controller@12c00000 { · line 150

Quoted 12 lines
arch/riscv/boot/dts/renesas/r9a07g043f.dtsi +2 -1
@@ -143,7 +143,8 @@ plic: interrupt-controller@12c00000 {
        };
 
        l2cache: cache-controller@13400000 {
-               compatible = "andestech,ax45mp-cache", "cache";
+               compatible = "renesas,r9a07g043f-ax45mp-cache", "andestech,ax45mp-cache",
+                            "cache";
                reg = <0x0 0x13400000 0x0 0x100000>;
                interrupts = <SOC_PERIPHERAL_IRQ(476) IRQ_TYPE_LEVEL_HIGH>;
                cache-size = <0x40000>;

i.e. will queue in renesas-devel for v6.16 if there are no objections.

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
author maintainer
#6 lore raw

Re: [PATCH v2 2/2] riscv: dts: renesas: add specific RZ/Five cache compatible

Quoted 32 lines · Geert Uytterhoeven

Hi Conor,

Quoted 6 lines · Conor Dooley

From: Conor Dooley <[email protected]>

When the binding was originally written, it was assumed that all ax45mp-caches had the same properties etc. This has turned out to be incorrect, as the QiLai SoC has a different number of cache-sets.

Quoted 6 lines

Add a specific compatible for the RZ/Five for property enforcement and in case there turns out to be additional differences between these implementations of the cache controller.

Thanks for the update!

arch/riscv/boot/dts/renesas/r9a07g043f.dtsi plic: interrupt-controller@12c00000 { · line 150

Quoted 12 lines
arch/riscv/boot/dts/renesas/r9a07g043f.dtsi +2 -1
@@ -143,7 +143,8 @@ plic: interrupt-controller@12c00000 {
        };
 
        l2cache: cache-controller@13400000 {
-               compatible = "andestech,ax45mp-cache", "cache";
+               compatible = "renesas,r9a07g043f-ax45mp-cache", "andestech,ax45mp-cache",
+                            "cache";
                reg = <0x0 0x13400000 0x0 0x100000>;
                interrupts = <SOC_PERIPHERAL_IRQ(476) IRQ_TYPE_LEVEL_HIGH>;
                cache-size = <0x40000>;
Quoted 1 line

i.e. will queue in renesas-devel for v6.16 if there are no objections.

I'll grab the binding then on that basis. :+1:

Reviewed-by Lad Prabhakar on v2 2/2
#7 lore raw

Re: [PATCH v2 2/2] riscv: dts: renesas: add specific RZ/Five cache compatible

In reply to Conor Dooley
Quoted 11 lines · Conor Dooley

From: Conor Dooley <[email protected]>

When the binding was originally written, it was assumed that all ax45mp-caches had the same properties etc. This has turned out to be incorrect, as the QiLai SoC has a different number of cache-sets.

Add a specific compatible for the RZ/Five for property enforcement and in case there turns out to be additional differences between these implementations of the cache controller.

Quoted 6 lines
---
 arch/riscv/boot/dts/renesas/r9a07g043f.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Cheers,
Prabhakar

Quoted 18 lines
arch/riscv/boot/dts/renesas/r9a07g043f.dtsi +2 -2
index e0ddf8f602c79..a8bcb26f42700 100644
@@ -143,7 +143,8 @@ plic: interrupt-controller@12c00000 {
        };
 
        l2cache: cache-controller@13400000 {
-               compatible = "andestech,ax45mp-cache", "cache";
+               compatible = "renesas,r9a07g043f-ax45mp-cache", "andestech,ax45mp-cache",
+                            "cache";
                reg = <0x0 0x13400000 0x0 0x100000>;
                interrupts = <SOC_PERIPHERAL_IRQ(476) IRQ_TYPE_LEVEL_HIGH>;
                cache-size = <0x40000>;
--

2.45.2