spi doesn't work

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

spi doesn't work

938件の閲覧回数
hamzadardour
Contributor II

Hi everyone,

I try to enable the spi, and I configured the file that allow to enbale the spi for my board (mars board) 'board-mx6q_marsboard.c',spidev is loaded ( verified with lsmod ) and I can find the spidepv2.0 in the /dev folder, but I have no signal on the clk and the MOSI, when I try to use it with ( echo 121 >/dev/spidev2.0 )

this is the modification that I have made in the file '~/linux-imx/arch/arm/mach-mx6

/board-mx6q_marsboard.c'  to enable the spi  :

/*****************************************************/

/* ECSPI3*/

    MX6Q_PAD_DISP0_DAT2__ECSPI3_MISO,

    MX6Q_PAD_DISP0_DAT1__ECSPI3_MOSI,

    MX6Q_PAD_DISP0_DAT0__ECSPI3_SCLK,

    MX6Q_PAD_DISP0_DAT4__GPIO_4_25,

/*****************************************************/

static int mx6q_marsboard_spi2_cs[] = {

        MX6Q_MARSBOARD_ECSPI3_CS0,

};

static const struct spi_imx_master mx6q_marsboard_spi2_data __initconst = {

        .chipselect     = mx6q_marsboard_spi2_cs,

        .num_chipselect = ARRAY_SIZE(mx6q_marsboard_spi2_cs),

};

/*****************************************************/

{

        .modalias = "spidev",

        .max_speed_hz = 20000000,

        .bus_num = 2,

        .chip_select = 0,

        .mode =SPI_MODE_1,

        .platform_data = &imx6_marsboard__spi_flash_data,

    },

/*****************************************************/

Please help me,

ラベル(4)
0 件の賞賛
返信
0 返答(返信)