DA-08689-001_v1.0|August2017ApplicationNoteNVIDIAJETSONTX2USB2.0TUNINGGUIDENVIDIAJetsonTX2USB2.0TuningGuideDA-08689-001_v1.0|iiDOCUMENTCHANGEHISTORYDA-08689-001_v1.0VersionDateDescriptionofChange1.0August15,2017InitialReleaseNVIDIAJetsonTX2USB2.0TuningGuideDA-08689-001_v1.0|iiiTABLEOFCONTENTSOverview...........................................................................................1RequiredEquipment............................................................................2RegistersforHostModeTesting...............................................................3TestModeProgrammingSequence............................................................5RegisterstoAdjustHighSpeedUSB2.0EyeDiagram......................................7TuningProcedure.................................................................................8HS_CURR_LEVELOffsetApplyProcedure...................................................10SoftwareVerification...........................................................................11NVIDIAJetsonTX2USB2.0TuningGuideDA-08689-001_v1.0|ivLISTOFFIGURESFigure1.TegraX2USBControllersandInterfacesRoutingMap..........................3Figure2.JetsonTX2ConnectionExample...................................................4LISTOFTABLESTable1.xUSBUSB2.0PortTestControlRegisters.........................................4Table2.xUSBRegisters........................................................................7Table3.FUSE_USBRegisters..................................................................8Table4.EQFunction...........................................................................9NVIDIAJetsonTX2USB2.0TuningGuideDA-08689-001_v1.0|1OVERVIEWThisapplicationnotedescribestheregistersandstepsneededtotunetheUSB2.0highspeedeyediagramforNVIDIA®Jetson™TX2.USB-IFprovidescompletetestspecificationandinstructionsontheirwebsiteforhighspeedhostanddevicemodetesting.NVIDIAtypicallyusesTektronixoscilloscopesforUSBcharacterization.ThefollowingtestproceduresareforTektronixoscilloscopes.HostModeTesting●ProcedureforusingTektronixTDS694C:●ProcedureforusingotherTektronixscopes:DeviceModeTesting●ProcedureforusingTektronixTDS694C:●ProcedureforusingotherTektronixscopes:Note:JetsonTX2utilizesNVIDIA®Tegra®X2whichisaParkerseriesSoC.OverviewNVIDIAJetsonTX2USB2.0TuningGuideDA-08689-001_v1.0|2REQUIREDEQUIPMENTTektronixTDS694CorfasterdigitalsamplingoscilloscopeTektronixP6247orP6248orequivalentdifferentialprobe*1High-speedUSBElectricalTestFixtureOscilloscopeUSBtestSoftwareTooltoaccessregister/memoryspaceinTegraorbuildaspecialimagetoforceUSBTestmodeenabledNVIDIAJetsonTX2USB2.0TuningGuideDA-08689-001_v1.0|3REGISTERSFORHOSTMODETESTINGFigure1showstherelationshipbetweentheUSBportsandthexUSBcontrollers.Figure1.TegraX2USBControllersandInterfacesRoutingMapXUSBCUSB2_0USB2_1USB2_2HSICXUSBBHSICPadsUSB2PHY0USB0_DP/DNUSB2PHY1USB1_DP/DNUSB2PHY2USB2_DP/DNMUXUSB2_0DeviceRequiredforForceRecoveryModeMUXMUXRegistersforHostModeTestingNVIDIAJetsonTX2USB2.0TuningGuideDA-08689-001_v1.0|4Figure2.JetsonTX2ConnectionExampleToggletheJetsonTX2USBregisterslistedinTable1toforceTestJ,TestK,TestSE0NAK,andTestPacketontherespectiveUSBport.Table1.xUSBUSB2.0PortTestControlRegistersDescriptionsRegisterNameandSettingNormalOperations(default)XUSB_XHCI_OP_PORTPMSCHS_x_TM[31:28]=0000bTestJXUSB_XHCI_OP_PORTPMSCHS_x_TM[31:28]=0001bTestKXUSB_XHCI_OP_PORTPMSCHS_x_TM[31:28]=0010bTestSE0NAKXUSB_XHCI_OP_PORTPMSCHS_x_TM[31:28]=0011bTestPacketXUSB_XHCI_OP_PORTPMSCHS_x_TM[31:28]=0100bForceenableXUSB_XHCI_OP_PORTPMSCHS_x_TM[31:28]=0101bxUSBUSB2.0PortRegistersAddress:USB0:0x3530454:XUSB_XHCI_OP_PORTPMSCHS_3USB1:0x3530464:XUSB_XHCI_OP_PORTPMSCHS_4USB2:0x3530474:XUSB_XHCI_OP_PORTPMSCHS_5NVIDIAJetsonTX2USB2.0TuningGuideDA-08689-001_v1.0|5TESTMODEPROGRAMMINGSEQUENCETheprogrammingsequenceforenablingUSB2.0testmodeisasfollows:1.Disabletheauto-suspendforthecontrollers:a)Forexample:thefollowingcommandunderLinuxKernel.echoon/sys/bus/usb/devices/usb1/power/controlNote:The“usb1”hereistheXHCIUSB2controller;itmaymapto“usb2”ifthereisanotherUSBcontrollerontheboard.TheXHCIbusnumbercanbefoundunder/sys/devices/3530000.xhci/.2.SetPP(PortPower)inDisabledstatebyXUSB_XHCI_OP_PORTSC*bit[9]=0.USB0:0x3530450:XUSB_XHCI_OP_PORTSC_3USB1:0x3530460:XUSB_XHCI_OP_PORTSC_4USB2:0x3530470:XUSB_XHCI_OP_PORTSC_53.SetRS(Run/Stop)bitintheXUSB_XHCI_OP_USBCMD_0bit[0]=0.0x3530020:XUSB_XHCI_OP_USBCMD_04.WaitfortheHCHalted(HCH)bitintheXUSB_XHCI_OP_USBSTS_0bit[0]=1.0x3530024:XUSB_XHCI_OP_USBSTS_05.SetthexUSBPortTestControlregistersinPORTPMSCHSregister(seeSection“RegistersforHostModeTesting”).TestModeProgrammingSequenceNVIDIAJetsonTX2USB2.0TuningGuideDA-08689-001_v1.0|66.DisablePadPD(powerdown)byclearingtheXUSB_P