Skip to content

ENC28J60 module doesn't work on SPI2 interface for compute module #690

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

Closed
yidingalan opened this issue Nov 30, 2016 · 1 comment
Closed

Comments

@yidingalan
Copy link

I am testing to see if ENC28J60(Ethernet module) works on SPI2 interface, and I am having some issues. Basically the wire connections will be:

INT - GPIO39
MISO - GPIO40
MOSI - GPIO41
SCLK - GPIO42
CE - GPIO43

I have it working with Pi zero, and SPI0 on compute module, but didn't work on SPI2 for compute module. It is always trying to access SPI0 during the bootup and therefore it wouldn't pick up the ethernet. The current enc28j60 overlay file is for SPI0 apparently, and I am wondering if I need to create my own overlay .dts file specifically tailored to SPI2, or does it already exist? If not, are there any alternatives or shortcut that allows me to access SPI2 right away instead of creating a new dts file(for example one line of change in /boot/config.txt)?

trying to access spi0 during bootup
This is the boot time message and you can tell it's accessing SPI0 although I already connected my module to SPI2

Any help and insights will be appreciated

@6by9
Copy link

6by9 commented Nov 30, 2016

Duplicate of raspberrypi/linux#1735
This is not a firmware issue.

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

No branches or pull requests

2 participants