Jump to content

nightly Ubuntu 16.04.2 LTS 4.10.0-sun8i, spidev in userspace


Recommended Posts

Posted
Hi, 
 
How i can find information for set the fex file, kernel, etc. etc.
for use the spi in userspace?
 
root@orangepipc:~# uname -a
Linux orangepipc 4.10.0-sun8i #5 SMP Tue Feb 14 02:53:01 CET 2017 armv7l armv7l armv7l GNU/Linux
 
root@orangepipc:~# lsmod
Module                  Size  Used by
sun4i_codec            28243  3
rt2800usb              16226  0
sun8i_codec_analog     13766  1
rt2800lib              57122  1 rt2800usb
snd_soc_core          115473  2 sun4i_codec,sun8i_codec_analog
snd_pcm_dmaengine       4221  1 snd_soc_core
rt2x00usb               9245  1 rt2800usb
rt2x00lib              34437  3 rt2800lib,rt2800usb,rt2x00usb
mac80211              324953  3 rt2800lib,rt2x00lib,rt2x00usb
snd_pcm                70145  2 snd_pcm_dmaengine,snd_soc_core
input_leds              2724  0
ir_lirc_codec           4630  0
evdev                   9979  0
cfg80211              192770  2 rt2x00lib,mac80211
lirc_dev                8351  1 ir_lirc_codec
rfkill                 10928  3 cfg80211
sunxi_cir               3825  0
sun8i_ths               3134  0
cpufreq_dt              3522  0
thermal_sys            43232  2 cpufreq_dt,sun8i_ths
uio_pdrv_genirq         3354  0
uio                     8012  1 uio_pdrv_genirq
gpio_keys               8517  0
spidev                  6382  0
uas                    11678  0

orangepipc.fex

[spi0]
spi_used = 1
spi_cs_bitmap = 1
spi_mosi = port:PC00<3><default><default><default>
spi_miso = port:PC01<3><default><default><default>
spi_sclk = port:PC02<3><default><default><default>
spi_cs0 = port:PC03<3><1><default><default>

[spi1]
spi_used = 0
spi_cs_bitmap = 1
spi_cs0 = port:PA13<2><1><default><default>
spi_sclk = port:PA14<2><default><default><default>
spi_mosi = port:PA15<2><default><default><default>
spi_miso = port:PA16<2><default><default><default>

[spi_devices]
spi_dev_num = 1

[spi_board0]
modalias = "spidev"
max_speed_hz = 33000000
bus_num = 0
chip_select = 0
mode = 0
full_duplex = 1
manual_cs = 0

 

root@orangepipc:~# ls /dev/spi*
ls: cannot access '/dev/spi*': No such file or directory
 
i don't see in /dev any spidevx.0 device
 
 
armbianmonitor -u   -------------   http://sprunge.us/OCaP
 
 
 
 

 
Posted

You're using mainline kernel (4.10) so the fex is not used anymore.

 

You'll have to use some device tree overlays (search the forum for that)

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines