diff mbox

ARM: dts: wheat: add CAN support

Message ID 5729004.lSWLzbWbOW@wasted.cogentembedded.com (mailing list archive)
State New, archived
Headers show

Commit Message

Sergei Shtylyov Aug. 29, 2016, 8:11 p.m. UTC
Define the Wheat board dependent part of the CAN0/1 device nodes...

Based  on the original (and large) patch by Vladimir Barinov 
<vladimir.barinov@cogentembedded.com>.

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

---
This patch is against the 'renesas-devel-20160829-v4.8-rc4' of Simon Horman's
'renesas.git' repo.

 arch/arm/boot/dts/r8a7792-wheat.dts |   24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

Comments

Sergei Shtylyov Sept. 3, 2016, 9:50 p.m. UTC | #1
On 08/29/2016 11:11 PM, Sergei Shtylyov wrote:

> Define the Wheat board dependent part of the CAN0/1 device nodes...
>
> Based  on the original (and large) patch by Vladimir Barinov
> <vladimir.barinov@cogentembedded.com>.
>
> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
[...]

    This patch seems stuck for no apparent reason...

MBR, Sergei
Simon Horman Sept. 5, 2016, 12:03 p.m. UTC | #2
On Sun, Sep 04, 2016 at 12:50:00AM +0300, Sergei Shtylyov wrote:
> On 08/29/2016 11:11 PM, Sergei Shtylyov wrote:
> 
> >Define the Wheat board dependent part of the CAN0/1 device nodes...
> >
> >Based  on the original (and large) patch by Vladimir Barinov
> ><vladimir.barinov@cogentembedded.com>.
> >
> >Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
> [...]
> 
>    This patch seems stuck for no apparent reason...

Thanks, I have queued this up.
diff mbox

Patch

Index: renesas/arch/arm/boot/dts/r8a7792-wheat.dts
===================================================================
--- renesas.orig/arch/arm/boot/dts/r8a7792-wheat.dts
+++ renesas/arch/arm/boot/dts/r8a7792-wheat.dts
@@ -76,6 +76,16 @@ 
 			function = "lbsc";
 		};
 	};
+
+	can0_pins: can0 {
+		groups = "can0_data";
+		function = "can0";
+	};
+
+	can1_pins: can1 {
+		groups = "can1_data";
+		function = "can1";
+	};
 };
 
 &scif0 {
@@ -83,4 +93,18 @@ 
 	pinctrl-names = "default";
 
 	status = "okay";
+};
+
+&can0 {
+	pinctrl-0 = <&can0_pins>;
+	pinctrl-names = "default";
+
+	status = "okay";
+};
+
+&can1 {
+	pinctrl-0 = <&can1_pins>;
+	pinctrl-names = "default";
+
+	status = "okay";
 };