Set IO_HV bit to disable

Orin Nano. Try to set IO_HV bit for GPIO3_PP.06 to 0 (disable).
dts:

pinmux@2430000 {
	...
		pps_pin_ctrl {
			phandle = <0x353>;

			soc_gpio25_pp6 {
				nvidia,pins = "soc_gpio25_pp6";
				nvidia,pull = <0x02>;
				nvidia,tristate = <0x01>;
				nvidia,enable-input = <0x01>;
				nvidia,open-drain = <0x00>;
				nvidia,io-high-voltage = <0x00>;
				nvidia,gpio-mode = <0x00>;
				nvidia,function = "vi0";
			};
		};
        ...
	pps-pls {
		pinctrl-names = "default";
		pinctrl-0 = <0x353>;

		compatible = "pps-gpio-custom";
		gpios = <0xe5 0x76 0x00>;
		assert-falling-edge;
	};
        ...
}

after boot:

~ sudo busybox devmem 0x02430030                                                                           
0x00000078
108 (soc_gpio25_pp6): 
        pull=2
        tristate=1
        enable-input=1
        open-drain=0
        io-reset=0
        rcv-sel=0
        io-hv=0
        schmitt=0
        pull-down-strength=0
        pull-up-strength=0
        drive-type=0
        gpio-mode=0
        function=vi0

Then I try to change IO_HV via devmem:

~ sudo busybox devmem 0x02430030 32 0x00000058

and got expected result

~ sudo busybox devmem 0x02430030                                                                           
0x00000058

How can I change IO_HV bit via device tree file?

Via dtb file I can control SCHMT, GPIO_SF_SEL, LPDR, INPUT, TRISTATE, PUPD and PM bits, but not IO_HV.
And why /sys/kernel/debug/pinctrl/2430000.pinmux/pinconf-groups indicates soc_gpio25_pp6 io-hv bit set to 0, but devmem 0x02430030 show me 1 (enable) value?


bug?
or io_hv control is not available?

Hi baks637202,

Are you using the devkit or custom board for Orin Nano?
What’s the Jetpack version in use?

Could you try to configure the Column AZ(3.3V Tolerance Enable) to Disable in pinmux spreadsheet as following?
image

And refer to the instruction in Generating the Pinmux dtsi Files to apply change.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.