devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Add R8A7791/Henninger board CAN DT support
@ 2014-07-03 19:37 Sergei Shtylyov
  2014-07-03 19:38 ` [PATCH v2 1/2] ARM: shmobile: r8a7791: add " Sergei Shtylyov
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Sergei Shtylyov @ 2014-07-03 19:37 UTC (permalink / raw)
  To: horms, linux-sh, robh+dt, pawel.moll, mark.rutland,
	ijc+devicetree, galak, devicetree
  Cc: magnus.damm, linux, linux-arm-kernel

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH v2 1/2] ARM: shmobile: r8a7791: add CAN DT support
  2014-07-03 19:37 [PATCH v2 0/2] Add R8A7791/Henninger board CAN DT support Sergei Shtylyov
@ 2014-07-03 19:38 ` Sergei Shtylyov
  2014-07-03 19:40 ` [PATCH v2 2/2] ARM: shmobile: henninger: add CAN0 " Sergei Shtylyov
  2014-07-06 14:33 ` [PATCH v2 0/2] Add R8A7791/Henninger board CAN " Simon Horman
  2 siblings, 0 replies; 4+ messages in thread
From: Sergei Shtylyov @ 2014-07-03 19:38 UTC (permalink / raw)
  To: horms, linux-sh, robh+dt, pawel.moll, mark.rutland,
	ijc+devicetree, galak, devicetree
  Cc: magnus.damm, linux, linux-arm-kernel, vksavl

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

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

---
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(+)

Index: renesas/arch/arm/boot/dts/r8a7791.dtsi
===================================================================
--- renesas.orig/arch/arm/boot/dts/r8a7791.dtsi
+++ renesas/arch/arm/boot/dts/r8a7791.dtsi
@@ -518,6 +518,22 @@
 		status = "disabled";
 	};
 
+	can0: can@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@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>;

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH v2 2/2] ARM: shmobile: henninger: add CAN0 DT support
  2014-07-03 19:37 [PATCH v2 0/2] Add R8A7791/Henninger board CAN DT support Sergei Shtylyov
  2014-07-03 19:38 ` [PATCH v2 1/2] ARM: shmobile: r8a7791: add " Sergei Shtylyov
@ 2014-07-03 19:40 ` Sergei Shtylyov
  2014-07-06 14:33 ` [PATCH v2 0/2] Add R8A7791/Henninger board CAN " Simon Horman
  2 siblings, 0 replies; 4+ messages in thread
From: Sergei Shtylyov @ 2014-07-03 19:40 UTC (permalink / raw)
  To: horms, linux-sh, robh+dt, pawel.moll, mark.rutland,
	ijc+devicetree, galak, devicetree
  Cc: magnus.damm, linux, linux-arm-kernel, vksavl

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

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

---
 arch/arm/boot/dts/r8a7791-henninger.dts |   11 +++++++++++
 1 file changed, 11 insertions(+)

Index: renesas/arch/arm/boot/dts/r8a7791-henninger.dts
===================================================================
--- renesas.orig/arch/arm/boot/dts/r8a7791-henninger.dts
+++ 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";


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v2 0/2] Add R8A7791/Henninger board CAN DT support
  2014-07-03 19:37 [PATCH v2 0/2] Add R8A7791/Henninger board CAN DT support Sergei Shtylyov
  2014-07-03 19:38 ` [PATCH v2 1/2] ARM: shmobile: r8a7791: add " Sergei Shtylyov
  2014-07-03 19:40 ` [PATCH v2 2/2] ARM: shmobile: henninger: add CAN0 " Sergei Shtylyov
@ 2014-07-06 14:33 ` Simon Horman
  2 siblings, 0 replies; 4+ messages in thread
From: Simon Horman @ 2014-07-06 14:33 UTC (permalink / raw)
  To: Sergei Shtylyov
  Cc: linux-sh, robh+dt, pawel.moll, mark.rutland, ijc+devicetree,
	galak, devicetree, magnus.damm, linux, linux-arm-kernel

On Thu, Jul 03, 2014 at 11:37:02PM +0400, Sergei Shtylyov wrote:
> 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.

> 
> [1/2] ARM: shmobile: r8a7791: add CAN DT support
> [2/2] ARM: shmobile: henninger: add CAN0 DT support
> 
> WBR, Sergei
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-07-06 14:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-03 19:37 [PATCH v2 0/2] Add R8A7791/Henninger board CAN DT support Sergei Shtylyov
2014-07-03 19:38 ` [PATCH v2 1/2] ARM: shmobile: r8a7791: add " Sergei Shtylyov
2014-07-03 19:40 ` [PATCH v2 2/2] ARM: shmobile: henninger: add CAN0 " Sergei Shtylyov
2014-07-06 14:33 ` [PATCH v2 0/2] Add R8A7791/Henninger board CAN " Simon Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).