Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable mcp2515 CAN controller module plus the corrresponding overlay #868

Merged

Conversation

msperl
Copy link
Contributor

@msperl msperl commented Mar 2, 2015

added mcp251x module to list of modules to get compiled as well as the c...orresponding overlay

Overlay gets loaded like this in /boot/config.txt:

dtoverlay=mcp2515-can0-overlay,oscillator=16000000,interrupt=25

(remember to enable the spi device)

@notro
Copy link
Contributor

notro commented Mar 2, 2015

This will be welcomed by a lot of users.
The massive CAN controller forum thread is filled with people asking how to build these modules.

(remember to enable the spi device)

What do you mean?

@msperl
Copy link
Contributor Author

msperl commented Mar 2, 2015

I meant: add the following as well to /boot/config.txt:

dtparam=spi=on

@msperl
Copy link
Contributor Author

msperl commented Mar 2, 2015

Actually some of this should go into some documentation of the available overlays, but there is none...

@notro
Copy link
Contributor

notro commented Mar 2, 2015

dtparam=spi=on

This just enables spi0.
The same thing you do in your overlay with: status = "okay";
Ref: https://github.com/raspberrypi/linux/blob/rpi-3.18.y/arch/arm/boot/dts/bcm2708-rpi-b-plus.dts#L103

Actually some of this should go into some documentation of the available overlays, but there is none...

Phil has done lots of documentation. See /boot/overlays/README
Don't remember where the source of that recides. I have made some overlays that I haven't documented yet...

@pelwell
Copy link
Contributor

pelwell commented Mar 2, 2015

The canonical source for the README is in the firmware repo, under the boot directory, although I'm starting to think that perhaps the overlay sources and the README should all move elsewhere.

@notro
Copy link
Contributor

notro commented Mar 2, 2015

although I'm starting to think that perhaps the overlay sources [..] should all move elsewhere

This has crossed my mind as well.

@msperl
Copy link
Contributor Author

msperl commented Mar 2, 2015

We could also just keep that in the wiki...
Or we put it in Documentation/devicetree/overlays

But I think that is a different discussion - so I created issue #869 to track that

popcornmix added a commit that referenced this pull request Mar 3, 2015
enable mcp2515 CAN controller module plus the corrresponding overlay
@popcornmix popcornmix merged commit c4cb60f into raspberrypi:rpi-3.18.y Mar 3, 2015
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Mar 3, 2015
firmware: arm_loader: Support HATs on all boards with the bplus layout

firmware: dtblob: Remove the static i2c0 pin assignments for B+ and 2B

firmware: arm_loader: Use bcm2708-rpi-cm.dtb on a Compute Module

kernel: enable mcp2515 CAN controller module plus the corrresponding overlay
See: raspberrypi/linux#868

kernel: Built-in serial port losing characters
See: raspberrypi/linux#854

kernel: SPI: enable compiling upstream spi-bcm2835 driver and add overlay to allow us to load the driver
See: raspberrypi/linux#866
popcornmix added a commit to Hexxeh/rpi-firmware that referenced this pull request Mar 3, 2015
firmware: arm_loader: Support HATs on all boards with the bplus layout

firmware: dtblob: Remove the static i2c0 pin assignments for B+ and 2B

firmware: arm_loader: Use bcm2708-rpi-cm.dtb on a Compute Module

kernel: enable mcp2515 CAN controller module plus the corrresponding overlay
See: raspberrypi/linux#868

kernel: Built-in serial port losing characters
See: raspberrypi/linux#854

kernel: SPI: enable compiling upstream spi-bcm2835 driver and add overlay to allow us to load the driver
See: raspberrypi/linux#866
neuschaefer pushed a commit to neuschaefer/raspi-binary-firmware that referenced this pull request Feb 27, 2017
firmware: arm_loader: Support HATs on all boards with the bplus layout

firmware: dtblob: Remove the static i2c0 pin assignments for B+ and 2B

firmware: arm_loader: Use bcm2708-rpi-cm.dtb on a Compute Module

kernel: enable mcp2515 CAN controller module plus the corrresponding overlay
See: raspberrypi/linux#868

kernel: Built-in serial port losing characters
See: raspberrypi/linux#854

kernel: SPI: enable compiling upstream spi-bcm2835 driver and add overlay to allow us to load the driver
See: raspberrypi/linux#866
pfpacket pushed a commit to pfpacket/linux-rpi-rust that referenced this pull request Apr 7, 2023
feat: Allow the use of fn bit in a const context
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants