This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3358: SPI1 使用問題

Part Number: AM3358

Hi Sir,

請教SPI設定的問題

使用的SDK版本ti-processor-sdk-linux-am335x-evm-06.03.00.106

因為我們需要用到SPI 但是目前SPI0 PIN UART2I2C1 使用

所以我使用SPI1 我的作法是取用MIIPIN腳拿來使用

我參考了TI 的文件

http://software-dl.ti.com/processor-sdk-linux/esd/docs/latest/linux/Foundational_Components/Kernel/Kernel_Drivers/SPI.html

 

我的作法如下:

  1. 修改Device Tree 移除

Cpsw, davinci_mdio相關的PIN define

  1. 新增am335x-boneblack-spi1.dtsi (如附件)

參考AM335x ARM® CortexTm-A8 Microprocessors(MPUs).pdf

908h conf_mii1_col

90Ch conf_mii1_crs

910h conf_mii1_rx_er

944h conf_mii1_ref_clk

設定pinmux

  1. Kernel Config 移除Device Drivers à Network device support à Ethernet driver support à Texas Instruments (TI) devices

 

我可以build kernel 並且有生出 spidev node 使用 spidev_test 測試也沒出現問題

但是使用示波器量測波形卻不是預期

接上Clock 跟 MOSI

想請問是不是還有其他設定沒做到或是device tree 有需要修改的地方?

謝謝

Daniel