• Recent
    • Docs
    • Github
    • 百度网盘
    • Onedrive
    • Official
    • Shop
    • Register
    • Login

    SPI

    Scheduled Pinned Locked Moved Pi 4B
    6 Posts 2 Posters 791 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      happyday
      last edited by

      RK3588可以通过DMA进行SPI通信吗

      G 1 Reply Last reply Reply Quote 0
      • G
        george @happyday
        last edited by

        @happyday
        参考如下文档。
        Rockchip_Developer_Guide_Linux_SPI_CN.pdf

        H 1 Reply Last reply Reply Quote 0
        • H
          happyday @george
          last edited by

          @george 抱歉这个我不太理解,我想利用DMA实现SPI数据传输,可以提供一下数据手册和驱动APIA文档吗

          G 1 Reply Last reply Reply Quote 0
          • G
            george @happyday
            last edited by

            @happyday
            这个文档已经写的很清楚了,SPI的DMA部分跟传输的字节长度有关系的,单次传输64字节以上的数据就会开启DMA传输。linux标准的SPI驱动框架,不知道你是要做设备驱动还是应用层直接访问?
            037de3a0-222f-4c9a-b414-5ea115581c65-image.png

            H 2 Replies Last reply Reply Quote 0
            • H
              happyday @george
              last edited by

              @george 就是我现在的设备,在单次传输超过64字节以后,会自动开启DMA吗

              1 Reply Last reply Reply Quote 0
              • H
                happyday @george
                last edited by

                @george f6f20523-e3f9-4469-a03f-6db9b80bc62d-image.png

                我是做SPI设备驱动,但是默认情况下Master端不打开DMA,我也测试了。如何设置为master mode呢?

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post