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.

[参考译文] AM4372:SPI2 MISO 获取 0 数据

Guru**** 2535750 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1566723/am4372-spi2-miso-getting-0-data

部件号:AM4372


工具/软件:

您好、  

使用 SPI2 与 ADC 通信。 连接的示波器。 我们也可以在示波器上看到片选、SCLK、MOSI、MISO。

但 MISO 数据读数为 0。

&SPI2{
状态=“正常“;
pinctrl-names =“default";“;
pinctrl-0 =<&myspi2_pins_default>;
TI、spi-num-cs =<2>;
TI、pindir-d0-in-D1-out;//<--强制 D0 作为 MISO、D1 作为 MOSI

#address-cells =<1>;
#size-cells =<0>;

spidev@0{
compatible =“Rohm、dh2228fv“;
reg =<0>;//芯片选择 0
SPI-max-frequency =<40000000>;
};

Spidev@1{
compatible =“Rohm、dh2228fv“;
reg =<1>;//芯片选择 1
SPI-max-frequency =<40000000>;
};
};

根据硬件、器件文件正确无误。 SPI0 运行良好、SPI2 存在 MISO 读取问题

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Supriyo:您能否共享 SPI0 和 SPI1 的 pinmux 配置? 此外、请确保任何其他器件树节点都不会声明用于其他功能的相同物理焊球/引脚。

    谢谢您、

    Paula