Update i.MX machine configurations
[AGL/meta-agl.git] / meta-agl-bsp / meta-ti / recipes-kernel / linux / files / dcan2_pinmux_enable.patch
1 diff --git a/arch/arm/boot/dts/dra7-evm.dts b/arch/arm/boot/dts/dra7-evm.dts
2 index 35424da..08fca09 100644
3 --- a/arch/arm/boot/dts/dra7-evm.dts
4 +++ b/arch/arm/boot/dts/dra7-evm.dts
5 @@ -243,6 +243,20 @@
6                         DRA7XX_CORE_IOPAD(0x380c, PIN_INPUT | MUX_MODE1) /* i2c2_scl.hdmi1_ddc_sda */
7                 >;
8         };
9 +       dcan2_pins_default: dcan2_pins_default {
10 +                pinctrl-single,pins = <
11 +                        DRA7XX_CORE_IOPAD(0x3688, PIN_OUTPUT_PULLUP | MUX_MODE2) /* gpio6_14.dcan2_tx */
12 +                        DRA7XX_CORE_IOPAD(0x368C, PIN_INPUT_PULLUP | MUX_MODE2) /*  gpio6_15.dcan2_rx */
13 +                >;
14 +        };
15 +
16 +        dcan2_pins_sleep: dcan2_pins_sleep {
17 +                pinctrl-single,pins = <
18 +                        DRA7XX_CORE_IOPAD(0x3688, MUX_MODE15 | PULL_UP) /* gpio6_14.dcan2_tx.off */
19 +                        DRA7XX_CORE_IOPAD(0x368C, MUX_MODE15 | PULL_UP) /* gpio6_15.dcan2_rx.off */
20 +                >;
21 +        };
22 +
23  };
24  
25  &i2c1 {
26 @@ -703,6 +717,13 @@
27         memory-region = <&ipu1_memory_region>;
28  };
29  
30 +&dcan2 {
31 +        status = "ok";
32 +        pinctrl-names = "default", "sleep";
33 +        pinctrl-0 = <&dcan2_pins_default>;
34 +        pinctrl-1 = <&dcan2_pins_sleep>;
35 +};
36 +
37  &dsp1 {
38         status = "okay";
39         memory-region = <&dsp1_memory_region>;