Skip to content

Instantly share code, notes, and snippets.

@matt448
Last active August 29, 2015 14:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matt448/be4c38fda13fa727e91f to your computer and use it in GitHub Desktop.
Save matt448/be4c38fda13fa727e91f to your computer and use it in GitHub Desktop.
Device tree overlay to enable dcan1 on a Beagle Bone Black
/dts-v1/;
/plugin/;
/ {
compatible = "ti,beaglebone", "ti,beaglebone-black";
/* identification */
part-number = "dcan1pinmux";
fragment@0 {
target = <&am33xx_pinmux>;
__overlay__ {
dcan1_pins_s0: dcan1_pins_s0 {
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 */
>;
};
};
};
fragment@1 {
target = <&dcan1>;
__overlay__ {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&dcan1_pins_s0>;
};
};
};
@matt448
Copy link
Author

matt448 commented Oct 19, 2014

This came from http://www.embedded-things.com/bbb/enable-canbus-on-the-beaglebone-black/

I'm putting it in this Gist to make it available for download.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment