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.

am3352 部分引脚常高 在sysfs中配置输出输入拉高拉低 引脚都为高电平



引脚有1-13  1-14 1-15    0-23 0-27    其他地方应该没有对这些引脚进行注册 ,, 请问有遇到过这样的情况么??或者有什么建议

  • 这些pin都集中在GPMC 8位后面的这一段   板载nand只使用了AD0 - AD7  8位   设备树也检查过了还有什么地方疏忽了么??linux  版本

    Linux 4.14.79-ge669d52447   uboot  2018.01

  • 请问这些管脚在设备树里的pinmux是怎么配置的?
  • 这些引脚在设备树均没有任何相关的pin_mux.未进行任何相关注册 和一些其他的未注册的gpio同样测试时 这些引脚一直是常高,layout检查过了应该没有问题,还有什么可能性
  • 默认时配置成GPIO管脚功能的,看一下uboot里是否有对管脚进行操作。

    另外,如果上电后,不跑任何程序,gpio管脚电平也是高吗?
  • 不跑任何程序的时候 是低的 感谢,经测试是由于模式的错误 我默认没有对gpio配置的 由于设备树里面也没有描述gpio
    的模式,可能以至于gpio的寄存器处于mode0 模式 在uboot中复现该情况时候,使用命读出寄存器 更改模式后 即可已操作

    => md 0x44e10834
    44e10834: 00000030 00000030 00000030 00000008 0...0...0.......
    44e10844: 00000008 00000008 00000008 00000008 ................
    44e10854: 00000008 00000008 00000008 00000008 ................
    44e10864: 00000008 00000008 00000008 00000030 ............0...
    44e10874: 00000017 00000008 00000010 00000037 ............7...
    44e10884: 00000037 00000037 00000030 00000000 7...7...0.......
    44e10894: 00000000 00000000 00000000 0000002f ............/...
    44e108a4: 0000002f 0000002f 0000002f 0000002f /.../.../.../...
    44e108b4: 0000002f 0000002f 0000002f 0000002f /.../.../.../...
    44e108c4: 0000002f 0000002f 0000002f 0000002f /.../.../.../...
    44e108d4: 0000002f 0000002f 0000002f 00000027 /.../.../...'...
    44e108e4: 00000027 00000027 00000027 00000030 '...'...'...0...
    44e108f4: 00000030 00000030 00000030 00000030 0...0...0...0...
    44e10904: 00000030 00000027 00000021 00000021 0...'...!...!...
    44e10914: 00000001 00000027 00000027 00000027 ....'...'...'...
    44e10924: 00000001 00000001 00000027 00000027 ........'...'...


    => mw.l 0x44e10834 00000027
    => md 0x44e10834
    44e10834: 00000027 00000030 00000030 00000008 '...0...0.......
    44e10844: 00000008 00000008 00000008 00000008 ................
    44e10854: 00000008 00000008 00000008 00000008 ................
    44e10864: 00000008 00000008 00000008 00000030 ............0...
    44e10874: 00000017 00000008 00000010 00000037 ............7...
    44e10884: 00000037 00000037 00000030 00000000 7...7...0.......
    44e10894: 00000000 00000000 00000000 0000002f ............/...
    44e108a4: 0000002f 0000002f 0000002f 0000002f /.../.../.../...
    44e108b4: 0000002f 0000002f 0000002f 0000002f /.../.../.../...
    44e108c4: 0000002f 0000002f 0000002f 0000002f /.../.../.../...
    44e108d4: 0000002f 0000002f 0000002f 00000027 /.../.../...'...
    44e108e4: 00000027 00000027 00000027 00000030 '...'...'...0...
    44e108f4: 00000030 00000030 00000030 00000030 0...0...0...0...
    44e10904: 00000030 00000027 00000021 00000021 0...'...!...!...
    44e10914: 00000001 00000027 00000027 00000027 ....'...'...'...
    44e10924: 00000001 00000001 00000027 00000027 ........'...'...
    => gpio set 45
    gpio: pin 45 (gpio 45) value is 1
    => gpio clear 45
    gpio: pin 45 (gpio 45) value is 0