CAN BUS MCP2515 and dts labels

140 views
Skip to first unread message

Ferdinand Haselbacher

unread,
Feb 21, 2015, 11:47:07 AM2/21/15
to beagl...@googlegroups.com
Hi all,

iam hving difficulties in getting my can stuff working witt BBB ReavA5A and a CAN SPI [Click]

The can MCP2515 is connected to the following pins on the BBB:



























RST    P9.12     GPIO1_28    7    30    0x878/078    60
CS     P9.28     SPI1_CS0    3    103    0x99c/19c    113
SCK    P9.31     SPI1_SCLK     3    100    0x990/190    110
MISO    P9.29     SPI1_D0     3    101    0x994/194    111
MOSI    P9.30     SPI1_D1     3    102    0x998/198    112
INT     P9.15     GPIO1_16    7    16    0x840/040    48
+3.3V    P9.3 - P9.4    VDD_3V3EXP    -    -    -    -
GND    P9.43 - P9.46    GND    -    -    -    -







This is a CAN SPI Click (Mikroelektronika, BaseCape is a MikroBusCape from [https://www.tigal.com/wiki/doku.php?id=tigalcapes:bb_mikrobus_cape]


my DTS is attached it is derived from Towertechs's dts since it uses the same chip.


Everything seems to work,
dmesg:
[   63.667260] mcp251x spi1.0: mode 0, irq 197, awake 1, clkout 0, oscillator freq 10000000
[   63.678535] mcp251x spi1.0 can0: probed


ip link set  works, but i never get an interrupt down the line.

Towertech's dts used labels for gpio4 (which seems to be gpio3 in reality). i would use gpio1_16 for int, so i referenced it as &gpio2, but as said before i never received an interrupt, my guess is that i messed up something with the gpio's. Anyone can give me a hint on setup/DTS-configuration?


so far,
Ferdinand










































BB-MIKROBUS-01-00A1.dts

Eric Schmidt

unread,
Oct 29, 2015, 10:10:30 AM10/29/15
to beagl...@googlegroups.com
Did you ever figure this out? I am attempting the same thing and not having
any luck.

Thanks,
Eric


Ferdinand Haselbacher

unread,
Oct 29, 2015, 10:12:12 AM10/29/15
to Eric Schmidt
Yes Did succeed send you more information tonight CET


Ferdinand Haselbacher
  Originalnachricht  
Von: Eric Schmidt
Gesendet: Donnerstag, 29. Oktober 2015 15:10
An: beagl...@googlegroups.com
Antwort an: beagl...@googlegroups.com
Betreff: [beagleboard] Re: CAN BUS MCP2515 and dts labels
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/MxLBF4hOX4w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ferdinand Haselbacher

unread,
Oct 29, 2015, 2:09:58 PM10/29/15
to BeagleBoard, e1d...@hotmail.com
Hi Eric,

which Probles do you encounter?

Do you have mikrobus-capes or another cape/shield?

i can send you my working dts for Angstrom if you want to.

A good starting point for getting this stuff working (if you're not using a mikrobus/cape) is to check TowerTechs TT3201 dts files, that's where i started. Maybe you can post your dts files and i'll see what i can make.

For me it is definitly working.
so far,
Ferdinand

Mark K Cowan

unread,
Feb 15, 2017, 6:36:35 PM2/15/17
to BeagleBoard, e1d...@hotmail.com
Hi,

I'm currently trying to get MCP2515 working via SPI0.0.  I've written my device tree overlay and loaded it with BB-SPIDEV0, but it isn't working (error from dmesg below).  Please could you share/send your working DTS file?

mcp251x spi0.0: could not find pctldev for node /ocp/interrupt-controller@48200000, deferring probe

Thanks,
  Mark
Reply all
Reply to author
Forward
0 new messages