自製Nvidia orin nano修改pinmux,GPIO沒有改變

你好,我有一塊Nvidia orin nano 4G,我有一個指撥開關連接 PZ.07、PY.04、PH.07、PI.02、PI.01、PI.00 6個GPIO。我修改Pinmux並由QSPI燒錄依然沒有開關變化。
請問我修改Pinmux的方式是否正確?

1.我過Pinmux_Config_Template.xlsm
圖片
產生3個檔案,但只有修改下面檔案,藉由QSPI燒入。
tegra234-mb1-bct-pinmux-p3767-dp-a03.txt (65.8 KB)

2.由下方指令燒錄
sudo ./flash.sh -c bootloader/t186ref/cfg/flash_t234_qspi.xml jetson-orin-nano-devkit internal

3.撥動指撥開關,由下方指令確認GPIO狀態
sudo cat /sys/kernel/debug/gpio
GPIO都沒有改變,下圖為其中一根PZ.07狀態
圖片

hello liyongru1998,

may I confirm the Jetpack release version you’re working with.
according to the file path, it is JP-5.x release version, right?
besides, please see-also Topic 301630 for the steps to apply pinmux configuration.

你好,我使用的Jetpack版本是5.1.2。

好的,我試試看

我的作法是
pinmux產生的pinmux.dtsi有更改的地方直接在jetson-orin-nano-devkit.conf內指定的檔案修改
圖片
pinmux產生的gpio.dtsi跟內部的比對沒有改變

執行燒錄指令
sudo ./flash.sh -c bootloader/t186ref/cfg/flash_t234_qspi.xml jetson-orin-nano-devkit internal

我看燒錄指令與p3701.conf.common並無關聯,是要用其他燒入指令嗎?

hello liyongru1998,

please give it another try to alter the pin via sysnode,
for instance,

$ echo 485 > /sys/class/gpio/export
$ cd /sys/class/gpio/PZ.07
$ echo out > direction
$ cat value # change value and check.


我將echo out > direction out 改成 in
我嘗試切換開關數值依舊為0,GPIO那端電壓為1V
下圖是指撥開關電路

Did you measure the real voltage level at the SPI0_CS1_LS side when switch to high/low?

打開1.05V,關閉0V

It is not a valid high level for 3.3V pull-up. You can try a 2k pull-up instead.

所以這沒辦法從Pinmux設定上去更改嗎?

No, hardware rework is must.

我更換成2K,開關都在hi

What’s the voltage level now?

沒開0V,有開3.4V

hello liyongru1998,

may I know your latest test results after revise voltage level?

硬體量測到的電壓,打開開關3.4V,關閉開關0V。
sysnode 檢測,打開跟關閉都為hi

hello liyongru1998,

did you also configure the initial state as pull-down?
you should set a pull-down on the GPIO input.

我將GPIO改成下拉,硬體改2K,重新燒錄


sysnode 檢測,打開跟關閉都為hi

“io-high-voltage” should be enabled since it is 3.3v pull-up.
How do you pull pin to ground? I don’t see pull-down in your schematic.

我啟用io-high-Voltage,但是只有第一次讀到lo,之後切換開關都讀到hi

內部設定下拉,由外部切換hi,這樣需要引腳接地嗎?

請問nvidia,tristate可以關閉嗎?Pinmux可以設定嗎?