Skip to contentSkip to conversation

arm64: dts: renesas: r8a77995: draak: Enable CAN0, CAN1

PATCH Applied [email protected] 3 participants 4 messages Mar 9, 2019 – Mar 13, 2019

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

PATCH 1/1 arm64: dts: renesas: r8a77995: draak: Enable CAN0, CAN1

From: Marek Vasut <[email protected]>

Enable both CAN0 and CAN1 controllers on R8A77995 Draak board, since they are available on connectors CN43, CN44 respectively.

Cc Geert Uytterhoeven <[email protected]>
Cc Simon Horman <[email protected]>
Cc Wolfram Sang <[email protected]>

To: [email protected]

---
 .../arm64/boot/dts/renesas/r8a77995-draak.dts | 22 +++++++++++++++++++
 1 file changed, 22 insertions(+)
arch/arm64/boot/dts/renesas/r8a77995-draak.dts +22 -0
index db2bed1751b8..9a000a75fe8e 100644
@@ -179,6 +179,18 @@
 	};
 };
 
+&can0 {
+	pinctrl-0 = <&can0_pins>;
+	pinctrl-names = "default";
+	status = "okay";
+};
+
+&can1 {
+	pinctrl-0 = <&can1_pins>;
+	pinctrl-names = "default";
+	status = "okay";
+};
+
 &du {
 	pinctrl-0 = <&du_pins>;
 	pinctrl-names = "default";
@@ -375,6 +387,16 @@
 		};
 	};
 
+	can0_pins: can0 {
+		groups = "can0_data_a";
+		function = "can0";
+	};
+
+	can1_pins: can1 {
+		groups = "can1_data_a";
+		function = "can1";
+	};
+
 	du_pins: du {
 		groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0";
 		function = "du";
Signature · 1 line
2.20.1
Reviewed-by on v1 1/1
#1 lore raw

Hi Marek,

Quoted 6 lines · On Sat, Mar 9, 2019 at 3:06 AM <[email protected]> wrote:

From: Marek Vasut <[email protected]>

Enable both CAN0 and CAN1 controllers on R8A77995 Draak board, since they are available on connectors CN43, CN44 respectively.

Thanks for your patch!
I assume you have tested this with your CAN-analyzer?

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
#2 lore raw
Quoted 5 lines · Geert Uytterhoeven

Hi Marek,

Quoted 2 lines · On Sat, Mar 9, 2019 at 3:06 AM <[email protected]> wrote:

From: Marek Vasut <[email protected]>

Quoted 7 lines
Quoted 4 lines

Enable both CAN0 and CAN1 controllers on R8A77995 Draak board, since they are available on connectors CN43, CN44 respectively.

Thanks for your patch!
I assume you have tested this with your CAN-analyzer?

Nope, only remotely between two CAN ports thus far.

Signature · 2 lines
Best regards,
Marek Vasut
Applied
#3 lore raw
Quoted 9 lines · Marek Vasut
Quoted 8 lines · Geert Uytterhoeven

Hi Marek,

Quoted 5 lines · On Sat, Mar 9, 2019 at 3:06 AM <[email protected]> wrote:

From: Marek Vasut <[email protected]>

Enable both CAN0 and CAN1 controllers on R8A77995 Draak board, since they are available on connectors CN43, CN44 respectively.

Quoted 6 lines
Quoted 4 lines
Quoted 1 line

Thanks for your patch!
I assume you have tested this with your CAN-analyzer?

Nope, only remotely between two CAN ports thus far.

Thanks, applied for v5.2.