Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    请问D1怎么才能通过命令行动态给SPI调速?

    D1系列-RISC-V
    spi调速 spi d1
    2
    3
    144
    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.
    • U
      ubuntu LV 6 last edited by

      https://stackoverflow.com/questions/57262938/is-there-a-shell-command-can-change-spi-clock-for-raspberry-pi-zero

      echo -ne "\x06\x04" > /sys/class/spi_master/spi0/of_node/spi-max-frequency

      请问D1怎么才能通过命令行动态给SPI调速?

      这里 /sys/class/spi_master/ 下面啥文件也没有:

      root@TinaLinux:/# ls /sys/class/spi_master/
      root@TinaLinux:/#
      
      1 Reply Last reply Reply Quote Share 0
      • M
        memory LV 7 last edited by

        root@TinaLinux:/# hexdump  /sys/firmware/devicetree/base/soc@3000000/spi@4025000
        /spi-nand@0/spi-max-frequency
        0000000 f505 00e1
        0000004
        root@TinaLinux:/#
        

        只找到这个节点,而且只读,不能写。

        1 Reply Last reply Reply Quote Share 0
        • U
          ubuntu LV 6 last edited by

          是呀,我也发现了。

          https://community.toradex.com/t/imx8x-max-frequency-of-spidev/10970

          小飞的也可以重设SPI速率

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

          Copyright © 2022 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

          行为准则 | 用户协议 | 隐私权政策