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.

[参考译文] AM625:如何为 McSPI 启用 DMA

Guru**** 2540720 points


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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1223699/am625-how-to-enable-dma-for-mcspi

器件型号:AM625

如何使用最新的 Linux SDK 在.dts 中为 McSPI 启用 DMA?

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

    尊敬的 Tony:

    您应该能够根据的 AM64x DTS 条目、将其建模为 AM62x  main_spi0 可以在 git.ti.com/.../k3-am64-main.dtsi

    	main_spi0: spi@20100000 {
    		compatible = "ti,am654-mcspi", "ti,omap4-mcspi";
    		reg = <0x00 0x20100000 0x00 0x400>;
    		interrupts = <GIC_SPI 172 IRQ_TYPE_LEVEL_HIGH>;
    		#address-cells = <1>;
    		#size-cells = <0>;
    		power-domains = <&k3_pds 141 TI_SCI_PD_EXCLUSIVE>;
    		clocks = <&k3_clks 141 0>;
    		dmas = <&main_pktdma 0xc300 0>, <&main_pktdma 0x4300 0>;
    		dma-names = "tx0", "rx0";
    	};

    这就是添加 DMA 兼容 DMA 名称  属性。 请注意、对于之外的主 SPI 接口 main_spi0 您需要 相应地更新 PSI-L 源和目标线程 ID。 表示  main_spi0 它们碰巧对于 AM62x 和 AM64x 是相同的、因此上述示例应按原样应用。 有关其他主 SPI 接口的信息、请参见 https://software-dl.ti.com/tisci/esd/latest/5_soc_doc/am62x/psil_cfg.html 上《TISCI 用户指南》中的相应表格。查找  pdma_main*_mcspi1_rx pdma_main*_mcspi0_tx 并相应地更新 DTS 节点。

    此致、Andreas