]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: dts: vf-colibri: add CAN support
authorStefan Agner <stefan@agner.ch>
Wed, 2 Dec 2015 22:11:47 +0000 (14:11 -0800)
committerShawn Guo <shawnguo@kernel.org>
Tue, 22 Dec 2015 12:43:38 +0000 (20:43 +0800)
Add Colibri standard pinmux for FlexCAN controller instances. CAN
is not a standard Colibri feature, but the datasheet predefines
pins which provide CAN (compatible across some modules). Hence,
add the pinmux on module level.

Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/vf-colibri.dtsi

index e5949b9349453394688ba62bd4073c817049ac58..6e556be42ccdca53e1b109d8c664bb43dbfa0635 100644 (file)
        status = "okay";
 };
 
+&can0 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_flexcan0>;
+       status = "disabled";
+};
+
+&can1 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_flexcan1>;
+       status = "disabled";
+};
+
 &dspi1 {
        bus-num = <1>;
        pinctrl-names = "default";
 
 &iomuxc {
        vf610-colibri {
+               pinctrl_flexcan0: can0grp {
+                       fsl,pins = <
+                               VF610_PAD_PTB14__CAN0_RX        0x31F1
+                               VF610_PAD_PTB15__CAN0_TX        0x31F2
+                       >;
+               };
+
+               pinctrl_flexcan1: can1grp {
+                       fsl,pins = <
+                               VF610_PAD_PTB16__CAN1_RX        0x31F1
+                               VF610_PAD_PTB17__CAN1_TX        0x31F2
+                       >;
+               };
+
                pinctrl_gpio_ext: gpio_ext {
                        fsl,pins = <
                                VF610_PAD_PTD10__GPIO_89        0x22ed /* EXT_IO_0 */