Skip to contentSkip to conversation

dt-bindings: memory: Renesas RPC-IF: Add support for RZ/G2 Series

PATCH Superseded Adam Ford 3 participants 8 messages Jan 1, 2021 – Jan 8, 2021

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Adam Ford

author
#0 lore raw

PATCH 1/2 dt-bindings: memory: Renesas RPC-IF: Add support for RZ/G2 Series

The RZ/G2 Series has the RPC-IF interface.
Update bindings to support: r8a774a1, r8a774b1, r8a774c0, and r8a774e1

---
 .../bindings/memory-controllers/renesas,rpc-if.yaml           | 4 ++++
 1 file changed, 4 insertions(+)
Documentation/devicetree/bindings/memory-controllers/renesas,rpc-if.yaml +4 -0
index 6d6ba608fd22..050c66af8c2c 100644
@@ -26,6 +26,10 @@ properties:
   compatible:
     items:
       - enum:
+          - renesas,r8a774a1-rpc-if       # RZ/G2M
+          - renesas,r8a774b1-rpc-if       # RZ/G2N
+          - renesas,r8a774c0-rpc-if       # RZ/G2E
+          - renesas,r8a774e1-rpc-if       # RZ/G2H
           - renesas,r8a77970-rpc-if       # R-Car V3M
           - renesas,r8a77980-rpc-if       # R-Car V3H
           - renesas,r8a77995-rpc-if       # R-Car D3
Signature · 1 line
2.25.1
author
#1 lore raw

PATCH 2/2 arm64: dts: renesas: rzg2: Add RPC-IF Support

The RZ/G2 series contain the SPI Multi I/O Bus Controller (RPC-IF). Add the nodes, but make them disabled by default.

---
 arch/arm64/boot/dts/renesas/r8a774a1.dtsi | 17 +++++++++++++++++
 arch/arm64/boot/dts/renesas/r8a774b1.dtsi | 17 +++++++++++++++++
 arch/arm64/boot/dts/renesas/r8a774c0.dtsi | 17 +++++++++++++++++
 arch/arm64/boot/dts/renesas/r8a774e1.dtsi | 17 +++++++++++++++++
 4 files changed, 68 insertions(+)
arch/arm64/boot/dts/renesas/r8a774a1.dtsi +17 -0
index d37ec42a1caa..5246f4d91e84 100644
@@ -2302,6 +2302,23 @@ sdhi3: mmc@ee160000 {
 			status = "disabled";
 		};
 
+		rpc: spi@ee200000 {
+			compatible = "renesas,r8a774a1-rpc-if",
+				     "renesas,rcar-gen3-rpc-if";
+			reg = <0 0xee200000 0 0x200>,
+			      <0 0x08000000 0 0x4000000>,
+			      <0 0xee208000 0 0x100>;
+			reg-names = "regs", "dirmap", "wbuf";
+			interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 917>;
+			clock-names = "rpc";
+			power-domains = <&sysc R8A774A1_PD_ALWAYS_ON>;
+			resets = <&cpg 917>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
 		gic: interrupt-controller@f1010000 {
 			compatible = "arm,gic-400";
 			#interrupt-cells = <3>;
arch/arm64/boot/dts/renesas/r8a774b1.dtsi +17 -0
index 83523916d360..5862aa2ad2bf 100644
@@ -2160,6 +2160,23 @@ sdhi3: mmc@ee160000 {
 			status = "disabled";
 		};
 
+		rpc: spi@ee200000 {
+			compatible = "renesas,r8a774b1-rpc-if",
+				     "renesas,rcar-gen3-rpc-if";
+			reg = <0 0xee200000 0 0x200>,
+			      <0 0x08000000 0 0x4000000>,
+			      <0 0xee208000 0 0x100>;
+			reg-names = "regs", "dirmap", "wbuf";
+			interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 917>;
+			clock-names = "rpc";
+			power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>;
+			resets = <&cpg 917>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
 		sata: sata@ee300000 {
 			compatible = "renesas,sata-r8a774b1",
 				     "renesas,rcar-gen3-sata";
arch/arm64/boot/dts/renesas/r8a774c0.dtsi +17 -0
index e0e54342cd4c..20fa3caa050e 100644
@@ -1654,6 +1654,23 @@ sdhi3: mmc@ee160000 {
 			status = "disabled";
 		};
 
+		rpc: spi@ee200000 {
+			compatible = "renesas,r8a774c0-rpc-if",
+				     "renesas,rcar-gen3-rpc-if";
+			reg = <0 0xee200000 0 0x200>,
+			      <0 0x08000000 0 0x4000000>,
+			      <0 0xee208000 0 0x100>;
+			reg-names = "regs", "dirmap", "wbuf";
+			interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 917>;
+			clock-names = "rpc";
+			power-domains = <&sysc R8A774C0_PD_ALWAYS_ON>;
+			resets = <&cpg 917>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
 		gic: interrupt-controller@f1010000 {
 			compatible = "arm,gic-400";
 			#interrupt-cells = <3>;
arch/arm64/boot/dts/renesas/r8a774e1.dtsi +17 -0
index 1333b02d623a..9be94945af8c 100644
@@ -2393,6 +2393,23 @@ sdhi3: mmc@ee160000 {
 			status = "disabled";
 		};
 
+		rpc: spi@ee200000 {
+			compatible = "renesas,r8a774e1-rpc-if",
+				     "renesas,rcar-gen3-rpc-if";
+			reg = <0 0xee200000 0 0x200>,
+			      <0 0x08000000 0 0x4000000>,
+			      <0 0xee208000 0 0x100>;
+			reg-names = "regs", "dirmap", "wbuf";
+			interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 917>;
+			clock-names = "rpc";
+			power-domains = <&sysc R8A774E1_PD_ALWAYS_ON>;
+			resets = <&cpg 917>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
 		sata: sata@ee300000 {
 			compatible = "renesas,sata-r8a774e1",
 				     "renesas,rcar-gen3-sata";
Signature · 1 line
2.25.1
Reviewed-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] arm64: dts: renesas: rzg2: Add RPC-IF Support

Quoted 4 lines · Adam Ford

The RZ/G2 series contain the SPI Multi I/O Bus Controller (RPC-IF). Add the nodes, but make them disabled by default.

i.e. will queue in renesas-devel for v5.12.

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
#3 lore raw
In reply to Adam Ford

Hi Adam,

Thanks for the patch.

Quoted 29 lines

-----Original Message-----
From: Adam Ford <[email protected]>
Sent: 01 January 2021 11:39
To: [email protected]
Cc: [email protected]; Adam Ford <[email protected]>; Krzysztof Kozlowski <[email protected]>; Rob Herring <[email protected]>; Geert Uytterhoeven <[email protected]>; Magnus Damm <[email protected]>; Sergei Shtylyov <[email protected]>; [email protected]; [email protected]
Subject: [PATCH 1/2] dt-bindings: memory: Renesas RPC-IF: Add support for RZ/G2 Series

The RZ/G2 Series has the RPC-IF interface.
Update bindings to support: r8a774a1, r8a774b1, r8a774c0, and r8a774e1

---
 .../bindings/memory-controllers/renesas,rpc-if.yaml           | 4 ++++
 1 file changed, 4 insertions(+)
(quoted diff) +0 -0

controllers/renesas,rpc-if.yaml b/Documentation/devicetree/bindings/memory-controllers/renesas,rpc-if.yaml index 6d6ba608fd22..050c66af8c2c 100644
--- a/Documentation/devicetree/bindings/memory-controllers/renesas,rpc- if.yaml
+++ b/Documentation/devicetree/bindings/memory-controllers/renesas,rpc- if.yaml

Documentation/devicetree/bindings/memory-controllers/renesas,rpc-if.yaml properties: · line 35

Quoted 10 lines
Documentation/devicetree/bindings/memory-controllers/renesas,rpc-if.yaml +4 -0
@@ -26,6 +26,10 @@ properties:
   compatible:
     items:
       - enum:
+          - renesas,r8a774a1-rpc-if       # RZ/G2M
+          - renesas,r8a774b1-rpc-if       # RZ/G2N
+          - renesas,r8a774c0-rpc-if       # RZ/G2E
+          - renesas,r8a774e1-rpc-if       # RZ/G2H
           - renesas,r8a77970-rpc-if       # R-Car V3M
           - renesas,r8a77980-rpc-if       # R-Car V3H
           - renesas,r8a77995-rpc-if       # R-Car D3

May be we need to update the below description as well to cover RZ/G2 device??

- const: renesas,rcar-gen3-rpc-if # a generic R-Car gen3 device

Cheers,
Biju

Quoted 2 lines

--
2.25.1

author
#4 lore raw
Quoted 47 lines · Biju Das

Hi Adam,

Thanks for the patch.

Quoted 29 lines

-----Original Message-----
From: Adam Ford <[email protected]>
Sent: 01 January 2021 11:39
To: [email protected]
Cc: [email protected]; Adam Ford <[email protected]>; Krzysztof Kozlowski <[email protected]>; Rob Herring <[email protected]>; Geert Uytterhoeven <[email protected]>; Magnus Damm <[email protected]>; Sergei Shtylyov <[email protected]>; [email protected]; [email protected]
Subject: [PATCH 1/2] dt-bindings: memory: Renesas RPC-IF: Add support for RZ/G2 Series

The RZ/G2 Series has the RPC-IF interface.
Update bindings to support: r8a774a1, r8a774b1, r8a774c0, and r8a774e1

---
 .../bindings/memory-controllers/renesas,rpc-if.yaml           | 4 ++++
 1 file changed, 4 insertions(+)
(quoted diff) +0 -0

controllers/renesas,rpc-if.yaml b/Documentation/devicetree/bindings/memory-controllers/renesas,rpc-if.yaml index 6d6ba608fd22..050c66af8c2c 100644
--- a/Documentation/devicetree/bindings/memory-controllers/renesas,rpc- if.yaml
+++ b/Documentation/devicetree/bindings/memory-controllers/renesas,rpc- if.yaml

Documentation/devicetree/bindings/memory-controllers/renesas,rpc-if.yaml properties: · line 35

Quoted 10 lines
Documentation/devicetree/bindings/memory-controllers/renesas,rpc-if.yaml +4 -0
@@ -26,6 +26,10 @@ properties:
   compatible:
     items:
       - enum:
+          - renesas,r8a774a1-rpc-if       # RZ/G2M
+          - renesas,r8a774b1-rpc-if       # RZ/G2N
+          - renesas,r8a774c0-rpc-if       # RZ/G2E
+          - renesas,r8a774e1-rpc-if       # RZ/G2H
           - renesas,r8a77970-rpc-if       # R-Car V3M
           - renesas,r8a77980-rpc-if       # R-Car V3H
           - renesas,r8a77995-rpc-if       # R-Car D3

May be we need to update the below description as well to cover RZ/G2 device??

Quoted 1 line

- const: renesas,rcar-gen3-rpc-if # a generic R-Car gen3 device

How do you want it to read?

adam

Quoted 8 lines

Cheers,
Biju

Quoted 2 lines

--
2.25.1

#5 lore raw
Quoted 59 lines

Subject: Re: [PATCH 1/2] dt-bindings: memory: Renesas RPC-IF: Add support for RZ/G2 Series

Quoted 26 lines · Biju Das

Hi Adam,

Thanks for the patch.

Quoted 21 lines

-----Original Message-----
From: Adam Ford <[email protected]>
Sent: 01 January 2021 11:39
To: [email protected]
Cc: [email protected]; Adam Ford <[email protected]>; Krzysztof Kozlowski <[email protected]>; Rob Herring <[email protected]>; Geert Uytterhoeven <[email protected]>; Magnus Damm <[email protected]>; Sergei Shtylyov <[email protected]>; [email protected]; [email protected]
Subject: [PATCH 1/2] dt-bindings: memory: Renesas RPC-IF: Add support for
RZ/G2 Series

The RZ/G2 Series has the RPC-IF interface.
Update bindings to support: r8a774a1, r8a774b1, r8a774c0, and r8a774e1

---
 .../bindings/memory-controllers/renesas,rpc-if.yaml           | 4

++++

Quoted 17 lines
Quoted 17 lines
 1 file changed, 4 insertions(+)
(quoted diff) +0 -0

controllers/renesas,rpc-if.yaml b/Documentation/devicetree/bindings/memory-controllers/renesas,rpc-i f.yaml index 6d6ba608fd22..050c66af8c2c 100644
---
a/Documentation/devicetree/bindings/memory-controllers/renesas,rpc- if.yaml
+++ b/Documentation/devicetree/bindings/memory-controllers/renesas,r +++ pc-
if.yaml

Documentation/devicetree/bindings/memory-controllers/renesas,rpc-if.yaml +1 -0
@@ -26,6 +26,10 @@ properties:
   compatible:
     items:
       - enum:
+          - renesas,r8a774a1-rpc-if       # RZ/G2M
Quoted 8 lines

Documentation/devicetree/bindings/memory-controllers/renesas,rpc-if.yaml properties: · line 35

Quoted 6 lines
Documentation/devicetree/bindings/memory-controllers/renesas,rpc-if.yaml +3 -0
+          - renesas,r8a774b1-rpc-if       # RZ/G2N
+          - renesas,r8a774c0-rpc-if       # RZ/G2E
+          - renesas,r8a774e1-rpc-if       # RZ/G2H
           - renesas,r8a77970-rpc-if       # R-Car V3M
           - renesas,r8a77980-rpc-if       # R-Car V3H
           - renesas,r8a77995-rpc-if       # R-Car D3

May be we need to update the below description as well to cover RZ/G2

Quoted 3 lines

device??

Quoted 2 lines

- const: renesas,rcar-gen3-rpc-if # a generic R-Car gen3 device

Since it is generic compatible string for both R-Car gen3 and RZ/G2 device, I would update the description as

- const: renesas,rcar-gen3-rpc-if # a generic R-Car gen3 or RZ/G2 device

Also may be we need to update the description of config RENESAS_RPCIF in drivers/memory/Kconfig to taken care of RZ/G2 devices in a separate patch.

Cheers,
Biju

#6 lore raw
In reply to Adam Ford
Quoted 68 lines

-----Original Message-----
From: Adam Ford <[email protected]>
Sent: 01 January 2021 21:34
To: Biju Das <[email protected]>
Cc: [email protected]; [email protected]; Krzysztof Kozlowski <[email protected]>; Rob Herring <[email protected]>; Geert Uytterhoeven <[email protected]>; Magnus Damm <[email protected]>; Sergei Shtylyov <[email protected]>; [email protected]; [email protected]
Subject: Re: [PATCH 1/2] dt-bindings: memory: Renesas RPC-IF: Add support for RZ/G2 Series

Quoted 26 lines · Biju Das

Hi Adam,

Thanks for the patch.

Quoted 21 lines

-----Original Message-----
From: Adam Ford <[email protected]>
Sent: 01 January 2021 11:39
To: [email protected]
Cc: [email protected]; Adam Ford <[email protected]>; Krzysztof Kozlowski <[email protected]>; Rob Herring <[email protected]>; Geert Uytterhoeven <[email protected]>; Magnus Damm <[email protected]>; Sergei Shtylyov <[email protected]>; [email protected]; [email protected]
Subject: [PATCH 1/2] dt-bindings: memory: Renesas RPC-IF: Add support for
RZ/G2 Series

The RZ/G2 Series has the RPC-IF interface.
Update bindings to support: r8a774a1, r8a774b1, r8a774c0, and r8a774e1

---
 .../bindings/memory-controllers/renesas,rpc-if.yaml           | 4

++++

Quoted 17 lines
Quoted 17 lines
 1 file changed, 4 insertions(+)
(quoted diff) +0 -0

controllers/renesas,rpc-if.yaml b/Documentation/devicetree/bindings/memory-controllers/renesas,rpc-i f.yaml index 6d6ba608fd22..050c66af8c2c 100644
---
a/Documentation/devicetree/bindings/memory-controllers/renesas,rpc- if.yaml
+++ b/Documentation/devicetree/bindings/memory-controllers/renesas,r +++ pc-
if.yaml

Documentation/devicetree/bindings/memory-controllers/renesas,rpc-if.yaml +1 -0
@@ -26,6 +26,10 @@ properties:
   compatible:
     items:
       - enum:
+          - renesas,r8a774a1-rpc-if       # RZ/G2M
Quoted 8 lines

Documentation/devicetree/bindings/memory-controllers/renesas,rpc-if.yaml properties: · line 35

Quoted 6 lines
Documentation/devicetree/bindings/memory-controllers/renesas,rpc-if.yaml +3 -0
+          - renesas,r8a774b1-rpc-if       # RZ/G2N
+          - renesas,r8a774c0-rpc-if       # RZ/G2E
+          - renesas,r8a774e1-rpc-if       # RZ/G2H
           - renesas,r8a77970-rpc-if       # R-Car V3M
           - renesas,r8a77980-rpc-if       # R-Car V3H
           - renesas,r8a77995-rpc-if       # R-Car D3

May be we need to update the below description as well to cover RZ/G2

Quoted 5 lines

device??

Quoted 2 lines

- const: renesas,rcar-gen3-rpc-if # a generic R-Car gen3 device

How do you want it to read?

Since it is generic compatible string for both R-Car gen3 and RZ/G2 device, I would update the description as

- const: renesas,rcar-gen3-rpc-if # a generic R-Car gen3 or RZ/G2 device

Also may be we need to update the description of config RENESAS_RPCIF in drivers/memory/Kconfig to taken care of RZ/G2 devices in a separate patch.

Cheers,
Biju

author
#7 lore raw
Quoted 73 lines · Biju Das
Quoted 73 lines

-----Original Message-----
From: Adam Ford <[email protected]>
Sent: 01 January 2021 21:34
To: Biju Das <[email protected]>
Cc: [email protected]; [email protected]; Krzysztof Kozlowski <[email protected]>; Rob Herring <[email protected]>; Geert Uytterhoeven <[email protected]>; Magnus Damm <[email protected]>; Sergei Shtylyov <[email protected]>; [email protected]; [email protected]
Subject: Re: [PATCH 1/2] dt-bindings: memory: Renesas RPC-IF: Add support for RZ/G2 Series

Quoted 26 lines · Biju Das

Hi Adam,

Thanks for the patch.

Quoted 21 lines

-----Original Message-----
From: Adam Ford <[email protected]>
Sent: 01 January 2021 11:39
To: [email protected]
Cc: [email protected]; Adam Ford <[email protected]>; Krzysztof Kozlowski <[email protected]>; Rob Herring <[email protected]>; Geert Uytterhoeven <[email protected]>; Magnus Damm <[email protected]>; Sergei Shtylyov <[email protected]>; [email protected]; [email protected]
Subject: [PATCH 1/2] dt-bindings: memory: Renesas RPC-IF: Add support for
RZ/G2 Series

The RZ/G2 Series has the RPC-IF interface.
Update bindings to support: r8a774a1, r8a774b1, r8a774c0, and r8a774e1

---
 .../bindings/memory-controllers/renesas,rpc-if.yaml           | 4

++++

Quoted 17 lines
Quoted 17 lines
 1 file changed, 4 insertions(+)
(quoted diff) +0 -0

controllers/renesas,rpc-if.yaml b/Documentation/devicetree/bindings/memory-controllers/renesas,rpc-i f.yaml index 6d6ba608fd22..050c66af8c2c 100644
---
a/Documentation/devicetree/bindings/memory-controllers/renesas,rpc- if.yaml
+++ b/Documentation/devicetree/bindings/memory-controllers/renesas,r +++ pc-
if.yaml

Documentation/devicetree/bindings/memory-controllers/renesas,rpc-if.yaml +1 -0
@@ -26,6 +26,10 @@ properties:
   compatible:
     items:
       - enum:
+          - renesas,r8a774a1-rpc-if       # RZ/G2M
Quoted 8 lines

Documentation/devicetree/bindings/memory-controllers/renesas,rpc-if.yaml properties: · line 35

Quoted 6 lines
Documentation/devicetree/bindings/memory-controllers/renesas,rpc-if.yaml +3 -0
+          - renesas,r8a774b1-rpc-if       # RZ/G2N
+          - renesas,r8a774c0-rpc-if       # RZ/G2E
+          - renesas,r8a774e1-rpc-if       # RZ/G2H
           - renesas,r8a77970-rpc-if       # R-Car V3M
           - renesas,r8a77980-rpc-if       # R-Car V3H
           - renesas,r8a77995-rpc-if       # R-Car D3

May be we need to update the below description as well to cover RZ/G2

device??

Quoted 2 lines

- const: renesas,rcar-gen3-rpc-if # a generic R-Car gen3 device

Quoted 8 lines
Quoted 1 line

How do you want it to read?

Since it is generic compatible string for both R-Car gen3 and RZ/G2 device, I would update the description as

- const: renesas,rcar-gen3-rpc-if # a generic R-Car gen3 or RZ/G2 device

Also may be we need to update the description of config RENESAS_RPCIF in drivers/memory/Kconfig to taken care of RZ/G2 devices in a separate patch.

Thanks for the suggestion. I'll work on V2 where I update the descriptions for both.

adam

Quoted 2 lines

Cheers,
Biju