R32.1 TX2 usb not working

HI,all
I removed the power supply chip INA3221 and replaced the I2C chip TCA6424 with the TCA9539 in my custom base/carrier board. Then modified the device tree.

  1. Modify the code in tegra186-quill-power-tree-p3310-1000-a00-00.dtsi
  2. Https://devtalk.nvidia.com/default/topic/1024105/jetson-tx2/tx2-usb2-0-not-working-how-to-fix-it/post/5210056/#5210056
  3. Modify the code in hardware/nvidia/platform/t18x/common/kernel-dts/t18x-common-platforms/tegra186-cvb-prod-p2597-b00-p3310-1000-a00-00.dtsi
  4. {
    
    	i2c@3160000 {
    		ina3221x@42 {
    			compatible = "ti,ina3221x";
    			<b>status = "disabled";	/* add */</b>
    			...
    		};
    
    		ina3221x@43 {
    			compatible = "ti,ina3221x";
    			<b>status = "disabled";	/* add */</b>
    			...
    		};
    
    		gpio_i2c_0_<b>22</b>: gpio@<b>22</b> {		/* modify: 74->22 */
    			compatible = "ti,<b>tca6424</b>";	/* modify:  tca9539->tca64242 */
    			reg = <0x<b>22</b>>;
    			gpio-controller;
    			#gpio-cells = <2>;
    			vcc-supply = <&battery_reg>;
    		};
    		gpio@<b>22</b> {
    			...
    		};
    
    		gpio_i2c_0_77: gpio@77 {
    			compatible = "ti,tca9539";
    			<b>status = "disabled";	/* add */</b>
    			reg = <0x77>;
    			gpio-controller;
    			#gpio-cells = <2>;
    			vcc-supply = <&battery_reg>;
    		};
    
    		...
    	};
    
    	...
    };
    
  5. Re-compile the device tree
  6. cd kernel/kernel-4.9
    make dtbs
    
  7. Re-flash TX2
  8. sudo ./flash.sh jetson-tx2 mmcblk0p1
    

But after starting TX2, usb will not work.
What should I do?

I think I may know the reason. Because I removed the power supply chip INA3221, the kernel could not control the startup of VBUS. VBUS is on too early, causing all USB to not work properly.
I designed usb2.0, usb2(B42,B43,A19).
Can I control the startup of VBUS by modifying the device tree or driver?

Hi,
A19 is reserved. Please refer to oem design guide.
https://developer.nvidia.com/embedded/dlc/jetson-tx2-series-modules-oem-product-design-guide
You may use other pin.

Please also refer to
[url]Third USB on custom board not working with JetPack 4.2 - Jetson TX2 - NVIDIA Developer Forums

Hi, DaneLLL
Follow the method you provided, my board works fine.
THANKS