Skip to contentSkip to conversation

arm64: dts: renesas: r8a77990: ebisu: Add and enable CAN, FD device nodes

PATCH New Marek Vasut 3 participants 5 messages Nov 18, 2018 – Nov 21, 2018

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

PATCH 1/1 arm64: dts: renesas: r8a77990: ebisu: Add and enable CAN, FD device nodes

This patch adds CAN0,1 and CANFD device nodes for the r8a77990 SoC and enables CANFD connected to CN10 on the E3 Ebisu board using the R8A77990 SoC.

Cc Geert Uytterhoeven <[email protected]>
Cc Marc Kleine-Budde <[email protected]>
Cc Rob Herring <[email protected]>
Cc Simon Horman <[email protected]>
Cc Wolfram Sang <[email protected]>
Cc Yoshihiro Shimoda <[email protected]>
Cc linux-arm-kernel at lists.infradead.org
Cc linux-renesas-soc at vger.kernel.org
---
 .../arm64/boot/dts/renesas/r8a77990-ebisu.dts | 15 +++++
 arch/arm64/boot/dts/renesas/r8a77990.dtsi     | 64 +++++++++++++++++++
 2 files changed, 79 insertions(+)
arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts +15 -0
index 2ef9067616ee..e282ef500001 100644
@@ -260,6 +260,16 @@
 	};
 };
 
+&canfd {
+	pinctrl-0 = <&canfd0_pins>;
+	pinctrl-names = "default";
+	status = "okay";
+
+	channel0 {
+		status = "okay";
+	};
+};
+
 &csi40 {
 	status = "okay";
 
@@ -460,6 +470,11 @@
 		};
 	};
 
+	canfd0_pins: canfd0 {
+		groups = "canfd0_data";
+		function = "canfd0";
+	};
+
 	du_pins: du {
 		groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0";
 		function = "du";
arch/arm64/boot/dts/renesas/r8a77990.dtsi +64 -0

76 lines not on this page · raw message

Signature · 1 line
2.18.0
#1 lore raw

PATCH 1/1 arm64: dts: renesas: r8a77990: ebisu: Add and enable CAN,FD device nodes

Quoted 4 lines · Marek Vasut

This patch adds CAN0,1 and CANFD device nodes for the r8a77990 SoC and enables CANFD connected to CN10 on the E3 Ebisu board using the R8A77990 SoC.

Quoted 9 lines
Cc Geert Uytterhoeven <[email protected]>
Cc Marc Kleine-Budde <[email protected]>
Cc Rob Herring <[email protected]>
Cc Simon Horman <[email protected]>
Cc Wolfram Sang <[email protected]>
Cc Yoshihiro Shimoda <[email protected]>
Cc linux-arm-kernel at lists.infradead.org
Cc linux-renesas-soc at vger.kernel.org

Same here, what was tested?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20181119/d5df8567/attachment.sig>

#2 lore raw

PATCH 1/1 arm64: dts: renesas: r8a77990: ebisu: Add and enable CAN,FD device nodes

Quoted 15 lines · Wolfram Sang
Quoted 4 lines · Marek Vasut

This patch adds CAN0,1 and CANFD device nodes for the r8a77990 SoC and enables CANFD connected to CN10 on the E3 Ebisu board using the R8A77990 SoC.

Quoted 9 lines
Cc Geert Uytterhoeven <[email protected]>
Cc Marc Kleine-Budde <[email protected]>
Cc Rob Herring <[email protected]>
Cc Simon Horman <[email protected]>
Cc Wolfram Sang <[email protected]>
Cc Yoshihiro Shimoda <[email protected]>
Cc linux-arm-kernel at lists.infradead.org
Cc linux-renesas-soc at vger.kernel.org
Quoted 1 line

Same here, what was tested?

I connected the CN10 to Peak CANFD, brought both interfaces up at 125kBd/250kBd for FD

$ ip link set canX up type can bitrate 125000 dbitrate 250000 fd on

And ran on either side:

$ cangen -m canX
and
$ candump -t d -dex canX
This should give a good mix of CAN messages.
Signature · 2 lines
Best regards,
Marek Vasut
#3 lore raw

PATCH 1/1 arm64: dts: renesas: r8a77990: ebisu: Add and enable CAN,FD device nodes

Quoted 5 lines
Quoted 2 lines

Same here, what was tested?

I connected the CN10 to Peak CANFD, brought both interfaces up at 125kBd/250kBd for FD

Quoted 7 lines
$ ip link set canX up type can bitrate 125000 dbitrate 250000 fd on

And ran on either side:

$ cangen -m canX
and
$ candump -t d -dex canX
This should give a good mix of CAN messages.

Perfect, thanks!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20181119/5ade715d/attachment.sig>

Applied
#4 lore raw

PATCH 1/1 arm64: dts: renesas: r8a77990: ebisu: Add and enable CAN,FD device nodes

Quoted 7 lines · Wolfram Sang
Quoted 7 lines
Quoted 2 lines

Same here, what was tested?

I connected the CN10 to Peak CANFD, brought both interfaces up at 125kBd/250kBd for FD

$ ip link set canX up type can bitrate 125000 dbitrate 250000 fd on
Quoted 7 lines
Quoted 5 lines

And ran on either side:

$ cangen -m canX
and
$ candump -t d -dex canX
This should give a good mix of CAN messages.

Perfect, thanks!

Thanks, applied for v4.21.