[PATCH] MXS: Enable FLEXCAN for MXS/DT

Subsystems: arm port, the rest

STALE5178d

2 messages, 2 authors, 2012-06-11 · open the first message on its own page

[PATCH] MXS: Enable FLEXCAN for MXS/DT

From: marex@denx.de (Marek Vasut)
Date: 2012-06-08 18:57:10

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Detlev Zundel <redacted>
CC: Dong Aisheng <redacted>
CC: Fabio Estevam <redacted>
Cc: Linux ARM kernel <redacted>
CC: Shawn Guo <redacted>
Cc: Stefano Babic <redacted>
Cc: Wolfgang Denk <redacted>
---
 arch/arm/boot/dts/imx28.dtsi |   18 ++++++++++++++++++
 arch/arm/mach-mxs/Kconfig    |    1 +
 2 files changed, 19 insertions(+)
diff --git a/arch/arm/boot/dts/imx28.dtsi b/arch/arm/boot/dts/imx28.dtsi
index 5053019..a40e30d 100644
--- a/arch/arm/boot/dts/imx28.dtsi
+++ b/arch/arm/boot/dts/imx28.dtsi
@@ -167,6 +167,22 @@
 					fsl,pull-up = <0>;
 				};
 
+				flexcan0_pins_a: flexcan0 at 0 {
+					reg = <0>;
+					fsl,pinmux-ids = <0x0161 0x0162>;
+					fsl,drive-strength = <2>;
+					fsl,voltage = <1>;
+					fsl,pull-up = <0>;
+				};
+
+				flexcan1_pins_a: flexcan1 at 0 {
+					reg = <0>;
+					fsl,pinmux-ids = <0x0121 0x0122>;
+					fsl,drive-strength = <2>;
+					fsl,voltage = <1>;
+					fsl,pull-up = <0>;
+				};
+
 				gpmi_pins_a: gpmi-nand at 0 {
 					reg = <0>;
 					fsl,pinmux-ids = <0x0000 0x0010 0x0020
@@ -295,12 +311,14 @@
 			};
 
 			can0: can@80032000 {
+				compatible = "fsl,p1010-flexcan";
 				reg = <0x80032000 2000>;
 				interrupts = <8>;
 				status = "disabled";
 			};
 
 			can1: can at 80034000 {
+				compatible = "fsl,p1010-flexcan";
 				reg = <0x80034000 2000>;
 				interrupts = <9>;
 				status = "disabled";
diff --git a/arch/arm/mach-mxs/Kconfig b/arch/arm/mach-mxs/Kconfig
index 91cf062..5451c07 100644
--- a/arch/arm/mach-mxs/Kconfig
+++ b/arch/arm/mach-mxs/Kconfig
@@ -18,6 +18,7 @@ config SOC_IMX28
 	select CPU_ARM926T
 	select HAVE_PWM
 	select PINCTRL_IMX28
+	select HAVE_CAN_FLEXCAN
 
 comment "MXS platforms:"
 
-- 
1.7.10

[PATCH] MXS: Enable FLEXCAN for MXS/DT

From: Shawn Guo <hidden>
Date: 2012-06-11 07:13:03

Please use something like "ARM: mxs: Enable FLEXCAN for DT" for the
subject.

On Fri, Jun 08, 2012 at 08:57:10PM +0200, Marek Vasut wrote:
+				flexcan0_pins_a: flexcan0 at 0 {
+					reg = <0>;
+					fsl,pinmux-ids = <0x0161 0x0162>;
Are you sure the second cell is correct?  From what
Documentation/devicetree/bindings/pinctrl/fsl,mxs-pinctrl.txt tells:

MX28_PAD_GPMI_RDY2__ENET0_TX_ER                 0x0162
+					fsl,drive-strength = <2>;
+					fsl,voltage = <1>;
+					fsl,pull-up = <0>;
+				};
+
+				flexcan1_pins_a: flexcan1 at 0 {
+					reg = <0>;
+					fsl,pinmux-ids = <0x0121 0x0122>;
Ditto

MX28_PAD_GPMI_CE2N__ENET0_RX_ER                 0x0122
+					fsl,drive-strength = <2>;
+					fsl,voltage = <1>;
+					fsl,pull-up = <0>;
+				};
+
-- 
Regards,
Shawn
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help