From: "Rost, Martin" <Martin.Rost@tonfunk.de>
To: "linux-can@vger.kernel.org" <linux-can@vger.kernel.org>
Subject: RE: SocketCAN on Intel Edison with MCP 2515
Date: Thu, 28 May 2015 05:22:27 +0000 [thread overview]
Message-ID: <2E9F00CBB66AB544A1ACDC59627518BA8A211EAB@mailserver> (raw)
In-Reply-To: <CAKa_yg_Lrpw7J70UzJf5x2EeB6mrmbFarxgbYCf+xHyD8Nb2eQ@mail.gmail.com>
Hi,
> However, can0 is not recognized:
>
> can0: ERROR while getting interface flags: No such device
>
> One thing I am confused about is how the socketCAN drivers know which
> SPI bus to use? I see that this information is provided in the
> bcm2708.c source file for the RPI_CANBUS
> (http://www.elinux.org/RPi_CANBus) project in the config_spi function.
> Is there something similar I would need to do?
>
Well, I don't know about Yocto or the RPI, but on our Tegra t30 we have a
board file arch/arm/mach_tegra/board-colibri_t30.c which contains:
static struct mcp251x_platform_data mcp251x_pdata = {
.board_specific_setup = colibri_t20_mcp2515_setup,
.oscillator_frequency = 16000000,
.power_enable = NULL,
.transceiver_enable = NULL
};
static struct spi_board_info mcp251x_board_info[] = {
{
.bus_num = 0,
.chip_select = 0,
.max_speed_hz = 10000000,
.modalias = "mcp2515",
.platform_data = &mcp251x_pdata,
},
};
You probably want to use .bus_num=4 or 5.
> #SSP5_RXD
> #SSP5_CLK
> #SSP5_TXD
> #SSP5_CS
For us, these are configured in arch/arm/mach_tegra/board-colibri_t30-pinmux.c
> So in short I think something is breaking in my SPI communication
> configuration but I'm not sure exactly where to start. Anything you
> could do to point me in the right direction towards the appropriate
> documentation would be appreciated.
Maybe that's how it works in Yocto, too?
Regards,
M.
next prev parent reply other threads:[~2015-05-28 5:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-27 15:18 SocketCAN on Intel Edison with MCP 2515 Michael Gallagher
2015-05-28 5:22 ` Rost, Martin [this message]
2015-05-28 8:19 ` Tom Evans
2015-07-26 10:05 ` John Whitmore
2015-07-23 12:32 ` Chris
2015-07-26 10:54 ` John Whitmore
2015-08-25 14:49 ` Rosemarie Sheehy
2015-08-26 4:54 ` Tom Evans
-- strict thread matches above, loose matches on Subject: below --
2015-08-26 10:31 AW: " Michael Luxen
2015-08-26 10:36 ` Rosemarie Sheehy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2E9F00CBB66AB544A1ACDC59627518BA8A211EAB@mailserver \
--to=martin.rost@tonfunk.de \
--cc=linux-can@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox