主题中讨论的其他器件:AM3352
工具/软件:Linux
您好!
我们尝试将 MCP2515连接到 MCSPI4、其中 D0为输出、D1为输入。 我可以看到有 CLK、CS、MOSI 和 MISO、但 mcpsi 控制器驱动程序始终从 MISO 读取值0x0。
只需添加一点、我已正确配置了引脚多路复用器。
谢谢、
--
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.
您好!
以下是我的 DT:
SPI 引脚多路复用:
pinmux_SPI4{
pinctrl-single、pins =<
0x60 0x40008 /* SPI4_SCLK (GPMC_A8)*/
0x64 0x40008 /* SPI4_D1 (GPMC_A9) MISO *
0x68 0x10008 //* spi3_d0 (GPMC_A10) MOSI *
0x6c 0x20008 // SPI4_cs0 (GPMC_A11)*/
>;
linux、phandle =<0x181>;
相位=<0x181>;
};
SPI 节点:
SPI@480ba000{
兼容="ti、omAP4-mcspi";
reg =<0x480ba000 0x200>;
中断=<0x0 0x2b 0x4>;
#address-cells =<0x1>;
大小单元格=<0x0>;
ti、hwmids ="mcspi4";
TI、SPI-num-cs =<0x1>;
DMA =<0xc9 0x46 0xc9 0x47>;
TI、pidd-d0-out-d1-in;
dma-names ="tx0"、"rx0";
状态="正常";
pinctrl-names ="default";
pinctrl-0 =<0x181>;
CAN3@0{
兼容="微芯片、MCP2515";
SPI-max-frequency =<10000000>;
SPI-Cs-HIGH;
reg =<0>;
中断父级=<0xc5>;
中断=<18 0x2>;
时钟=<0x400>;
};
};
谢谢、
-Mike