我使用的是 Xavier AGX,在启动时我在 dmesg 上发现了以下输出:
[ 0.963531] mc-err: mcerr ops are set to t19x
[ 0.971308] iommu: Adding device 2600000.dma to group 57
[ 0.978632] GPIO line 490 (pcie-reg-enable) hogged as output/high
[ 0.978710] GPIO line 289 (pcie-reg-enable) hogged as output/high
如何在设备树(tegra194-p2888-0000-a00.dtsi)中写成:
gpio@2200000 {
pcie-reg-enable {
gpio-hog;
gpios = <TEGRA194_MAIN_GPIO(Z, 2) GPIO_ACTIVE_HIGH
TEGRA194_MAIN_GPIO(A, 1) GPIO_ACTIVE_LOW>;
label = "pcie-3v3-reg", "pcie-12v-reg";
output-high;
status = "okay";
};
Dtc 解码 (/boot/dtb/tegra194-p2888-0001-p2822-0000.dtb) 给出:
pcie-reg-enable {
gpio-hog;
gpios = <0xca 0x0 0x1 0x1>;
label = "pcie-3v3-reg", "pcie-12v-reg";
output-high;
status = "okay";
};
我很困惑为什么两者的输出都设置为 HIGH ?是不是一低一高?PS:我对设备树不熟悉,请帮助我。