|
各位大神求助一下,目前有 3 個問題!
1. 我改了 fex , 在系統中也看到的 /dev/spidev0.0 但是我的 spi 訊號一直量測不到!
2. 我看了開機的 log ,但是我發現怎麼和網上看到的有的不一樣!- [spi]: sw spi init !!
- [spi]: Found 1 spi devices in config files
- [spi]: boards num modalias max_spd_hz bus_num cs mode
- [spi]: spi_board0 irq gpio not used
- [spi]: 0 spidev 12000000 0 0 0x0
- [spi]: bus num = 0, spi used = 1
- [spi]: source = sdram_pll_p, src_clk = 360000000, mclk 90000000
- <7>sun4i-spi sun4i-spi.0: registered master spi0
- <6>sun4i-spi sun4i-spi.0: master is unqueued, this is deprecated
- <7>spi spi0.0: setup mode 0, 8 bits/w, 12000000 Hz max --> 0
- <7>sun4i-spi sun4i-spi.0: registered child spi0.0
- [spi]: allwinners SoC SPI Driver loaded for Bus SPI-0 with 0 Slaves attached
- [spi]: [spi-0]: driver probe succeed, base f1c17000, irq 12, dma_id 2!
复制代码 但是我看有的人是,沒有 "sun4i-spi sun4i-spi.0: master is unqueued, this is deprecated" 這一句,是否就是因為這樣,我才會有 spi 訊號出不來的問題! - [ 1.750000] [spi]: sw spi init !!
- [ 1.760000] [spi]: Found 1 spi devices in config files
- [ 1.770000] [spi]: boards num modalias max_spd_hz bus_num cs mode
- [ 1.780000] [spi]: 0 spidev 200000 0 0 0x0
- [ 1.790000] [spi]: bus num = 0, spi used = 1
- [ 1.800000] [spi]: source = sdram_pll_p, src_clk = 480000000, mclk 96000000
- [ 1.820000] sun4i-spi sun4i-spi.0: registered master spi0
- [ 1.820000] spi spi0.0: setup mode 0, 8 bits/w, 200000 Hz max --> 0
- [ 1.840000] sun4i-spi sun4i-spi.0: registered child spi0.0
- [ 1.850000] [spi]: allwinners SoC SPI Driver loaded for Bus SPI-0 with 1 Slaves attached
- [ 1.860000] [spi]: [spi-0]: driver probe succeed, base e88b8000, irq 10, dma_id 0!
复制代码 3. 我使用 echo 測試 spidev ,但是若是超過 64字節,系統就會報錯?- root@linaro-ubuntu-desktop:/dev# echo "12345678901234567890123456789013245678901
- 2345678901234567890123" > spidev0.0
- root@linaro-ubuntu-desktop:/dev# echo "12345678901234567890123456789013245678901
- 23456789012345678901234" > spidev0.0
- [spi]: /home/evb/evb_allwinner/sunxi-bsp/linux-sunxi/drivers/spi/spi_sunxi.c(L583) unknow dma direction = 0
复制代码 請問要如何解決這 3 問題呀! 我搞了一個多星期了! 各位大神幫下忙呀!
|
|