rzusman
Posts: 347
Joined: Fri Jan 01, 2016 10:27 pm

ENC28J60 SPI Ethernet INT remap

Thu Mar 31, 2016 4:47 am

I'd like to add this Ethernet module to my Compute Module (I'm currently using a USB-Ethernet adapter, but I'd like to free up the USB port. Ethernet speed is not critical). The configuration instructions seem straightforward, but they call for using GPIO 25 as the interrupt input, and I'm currently using it for something else.

Is there a simple way to tell the driver to use a different GPIO?
I understand that the device tree can be edited, but I've never done that, and am clueless about how to proceed.

DirkS
Posts: 10388
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: ENC28J60 SPI Ethernet INT remap

Thu Mar 31, 2016 11:01 am

You can use the device tree parameter 'int_pin'
See https://github.com/raspberrypi/firmware ... t/overlays or /boot/overlays/README on your CM

Example:

Code: Select all

dtoverlay=enc28j60,int_pin=99

rzusman
Posts: 347
Joined: Fri Jan 01, 2016 10:27 pm

Re: ENC28J60 SPI Ethernet INT remap

Thu Mar 31, 2016 5:52 pm

Thank you, that worked perfectly.

jpotpo
Posts: 8
Joined: Fri Apr 01, 2016 5:28 pm

Re: ENC28J60 SPI Ethernet INT remap

Wed Apr 06, 2016 12:06 pm

does anyone have a overlay for Asix AX8879c ethernet controller ?

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 9245
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: ENC28J60 SPI Ethernet INT remap

Wed Apr 06, 2016 12:57 pm

jpotpo wrote:does anyone have a overlay for Asix AX8879c ethernet controller ?
Have you got the right part number there? Did you mean AX88796 ? Your other post would imply so.

Seeing as CONFIG_AX88796 isn't defined in the default kernel build, I doubt anyone will have set up an overlay, but at least there is a driver available (https://github.com/raspberrypi/linux/bl ... /ax88796.c).
...
Seeing as that driver is missing any device tree config, you'll have to make changes to it along similar lines to the changes for enc28j60. No DT support in the driver precludes anyone having done a DT overlay for it!
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

jpotpo
Posts: 8
Joined: Fri Apr 01, 2016 5:28 pm

Re: ENC28J60 SPI Ethernet INT remap

Wed Apr 06, 2016 6:49 pm

yes that is the chip and thanks for the info

shawaj
Posts: 113
Joined: Wed Oct 03, 2012 3:36 am

Re: ENC28J60 SPI Ethernet INT remap

Thu Jul 14, 2016 12:01 pm

does the int pin actually need to be connected?
Support The MagPi by purchasing printed copies from one of our retailers - http://themagpi.com/en/buy

Please share with anyone who is interested!

User avatar
DougieLawson
Posts: 39551
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: ENC28J60 SPI Ethernet INT remap

Fri Jul 15, 2016 5:08 pm

shawaj wrote:does the int pin actually need to be connected?
Yes unless you like dropped packets and re-transmits.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All fake doctors are on my foes list.

Return to “Compute Module”