cubieplayer / Cubian

Debian for Cubieboard
http://cubian.org
271 stars 49 forks source link

Spidev on Cubiadoard1 not work. #353

Open miky2k opened 9 years ago

miky2k commented 9 years ago

I ask for add spidev as module in cubian relase.

But i try to add my self compiling last kernel in cubieboard1 , i add it frist as module and last as static linked, dmesg show spi working : 4.815774] [spi]: sw spi init !! [ 4.823042] [spi]: Found 1 spi devices in config files [ 4.834459] [spi]: boards num modalias max_spd_hz bus_num cs mode [ 4.845287] [spi]: spi_board0 irq gpio not used [ 4.856262] [spi]: 0 spidev 100000 1 0 0x0
[ 4.867183] [spi]: bus num = 0, spi used = 1 [ 4.877360] [spi]: source = sdram_pll_p, src_clk = 480000000, mclk 96000000 [ 4.888809] sun4i-spi sun4i-spi.0: registered master spi0 [ 4.899965] sun4i-spi sun4i-spi.0: master is unqueued, this is deprecated [ 4.913545] [spi]: allwinners SoC SPI Driver loaded for Bus SPI-0 with 2 Slaves attached [ 4.927908] [spi]: [spi-0]: driver probe succeed, base f1c05000, irq 10, dma_id 0!

but when i insert spidev (modprobe spidev) nothing happen no messages no error and no /dev/spixxxx devices!!!!

miky2k commented 9 years ago

I remove shared pin to gpio definition as needed , but i forgot that tv_out (that use PI12) in script.bin is enabled , now spidev appears!! My query to add spidev as module is confirmed ......

miky2k commented 9 years ago

default cubian script.fex contain wrong 3 pinmux , correct pinmux is 2 (010) as reported below.

spi_cs0 = port:PI10 2 default> default> default> spi_sclk = port:PI11 2 default> default> default> spi_mosi = port:PI12 2 default> default> default> spi_miso = port:PI13 2 default> default> default>