Skip to contentSkip to conversation

Add R8A7791/Henninger board CAN DT support

PATCH Superseded Sergei Shtylyov 2 participants 4 messages Jul 3, 2014 – Jul 6, 2014

Subsystems (2)

v2 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

v2 cover Add R8A7791/Henninger board CAN DT support

Hello.

Here's the set of 2 patches against Simon Horman's 'renesas.git' repo,
'renesas-devel-v3.16-rc3-20140701' tag. Here we add the CAN device tree support for the R8A7791-based Henninger board. It depends on the PFC CAN support and R-Car CAN device tree support patches posted recently in order to work.

[1/2] ARM: shmobile: r8a7791: add CAN DT support [2/2] ARM: shmobile: henninger: add CAN0 DT support

WBR, Sergei

#1 lore raw

PATCH v2 1/2 ARM: shmobile: r8a7791: add CAN DT support

Define the generic R8A7791 parts of the CAN0/1 device nodes.

---
Changes in version 2:
- fixed the "compatible" property in the CAN device nodes.

 arch/arm/boot/dts/r8a7791.dtsi |   16 ++++++++++++++++
 1 file changed, 16 insertions(+)
arch/arm/boot/dts/r8a7791.dtsi +16 -0
Index: renesas/arch/arm/boot/dts/r8a7791.dtsi
===================================================================
@@ -518,6 +518,22 @@
 		status = "disabled";
 	};
 
+	can0: can at e6e80000 {
+		compatible = "renesas,can-r8a7791";
+		reg = <0 0xe6e80000 0 0x1000>;
+		interrupts = <0 186 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&mstp9_clks R8A7791_CLK_RCAN0>;
+		status = "disabled";
+	};
+
+	can1: can at e6e88000 {
+		compatible = "renesas,can-r8a7791";
+		reg = <0 0xe6e88000 0 0x1000>;
+		interrupts = <0 187 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&mstp9_clks R8A7791_CLK_RCAN1>;
+		status = "disabled";
+	};
+
 	clocks {
 		#address-cells = <2>;
 		#size-cells = <2>;
#2 lore raw

PATCH v2 2/2 ARM: shmobile: henninger: add CAN0 DT support

In reply to Sergei Shtylyov

Define the Henninger board dependent part of the CAN0 device node.

---
 arch/arm/boot/dts/r8a7791-henninger.dts |   11 +++++++++++
 1 file changed, 11 insertions(+)
arch/arm/boot/dts/r8a7791-henninger.dts +11 -0
Index: renesas/arch/arm/boot/dts/r8a7791-henninger.dts
===================================================================
@@ -125,6 +125,11 @@
 				 "msiof0_tx";
 		renesas,function = "msiof0";
 	};
+
+	can0_pins: can0 {
+		renesas,groups = "can0_data_a", "can_clk_d";
+		renesas,function = "can0";
+	};
 };
 
 &scif0 {
@@ -175,6 +180,12 @@
 	status = "okay";
 };
 
+&can0 {
+	pinctrl-0 = <&can0_pins>;
+	pinctrl-names = "default";
+	status = "okay";
+};
+
 &i2c2 {
 	pinctrl-0 = <&i2c2_pins>;
 	pinctrl-names = "default";
#3 lore raw

v2 cover Add R8A7791/Henninger board CAN DT support

In reply to Sergei Shtylyov
Quoted 6 lines · Sergei Shtylyov

Hello.

Here's the set of 2 patches against Simon Horman's 'renesas.git' repo,
'renesas-devel-v3.16-rc3-20140701' tag. Here we add the CAN device tree support for the R8A7791-based Henninger board. It depends on the PFC CAN support and R-Car CAN device tree support patches posted recently in order to work.

Thanks, please repost these patches once the bindings have been merged.

Quoted 6 lines

[1/2] ARM: shmobile: r8a7791: add CAN DT support [2/2] ARM: shmobile: henninger: add CAN0 DT support

WBR, Sergei