Project

General

Profile

Activity

From 04/23/2017 to 05/22/2017

05/22/2017

BW 07:59 PM Software Development: RE: Altera spi
Dan,
I compiled the rel_socfpga-4.1.33-ltsi-rt_17.05.01_pr branch of the kernel form altera open source. I replaced the config file with the mitysom5csx_devkit_defconfig. I am having trouble with the DTS. When using the dts you provided...
Brian Wentworth

05/20/2017

GC 08:01 AM Software Development: Virtual SPI device setup and access using spidev - Altera Cyclone V case
Ref: <similar message in ARM9 Based Platforms Forum> https://support.criticallink.com/redmine/boards/10/topics/5285
Hi all,
I'm using a MitySOM-5CSX Altera SOCFPGA Cyclone V board with kernel version 3.16.0-g9cf65cd-dirty and files...
Gianni Casonato

05/19/2017

DV 05:41 PM Software Development: RE: Altera spi
Brian,
Trying to avoid a board spin is fully understandable. Yes, you should be able to use that kernel on the mitysom without too much pain. It looks like in the 4.1 kernel there were updates to spidev so that might be why that versi...
Daniel Vincelette
BW 05:20 PM Software Development: RE: Altera spi
Dan,
I got the Altera spi working on a DE0 nano board with the latest rt kernel form altera : rel_socfpga-4.1.33-ltsi-rt_17.05.01_pr. Is it possible to uses this kernel on the mitysom? If not the above solution is possible just will r...
Brian Wentworth
DV 03:47 PM Software Development: RE: Altera spi
Brian,
I'm sorry for the delay. I've been able to recreate your issue and after looking around Altera's spi kernel driver it looks like its fairly bare on features. The NULL pointer is because the driver doesn't set the setup_transfer...
Daniel Vincelette

05/15/2017

BW 12:23 PM Software Development: RE: Altera spi
Dan,
Sorry for the delay. I've been out of town. Here is the c file that I was using to test the spi.
Thanks,
Brian
Brian Wentworth

05/10/2017

DV 03:27 PM Software Development: RE: Altera spi
Brian,
Would you mind posting your updated spi_test.c? I'll see if I can recreate what you're seeing on my dev kit.
Thanks,
Dan
Daniel Vincelette

05/09/2017

BW 06:46 PM Software Development: RE: Altera spi
Thanks Dan,
This cleared up the errors on the DTB. I have tried to run the spi_test.c provided in a different post and still get the Unable to handle kernel NULL pointer dereference at virtual address 00000000. I'm not sure if it's a pr...
Brian Wentworth

05/08/2017

DV 06:18 PM Software Development: RE: Altera spi
Hi Brian,
Sorry you'll also have to set #size-cells to 0x0 for the altera spi driver nodes, this info was taken from here: https://support.criticallink.com/gitweb/?p=linux-socfpga.git;a=blob;f=Documentation/devicetree/bindings/spi/spi...
Daniel Vincelette
BW 05:11 PM Software Development: RE: Altera spi
I'm still getting the same error. Brian Wentworth
DV 04:57 PM Software Development: RE: Altera spi
Hi Brain,
Sorry for the delay. Looking at the warnings you're getting from the critical link toolchain you need to set the #address-cells to 1.
For example:
Daniel Vincelette
BW 01:24 PM Software Development: RE: Altera spi
I was able to comply the DTB using a tool chain from rocketboards and a spi device showed up under /dev/spidev. Writing to this device crashes Linux and gives me the following error:
Unable to handle kernel NULL pointer dereference at v...
Brian Wentworth

05/02/2017

BW 07:59 PM Software Development: RE: Altera spi
Thanks for the reply. I have updated the dts and I'm getting the following warnings:
Warning (reg_format): "reg" property in /soc/bus@0ff200000/spi@0x0060/device@0 has invalid length (4 bytes) (#address-cells == 2, #size-cells == 0)
...
Brian Wentworth
MW 02:54 PM Software Development: RE: Altera spi
Hi Brian,
Are you trying to use the device from user space with the spidev driver? If so, then you need to fix the device tree to use:
Michael Williamson

05/01/2017

BW 02:48 PM Software Development: Altera spi
I am trying to use an altera spi as a master. I have enabled the driver in the kernel and added the device to the DTB. No spi devices show up under /dev. I have been looking into using to the sysfs interface but I'm not sure if this is t... Brian Wentworth
 

Also available in: Atom