Navigation

    全志在线开发者论坛

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

    关于T113-i的核心板GPIO号查询和/sys/class/spidev目录下找不到设备

    创龙科技专区
    3
    4
    2318
    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.
    • D
      ddrddr LV 5 last edited by

      关于T113-i的核心板,我有2个问题请教:

      1、各个引脚对应的GPIO号如何查询,第49脚(U1/<PE1/NCSI0_VSYNC/UART2_CTS/TWI1_SDA/LCD0_VSYNC/RGMII_RXD0/RMII_RXD0/PE_EINT1>/3V3)我想拉高。

      2、在/sys/class/spidev目录下找不到设备,是spi驱动没做吗,还是我需要进行什么操作才会显示设备?

      A 1 Reply Last reply Reply Quote Share 1
      • bayche
        bayche LV 6 last edited by

        gpio可以用/sys/class/gpio/export导出对应引脚文件后操作,spidev需要添加驱动到设备文件dts里

        1 Reply Last reply Reply Quote Share 0
        • A
          Asoul_Ava LV 5 @ddrddr last edited by

          @ddrddr GPIO编号可以计算出来:比如说<PE10>,因为E是第5个字母,所以GPIO编号=(5-1)× 32 + 10 = 138 。你现在要的49脚,PE1那就是 4X32+1 = 129

          A 1 Reply Last reply Reply Quote Share 0
          • A
            Asoul_Ava LV 5 @Asoul_Ava last edited by

            @asoul_ava 当然,这个+10还是+多少还得看自己板子的文件

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

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

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