Last active
August 29, 2015 14:07
-
-
Save matt448/be4c38fda13fa727e91f to your computer and use it in GitHub Desktop.
Device tree overlay to enable dcan1 on a Beagle Bone Black
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/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>; | |
}; | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.