ARM: dts: cm-t335: Add support for CAN bus
Add CAN bus pinmux. Enable D_CAN bus controllers 0 and 1 The pinmux of uart1 node contradicts the pinmux of dcan0 and dcan1 nodes. U-Boot should delete the uart1 or dcan0/1 nodes. Signed-off-by: Uri Mashiach <uri.mashiach@compulab.co.il> Acked-by: Igor Grinberg <grinberg@compulab.co.il> Signed-off-by: Tony Lindgren <tony@atomide.com>
This commit is contained in:
parent
12e47442c2
commit
2ac6e66ed6
|
@ -134,6 +134,24 @@ AM33XX_IOPAD(0x984, PIN_OUTPUT_PULLDOWN | MUX_MODE0)
|
|||
>;
|
||||
};
|
||||
|
||||
dcan0_pins: pinmux_dcan0_pins {
|
||||
pinctrl-single,pins = <
|
||||
/* uart1_ctsn.dcan0_tx */
|
||||
AM33XX_IOPAD(0x978, PIN_OUTPUT | MUX_MODE2)
|
||||
/* uart1_rtsn.dcan0_rx */
|
||||
AM33XX_IOPAD(0x97C, PIN_INPUT | MUX_MODE2)
|
||||
>;
|
||||
};
|
||||
|
||||
dcan1_pins: pinmux_dcan1_pins {
|
||||
pinctrl-single,pins = <
|
||||
/* uart1_rxd.dcan1_tx */
|
||||
AM33XX_IOPAD(0x980, PIN_OUTPUT | MUX_MODE2)
|
||||
/* uart1_txd.dcan1_rx */
|
||||
AM33XX_IOPAD(0x984, PIN_INPUT | MUX_MODE2)
|
||||
>;
|
||||
};
|
||||
|
||||
ecap0_pins: pinmux_ecap0_pins {
|
||||
pinctrl-single,pins = <
|
||||
/* eCAP0_in_PWM0_out.eCAP0_in_PWM0_out MODE0 */
|
||||
|
@ -394,3 +412,15 @@ &mmc1 {
|
|||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&mmc1_pins>;
|
||||
};
|
||||
|
||||
&dcan0 {
|
||||
status = "okay";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&dcan0_pins>;
|
||||
};
|
||||
|
||||
&dcan1 {
|
||||
status = "okay";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&dcan1_pins>;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue