Skip to contentSkip to conversation

arm64: dts: r8a7795: Add CAN support

PATCH New Ramesh Shanmugasundaram 3 participants 4 messages Feb 29, 2016 – Mar 2, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: r8a7795: Add CAN support

Adds CAN controller nodes for r8a7795.

Note: CAN channel register base address mentioned in R-Car Gen3 Hardware User Manual v0.5E is incorrect. The corrected base addresses are:

CAN Channel 0 - 0xe6c30000
CAN Channel 1 - 0xe6c38000

---
Hi All,

This patch is based on linux-next (tag:next-20160225) with following patch applied on top

[PATCH v2] arm64: dts: r8a7795: Add CAN external clock support

The respective CAN subsystem changes are submitted separately here (http://marc.info/?l=linux-can&m=145674974416086&w=2)

 arch/arm64/boot/dts/renesas/r8a7795.dtsi | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
arch/arm64/boot/dts/renesas/r8a7795.dtsi +30 -0
index 4049182..a88f8d8 100644
@@ -523,6 +523,36 @@
 			#size-cells = <0>;
 		};
 
+		can0: can at e6c30000 {
+			compatible = "renesas,can-r8a7795",
+				     "renesas,rcar-gen3-can";
+			reg = <0 0xe6c30000 0 0x1000>;
+			interrupts = <GIC_SPI 186 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 916>,
+			       <&cpg CPG_CORE R8A7795_CLK_CANFD>,
+			       <&can_clk>;
+			clock-names = "clkp1", "clkp2", "can_clk";
+			assigned-clocks = <&cpg CPG_CORE R8A7795_CLK_CANFD>;
+			assigned-clock-rates = <40000000>;
+			power-domains = <&cpg>;
+			status = "disabled";
+		};
+
+		can1: can at e6c38000 {
+			compatible = "renesas,can-r8a7795",
+				     "renesas,rcar-gen3-can";
+			reg = <0 0xe6c38000 0 0x1000>;
+			interrupts = <GIC_SPI 187 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 915>,
+			       <&cpg CPG_CORE R8A7795_CLK_CANFD>,
+			       <&can_clk>;
+			clock-names = "clkp1", "clkp2", "can_clk";
+			assigned-clocks = <&cpg CPG_CORE R8A7795_CLK_CANFD>;
+			assigned-clock-rates = <40000000>;
+			power-domains = <&cpg>;
+			status = "disabled";
+		};
+
 		hscif0: serial at e6540000 {
 			compatible = "renesas,hscif-r8a7795",
 				     "renesas,rcar-gen3-hscif",
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 arm64: dts: r8a7795: Add CAN support

Quoted 8 lines · Ramesh Shanmugasundaram

Adds CAN controller nodes for r8a7795.

Note: CAN channel register base address mentioned in R-Car Gen3 Hardware User Manual v0.5E is incorrect. The corrected base addresses are:

CAN Channel 0 - 0xe6c30000
CAN Channel 1 - 0xe6c38000

Quoted 6 lines

---
Hi All,

This patch is based on linux-next (tag:next-20160225) with following patch applied on top

Who should take this patch?

Marc

Signature · 12 lines
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20160301/dd48dafe/attachment.sig>
#2 lore raw

PATCH 1/1 arm64: dts: r8a7795: Add CAN support

Hi Marc,

Quoted 15 lines · Ramesh Shanmugasundaram
Quoted 4 lines

Adds CAN controller nodes for r8a7795.

Note: CAN channel register base address mentioned in R-Car Gen3 Hardware User Manual v0.5E is incorrect. The corrected base addresses

are:

Quoted 9 lines

CAN Channel 0 - 0xe6c30000
CAN Channel 1 - 0xe6c38000

Signed-off-by: Ramesh Shanmugasundaram
<[email protected]>
---
Hi All,

Quoted 5 lines
Quoted 1 line

This patch is based on linux-next (tag:next-20160225) with following

patch

Quoted 1 line

applied on top

Who should take this patch?

If acked, I think it is Simon (who consolidates all Renesas ARM64 DT changes and make one pull request). Copied Geert too.

Thanks,
Ramesh

#3 lore raw

PATCH 1/1 arm64: dts: r8a7795: Add CAN support

Quoted 17 lines · Ramesh Shanmugasundaram

Hi Marc,

Quoted 15 lines · Ramesh Shanmugasundaram
Quoted 4 lines

Adds CAN controller nodes for r8a7795.

Note: CAN channel register base address mentioned in R-Car Gen3 Hardware User Manual v0.5E is incorrect. The corrected base addresses

are:

Quoted 9 lines

CAN Channel 0 - 0xe6c30000
CAN Channel 1 - 0xe6c38000

Signed-off-by: Ramesh Shanmugasundaram
<[email protected]>
---
Hi All,

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

This patch is based on linux-next (tag:next-20160225) with following

patch

Quoted 1 line

applied on top

Who should take this patch?

If acked, I think it is Simon (who consolidates all Renesas ARM64 DT changes and make one pull request). Copied Geert too.

I believe it is appropriate for me to take this patch the renesas tree. I would be glad of any review and Acks, though I don't think an Ack from the driver maintainer is strictly necessary.

Assuming there are no objections I plan to queue up this patch once the bindings been queued up.