Skip to content

Commit

Permalink
Disable i2c2 pin mux, enable DCAN0 and DCAN1
Browse files Browse the repository at this point in the history
  • Loading branch information
jazdw committed Mar 30, 2014
1 parent 5c92e95 commit 9e6a5ec
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion DTSource3.8.13/am335x-bone-common.dtsi
Expand Up @@ -47,6 +47,18 @@
0x17c 0x73 /* uart1_rtsn.i2c2_scl, SLEWCTRL_SLOW | INPUT_PULLUP | MODE3 */
>;
};
dcan0_pins: pinmux_dcan0_pins {
pinctrl-single,pins = <
0x178 0x12 /* d_can0_tx, SLEWCTRL_FAST | INPUT_PULLUP | MODE2 */
0x17C 0x32 /* d_can0_rx, SLEWCTRL_FAST | RECV_ENABLE | INPUT_PULLUP | MODE2 */
>;
};
dcan1_pins: pinmux_dcan1_pins {
pinctrl-single,pins = <
0x180 0x12 /* d_can1_tx, SLEWCTRL_FAST | INPUT_PULLUP | MODE2 */
0x184 0x32 /* d_can1_rx, SLEWCTRL_FAST | RECV_ENABLE | INPUT_PULLUP | MODE2 */
>;
};
};

ocp: ocp {
Expand Down Expand Up @@ -401,7 +413,7 @@
&i2c2 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&i2c2_pins>;
// pinctrl-0 = <&i2c2_pins>;

clock-frequency = <100000>;

Expand Down Expand Up @@ -510,3 +522,22 @@
power = <250>;
status = "okay";
};

&dcan0 {
#address-cells = <1>;
#size-cells = <0>;

status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&dcan0_pins>;
};

&dcan1 {
#address-cells = <1>;
#size-cells = <0>;

status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&dcan1_pins>;
};

0 comments on commit 9e6a5ec

Please sign in to comment.