Xavier NX microUSB for keyboard/mouse with Jetpack 4.6.1

We have custom carrier boards for Xavier NX with +5V applied to VBUS of microUSB port. Patching “tergra194-fixed-regulator-p3668.dtsi” worked for Jetpack 4.4, the same patch doesn’t seem fpr Jetpack 4.6.1:
#include <t19x-common-platforms/tegra194-platforms-simple-bus.dtsi>

/ {
fixed-regulators {
hdr40_vdd_5v0: battery_reg: regulator@0 {
compatible = “regulator-fixed”;
reg = <0>;
regulator-name = “vdd-ac-bat”;
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
regulator-always-on;
};

	p3668_vdd_sdmmc1_sw: regulator@106 {
		compatible = "regulator-fixed";
		reg = <106>;
		regulator-name = "vdd-sdmmc1-sw";
		regulator-min-microvolt = <3300000>;
		regulator-max-microvolt = <3300000>;
		gpio = <&tegra_main_gpio TEGRA194_MAIN_GPIO(G, 2) 0>;
		enable-active-high;
	};

	p3668_vdd_1v8_sd: regulator@104 {
		compatible = "regulator-fixed";
		reg = <104>;
		regulator-name = "vdd-1v8-sd";
		regulator-min-microvolt = <1800000>;
		regulator-max-microvolt = <1800000>;
		enable-active-high;
	};
    vdd_usb0_5v: regulator@115 {
                   compatible = "regulator-fixed";
                   reg = <115>;
                   regulator-name = "vdd-usb0-5v";
                   regulator-min-microvolt = <5000000>;
                   regulator-max-microvolt = <5000000>;
                   gpio = <&tegra_main_gpio TEGRA194_MAIN_GPIO(Z, 1) GPIO_ACTIVE_HIGH>;
                   enable-active-high;
     };
};

};

Thanks in advanced for suggestions to have microUSB working as host for XAvier NX with Jetpack 4.6.1.

Hi,
The mocro-B port on Xavier NX developer kit does not support host mode. You would need to refer to product design guide to design a custom board. For programming device tree, please refer to adaptation guide.

Here is a patch for Jetson Nano:
USB 2.0 Functionality - #15 by arvindprksh
For your reference,

It worked after I did similar to the link for Jetson Nano.
i.e. I made change to “tegra194-p3668-common.dtsi” as following:

		extcon-gpio,name = "VBUS_ID";
		extcon-gpio,wait-for-gpio-scan = <0>;
		extcon-gpio,cable-states = <0x3 0x0
					    0x0 0x2
					    0x1 0x2
					    0x2 0x1>;
		gpios = <&tegra_main_gpio TEGRA194_MAIN_GPIO(M, 3) 0
			&tegra_main_gpio TEGRA194_MAIN_GPIO(Q, 0) 0>;
		extcon-gpio,out-cable-names = <EXTCON_USB EXTCON_USB_HOST EXTCON_NONE>;

/*
extcon-gpio,name = “VBUS”;
extcon-gpio,cable-states = <
0x0 0x1
0x1 0x0>;
gpios = <&tegra_main_gpio TEGRA194_MAIN_GPIO(Z, 1) 0>;
extcon-gpio,out-cable-names = <EXTCON_USB EXTCON_USB_HOST EXTCON_NONE>;
wakeup-source;
*/

Thanks!