I would like to configure pz3 pz4 pz5 to gpio (output, pull high).
I saw the /sys/class/gpio/gpio491, gpio492, gpio493 awlays keeps input, pull low when I tried the two ways.
generate DTS by Jetson_Xavier_NX_Pinmux_Configuration_Template_v1.06.xlsm and covert to cfg file. Put the cfg to bootloader/t186ref/BCT and flash the image to board.
add the following pinmux attribute to dts file and flash the dtb to board. The result still keeps input low.
nvidia,pins = “spi1_sck_pz3”;
nvidia,function = “rsvd1”;
nvidia,pull = <TEGRA_PIN_PULL_UP>;
nvidia,tristate = <TEGRA_PIN_DISABLE>;
nvidia,enable-input = <TEGRA_PIN_DISABLE>;
nvidia,lpdr = <TEGRA_PIN_DISABLE>;
I tried it before your comment.
Now I find the others feedback about the issue.
I modify cfg as follows, export gpio491 and read gpio status of debugfs.
-pinmux, 0x02212460 = 0x00000000; #CONFIG Z3
+pinmux, 0x02212460 = 0x00000003; #CONFIG Z3
$sudo cat /sys/kernel/debug/gpio |grep 491
gpio-491(SPI0_SCK | sysfs ) out lo
I generated .cfg file by the tool of Jetpack 4.5.1 and I compared to the default .cfg file.
I cannot find #CONFIG Z3 on .cfg file that generated by me.
I think the issue is related to the tool.
I would like to set default pull high, please teach me how to pull high it on .cfg file.
If it does work, can you provide the method to modified pinmux by dts?
could you please share your commands to use python script to convert those file as cfg format.
for example, you should assign the dtsi file, tegra19x-jetson_xavier_nx_module-pinmux.dtsi which include your pz3, pz4, pz5 settings.
please also refer to $OUT/Linux_for_Tegra/kernel/pinmux/t19x/README.txt for pinmux-dts2cfg.py's sample commands.
There are my steps, would you try to modify pz3, pz4, pz5 to gpio default pull high? Could you give me your steps, thank you.
$sudo python pinmux-dts2cfg.py --pinmux addr_info.txt gpio_addr_info.txt por_val.txt --mandatory_pinmux_file mandatory_pinmux.txt temp/tegra19x-jetson_xavier_nx_module-pinmux.dtsi temp/tegra19x-jetson_xavier_nx_module-gpio-default.dtsi 1.0 > product_nv.cfg
$mv product_nv.cfg …/…/…/bootloader/t186ref/BCT/tegra19x-mb1-pinmux-p3668-a01.cfg
And flash image via
＄ssudo ./flash.sh -r jetson-xavier-nx-devkit-emmc mmcblk0p1