大家好,我们想使用三线spi就是CS_DAta_CLK三条线,看到8107上所说的三线是把4个通道的片选线拉低了,也就是只支持单个器件使用,可以配置我们CS_DAta_CLK所说的三线吗?谢谢给出点建议。
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.
大家好,我们想使用三线spi就是CS_DAta_CLK三条线,看到8107上所说的三线是把4个通道的片选线拉低了,也就是只支持单个器件使用,可以配置我们CS_DAta_CLK所说的三线吗?谢谢给出点建议。
你好,
SPI说三线,通常是是不包含CS的,是下面的的三个信号:
你现在要接的spi设备是什么,能否给出具体的时序要求?
谢谢你的回答,我现在接的是lcd,只有cs scl scd三根线,我配置如下
struct spi_board_info __initdata ti810x_spi_slave_info[] = {
{
.modalias = "dm385-lcd",
.platform_data = NULL,
.controller_data = &ti810x_spi0_cfg,
.mode = SPI_MODE_0,
.irq = -1,
.max_speed_hz = 24000000,
.bus_num = 1,
.chip_select = 0,//链接到 CS0 G29
},
};
max_speed_hz 也尝试了1M和48M,观察到cs和时钟上有波形,打印spi寄存器值发现tx 寄存器,也是我写入的值(尝试不同数值),rx寄存器始终是0xff。