使用 dt-blob.dts 配置 GPIO 引脚时,pin@pxx对应于 40 引脚标头上的 #12



My Raspberry Pi 3B运行Jessie-Lite。我想将物理引脚 12/BCM 引脚 18/布线 Pi 引脚 1 配置为输出,设置为低电平。

在拉伸上,这可以通过配置轻松完成.txt GPIO=18=OP,DL

在以前的版本中,这显然是通过编辑dt-blob.dts文件(https://www.raspberrypi.org/documentation/configuration/pin-configuration.md(来完成的。

但是,在pins_3b1或pins_3b2(Pi 3 B(部分中,我找不到与目标引脚(物理引脚12/BCM引脚18/布线Pi引脚1(相对应的参考。没有pin@p12或pin@p18。有一个pin@p1,但在videcore {}部分内。

谢谢。

[从 https://www.raspberrypi.org/forums/viewtopic.php?f=107&t=237796&p=1453560#p1453560]

dt-blob 并不意味着列出所有引脚 - 仅列出具有特定功能且需要非默认值的引脚。如果要将 dt-blob 中的 GPIO18 初始化为驱动低电平的输出,则需要添加如下内容:

pin@p18 { function = "output"; startup_state = "active"; termination = "no_pulling"; polarity = "active_low"; };

最新更新