Navigation

    全志在线开发者论坛

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

    D1-H 使能spi0和spi1的问题

    D1系列-RISC-V
    2
    2
    294
    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.
    • L
      lbuque LV 4 last edited by

      板卡: Lichee 86 Panel
      OS: Tina

      问题:

      spi0和spi1均无法枚举到设备节点

      d94e03a7-d485-42ff-bc7e-4bf3586b842d-image.png

      对dts修改如下:

      project device/config/chips/d1-h/
      diff --git a/configs/nezha/linux-5.4/board.dts b/configs/nezha/linux-5.4/board.dts
      index 963aa17..199cb62 100755
      --- a/configs/nezha/linux-5.4/board.dts
      +++ b/configs/nezha/linux-5.4/board.dts
      @@ -1065,7 +1065,7 @@ tvd_row*tvd_column is the total tvd channel number to be used in multichannel mo
              spi_slave_mode = <0>;
              spi0_cs_number = <1>;
               spi0_cs_bitmap = <1>;
      -       status = "disabled";
      +       status = "okay";
       
              spi-nand@0 {
                      compatible = "spi-nand";
      @@ -1086,7 +1086,7 @@ tvd_row*tvd_column is the total tvd channel number to be used in multichannel mo
              spi1_cs_number = <1>;
              spi1_cs_bitmap = <1>;
              spi_dbi_enable = <1>;
      -       status = "disabled";
      +       status = "okay";
       
              spi_board1@0 {
                      device_type = "spi-dbi";
      diff --git a/configs/nezha/linux-5.4/config-5.4 b/configs/nezha/linux-5.4/config-5.4
      index 87ab49e..0837a61 100644
      --- a/configs/nezha/linux-5.4/config-5.4
      +++ b/configs/nezha/linux-5.4/config-5.4
      @@ -1681,7 +1681,7 @@ CONFIG_I2C_SUNXI=y
       
       # CONFIG_I3C is not set
       CONFIG_SPI=y
      -# CONFIG_SPI_DEBUG is not set
      +CONFIG_SPI_DEBUG=y
       CONFIG_SPI_MASTER=y
       # CONFIG_SPI_MEM is not set
      

      7aaacd94-51f5-4f86-be0c-8c32b92356bf-image.png

      1b337507-9b9f-4279-818d-c9a4a27016a7-image.png

      W 1 Reply Last reply Reply Quote Share 0
      • W
        whycan晕哥 LV 9 @lbuque last edited by

        @lbuque
        驱动要配置SPI 导出User Interface。

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

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

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