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

问题描述 投票:0回答:1

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

在Stretch上,这可以通过config.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。有一个@ p1引脚但在videcore {}部分内部。

谢谢。

raspberry-pi3 gpio
1个回答
0
投票

[来自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"; };
© www.soinside.com 2019 - 2024. All rights reserved.