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.

Linux/AM4379: McSPI configuration error

Part Number: AM4379

Tool/software: Linux

Hi:

 I am using a am4379 processor,  I want to use spi2 spi3 and spi4 interface,

The tools that I am using:

ti-processor-sdk-linux-am437x-evm-01.00.00.03

linux-3.14.43

and i had config those interface in am4379-gp-evm.dts:

spi2_pins_default: spi2_pins_default {
pinctrl-single,pins = <
0x260 ( PIN_OUTPUT | MUX_MODE0 ) /* (N20) spi2_sclk.spi2_sclk */
0x264 ( PIN_OUTPUT | MUX_MODE0 ) /* (P22) spi2_d0.spi2_d0 */
0x268 ( PIN_INPUT | MUX_MODE0 ) /* (P20) spi2_d1.spi2_d1 */
0x26c ( PIN_OUTPUT | MUX_MODE0 ) /* (T23) spi2_cs0.spi2_cs0 */
>;
};

spi3_pins_default: spi3_pins_default {
pinctrl-single,pins = <
0x1f4 ( PIN_OUTPUT | MUX_MODE2 ) /* (AE22) cam1_data3.spi3_sclk */
0x1e8 ( PIN_OUTPUT | MUX_MODE2 ) /* (AB20) cam1_data0.spi3_d0 */
0x1ec ( PIN_INPUT | MUX_MODE2 ) /* (AC21) cam1_data1.spi3_d1 */
0x1f0 ( PIN_OUTPUT | MUX_MODE2 ) /* (AD21) cam1_data2.spi3_cs0 */
>;
};

spi4_pins_default: spi4_pins_default {
pinctrl-single,pins = <
0x250 ( PIN_OUTPUT | MUX_MODE0 ) /* (P25) spi4_sclk.spi4_sclk */
0x254 ( PIN_OUTPUT | MUX_MODE0 ) /* (R24) spi4_d0.spi4_d0 */
0x258 ( PIN_INPUT | MUX_MODE0 ) /* (P24) spi4_d1.spi4_d1 */
0x25c ( PIN_OUTPUT | MUX_MODE0 ) /* (N25) spi4_cs0.spi4_cs0 */
>;
};


&spi2{
pinctrl-0 = <&spi2_pins_default>;
status = "okay";
pinctrl-names = "default"; 
spi@0{
//compatible = "spidev";
compatible = "rohm,dh2228fv";
spi-max-frequency = <48000000>; 
reg = <0>; /* CS0 */

};
};


&spi3{
pinctrl-0 = <&spi3_pins_default>;
status = "okay";
pinctrl-names = "default";
spi@0{
//compatible = "spidev";
compatible = "rohm,dh2228fv"; 
spi-max-frequency = <48000000>;
reg = <0>; /* CS0 */ 
};
};


&spi4{ 
pinctrl-0 = <&spi4_pins_default>;
status = "okay";
pinctrl-names = "default";

spi@0{
//compatible = "spidev";
compatible = "rohm,dh2228fv"; 
spi-max-frequency = <48000000>;
reg = <0>; /* CS0 */ 
};
};

but after i compile the kernel and star form microSD,see logs find :

[ 1.244143] of_dma_request_slave_channel: dma-names property of node '/ocp/spi@481a4000' missing or empty
[ 1.253890] spi spi2.0: not using DMA for McSPI
[ 1.259556] of_dma_request_slave_channel: dma-names property of node '/ocp/spi@48345000' missing or empty
[ 1.269282] spi spi3.0: not using DMA for McSPI

and open /dev find :

mtd5ro  spidev1.0   tty46  ga_arbiter
mtd6     spidev2.0   tty47   watchdog
mtd6ro spidev3.0   tty48   watchdog0
mtd7     stderr         tty49   zero

there are exists 3 spi devices, but in the logs only spi2.0 spi3.0 not using DMA for MCSPI,  why? is something wrong when i config the .dts?

who can help me ,thanks