Jetson Customize Usb
NVIDIAOfficialCreated by Jetson TeamDistributed by NVIDIA
- Skill
- Workflow
- Cloud and DevOps
- Apache-2.0
- Medium risk
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
The jetson-customize-usb skill enables, disables, or modifies the role of USB2 and USB3 SuperSpeed (SS) ports on Jetson Thor and Orin platforms. It ensures that port configurations—including wiring, VBUS-EN, OC, CC GPIOs, and UPHY lane assignments—are correctly reflected in the kernel device tree. The skill enforces a strict three-place lockstep update pattern (lane status, port status, and host xHCI phys-list) to prevent host controller crashes and ensures that all modifications are rendered as a self-contained kernel-DT overlay within the BSP source repository.
What it does
- Enables or disables USB2 and USB3 SS ports via kernel-DT overlays.
- Configures port roles, VBUS-EN, OC, and CC GPIOs based on carrier schematics.
- Maintains a three-place lockstep update for lane, port, and host xHCI controller bindings.
- Resolves companion links between USB2 and USB3 SS ports to prevent driver errors.
- Validates configurations against carrier pinmaps and schematic documentation.
- Generates a commit-ready kernel-DT overlay for the BSP source repository.
When to use it
- When you need to enable or disable USB ports on a custom Jetson carrier board.
- When a USB receptacle fails to enumerate after flashing the device.
- When you need to configure USB roles or wiring for specific carrier hardware.
- After running jetson-customize-uphy to ensure USB3 SS port settings align with new lane allocations.
Advantages
- Prevents common host xHCI controller crashes through strict lockstep enforcement.
- Ensures hardware-software alignment by requiring carrier schematic and pinmap verification.
- Automates complex device tree fragment generation for USB port topology.
- Maintains system stability by preventing invalid port or lane configurations.
Usage examples
- “Enable the USB3 SS port 2 on my custom carrier board.”
- The agent will verify the carrier schematic, check the UPHY lane allocation, and generate a kernel-DT overlay that correctly enables the lane, port, and xHCI phys-list.
- “Disable the USB hub connected to the carrier.”
- The agent will identify the associated USB2 and USB3 SS ports, perform the companion cascade, and update the device tree to safely disable the entire hub topology.
Install
Download the skill as a ZIP:
https://mp-staging.autogineer.com/agent-skills/nvidia/jetson-customize-usb/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip jetson-customize-usb.zip -d .agents/skills
Documentation by Jetson Team
Customize USB (per-port enable / disable / role)
Purpose
Enable, disable, or change the role of USB2 / USB3 SS ports on a
Jetson Thor (Tegra264) or Orin (Tegra234) custom carrier. Captures
per-port wiring (role, max speed, VBUS-EN / OC GPIOs, CC1/CC2 GPIOs
for Type-C, USB3 SS UPHY lane), resolves the SS to USB2 companion
graph from the in-tree DTB, then renders a self-contained kernel-DT
overlay that flips every port action in three places in lockstep
(lane status, port status, host xHCI phys + phy-names).
UPHY lane allocation belongs to jetson-customize-uphy. No ODMDATA
edit. Output is one commit to the composite custom overlay .dts in
the bsp_sources/ hardware repo.
Prerequisites
Active profile with
reference_devkit:+custom_carrier:blocks.<source.root_path>/Linux_for_Tegra/.gitexists (/jetson-init-source)./jetson-derive-carrierhas run — carrier flash-conf fork in the overlay tracker./jetson-customize-uphyhas run when any enabled USB3 SS port needs a non-stock UPHY lane allocation. Its JSON sidecar at<workspace>/target-platform/<profile-stem>.jetson-customize-uphy.jsonis consulted for SS lane allocation.Source-of-truth docs: Adaptation Guide §"Port the Universal Serial Bus", Module Design Guide §USB, SoC TRM (xusb block).
When
custom_carrier:is present, bothdocuments.custom_carrier_schematicANDdocuments.custom_carrier_pinmux_xlsare REQUIRED. Refuse the run if either is missing — per-port routing (VBUS-EN / OC / CC GPIOs, SS lane wiring, hub fan-out) on a custom carrier cannot be guessed. Reference-devkit-only profiles skip this check.dtc,fdtoverlayon PATH.
Overview
USB on Tegra spans three IP surfaces: the xusb_padctl block (USB2
OTG + USB3 SS PHYs), the tegra-xusb xHCI host controller, and an
optional tegra-xudc device controller attached to the single
OTG-capable USB2 port (usb2-0).
A per-port flip MUST touch three kernel-DT places in lockstep.
Anything less crashes the host xHCI probe and leaves lsusb empty
on every port (collateral damage to stock-okay ports):
| # | Place | Path | What it controls |
|---|---|---|---|
| 1 | Lane (PHY provider) | xusb_padctl/pads/usb<2|3>/lanes/usb<2|3>-N | SS / OTG PHY hardware-binding. status="disabled" then lane stops providing a PHY. |
| 2 | Port (controller-binding) | xusb_padctl/ports/usb<2|3>-N | Per-port mode (host/device/otg), companion link, VBUS / OC / CC pin refs. status="disabled" then port removed from user-facing topology. |
| 3 | Host xHCI phys-list | bus@0/usb@<addr>.phys + .phy-names | Array of phandles + names the xHCI driver iterates. A ref to a disabled PHY returns -ENODEV and aborts the whole host probe. |
NVIDIA's stock-disabled usb3-3 in the Thor base DTB is the canonical
pattern — all three places flipped in lockstep.
Two extra rules ride on top of the three-place pattern:
Rule A — lane + port pairing. Lane (place 1) and matching port (place 2) MUST flip together.
Rule B — companion cascade.
xusb_padctl/ports/usb3-N.nvidia,usb2-companionreferences a USB2 port phandle. Disabling that USB2 without cascading to its SS companion thentegra-xusb: failed to enable PHYs: -19.
Agentic, not table-driven — every port, controller, lane,
companion link, phandle, and __symbols__ lookup is resolved at
runtime from docs + DTB + carrier pinmap + schematic.
When to invoke
The user says "enable USB", "disable USB hub", "configure USB3 SS", "set USB role", "wire VBUS-EN", "tegra-xusb / xudc / dr_mode", or asks to bring up / take down a USB controller on a custom carrier.
A USB receptacle on the carrier doesn't enumerate after flash, OR collateral USB damage (
lsusbempty after a previous jetson-customize-usb attempt) needs to be fixed.jetson-customize-uphyre-allocated UPHY lanes affecting USB3 SS ports and per-port DT now needs to follow.
Procedure (summary)
The full step-by-step procedure lives in references/procedure.md.
Step 1 — resolve active target + open source-of-truth docs.
Step 2 — build the USB topology + companion graph from the in-tree DTB.
Step 3 —
AskUserQuestionfor port(s) to enable / disable; surface companion cascade + on-carrier hub fan-out explicitly.Step 4 — per-port verify (module + carrier + UPHY lane) and capture wiring (VBUS-EN / OC / CC GPIOs via
pin_verifier.py).Step 5 — render the kernel-DT overlay using the three-place pattern, append fragments (
usb:padctl,usb:xhci, optionalusb:xudc) to the composite custom overlay.dts, runfdtoverlay+ the three post-merge invariants, commit tobsp_sources/.Step 6 — write run-state JSON sidecar (shape in
references/run-state-sidecar.md), emit headline, then drive the downstream next-step chain via sequentialAskUserQuestionprompts perreferences/procedure.mdStep 6. Never substitute a printed "Next step: …" line for the prompts.
See references/gotchas.md for the load-bearing failure modes.
Limitations
Owns kernel-DT overlay only. ODMDATA does not expose a per-port USB
statusknob; do not edit it.Does NOT allocate UPHY lanes —
jetson-customize-uphyowns that. Refuse to commit an SS-enable until uphy run-state shows the lane allocated.Does NOT directly patch the pinmux DTSI — routes SFIO mismatches to
/jetson-customize-pinmux set-pin.Does NOT compile the
.dtboor registerOVERLAY_DTB_FILE+=—/jetson-build-sourceowns build + flash-conf registration.Tegra platform invariant: only
usb2-0is OTG-capable;xudcattaches there only. All other USB2 ports and all USB3 SS ports are host-only.
Troubleshooting
Empty
lsusbon every port, USB-eth at 192.168.55.1 still up: host xHCI bailed; three-place lockstep was broken. Inspect merged DTB; verify post-merge invariants inreferences/procedure.mdStep 5d.tegra-xusb: failed to enable PHYs: -19: companion cascade (Rule B) violated — a USB2 was disabled without its SS companion.no port foundorRequested PHY is disabled: Rule A violated — lane status and port status are mismatched.FDT_ERR_NOTFOUNDfromfdtoverlay: a fragment usedtarget = <&label>for a node whose label is not in__symbols__(typical for host xHCI /tegra-xudc). Switch totarget-path = "/bus@0/usb@<addr>".dtc warning
phys_property: cell 0 is not a phandle reference: benign; expected when using raw integer phandles in the host phys override.Port boots but VBUS never asserts:
vbus-supplyreferences a regulator parent node that does not exist. Ensure the fixed regulator node is present before referencing it.xHCI binds the wrong port at boot: host
physelement order was not preserved. Only elide disabled entries; never reorder kept ones.
References
references/procedure.md— full step-by-step procedure.references/gotchas.md— load-bearing failure modes.references/run-state-sidecar.md— run-state JSON shape.references/usb-architecture.md— Tegra USB IP architecture notes (xusb_padctl,tegra-xusb,xudc).references/usb-dt-bindings.md— USB DT binding cheatsheet (lane / port / phys-list shapes).../../scripts/pin_verifier.py— shared HSIO pin verifier.../../references/platform_template.yaml—documents:block consumed by Step 1.../../context/bsp-customization-workflow.md— overlay edit protocol.../../references/bsp-customization-kernel-dtb.md— composite overlay append protocol.../jetson-customize-uphy/SKILL.md— sibling skill that owns UPHY lane allocation.../jetson-customize-pinmux/SKILL.md— sibling skill for VBUS-EN / OC / CC SFIO fixes.../jetson-derive-carrier/SKILL.md— must run first.../jetson-init-source/SKILL.md— produces the overlay trackerbsp_sourcesrepo.
Files
- ATTRIBUTION.mdAdded by AutoGineer923 B
- BENCHMARK.md3.7 KiB
- LICENSELicence file added by AutoGineer11.2 KiB
- SKILL.md8.2 KiB
- evals/evals.json4.3 KiB
- references/README.md664 B
- references/gotchas.md2.1 KiB
- references/procedure.md15.0 KiB
- references/run-state-sidecar.md1.3 KiB
- references/usb-architecture.md3.5 KiB
- references/usb-dt-bindings.md1.8 KiB
- skill-card.md3.6 KiB
- skill.oms.sig5.9 KiB
BENCHMARK.md
Evaluation Report
Evaluation of the jetson-customize-usb skill before publication through NVSkills-Eval.
This benchmark summarizes 3-Tier Evaluation from NVSkills-Eval results for the skill. The goal is to document whether the skill is safe, discoverable, effective, and useful for agents before it is published for broader workflow use.
Evaluation Summary
Skill:
jetson-customize-usbEvaluation date: 2026-06-16
NVSkills-Eval profile:
externalEnvironment:
astra-sandboxDataset: 2 evaluation tasks
Attempts per task: 1
Pass threshold: 50%
Overall verdict: PASS
Agents Used
claude-codecodex
Metrics Used
Reported benchmark dimensions:
Security: checks whether skill-assisted execution avoids unsafe behavior such as secret leakage, destructive commands, or unauthorized access.
Correctness: checks whether the agent follows the expected workflow and produces the correct final output.
Discoverability: checks whether the agent loads the skill when relevant and avoids using it when irrelevant.
Effectiveness: checks whether the agent performs measurably better with the skill than without it.
Efficiency: checks whether the agent uses fewer tokens and avoids redundant work.
Underlying evaluation signals used in this run:
security(Security): checks for unsafe operations, secret leakage, and unauthorized access.skill_execution(Skill Execution): verifies that the agent loaded the expected skill and workflow.skill_efficiency(Efficiency): checks routing quality, decoy avoidance, and redundant tool usage.accuracy(Accuracy): grades final-answer correctness against the reference answer.goal_accuracy(Goal Accuracy): checks whether the overall user task completed successfully.behavior_check(Behavior Check): verifies expected behavior steps, including safety expectations.token_efficiency(Token Efficiency): compares token usage with and without the skill.
Test Tasks
The benchmark dataset contained 2 evaluation tasks:
Positive tasks: 2 tasks where the skill was expected to activate.
Negative tasks: 0 tasks where no skill was expected.
Unlabeled tasks: 0 tasks where positive/negative intent could not be inferred.
Task composition is derived from the evaluation dataset when possible. Entries with expected_skill set are treated as positive skill-activation cases, while entries with expected_skill: null are treated as negative activation cases.
Results
| Dimension | Num | claude-code | codex |
|---|---|---|---|
| Security | 2 | 100% (+0%) | 100% (+0%) |
| Correctness | 2 | 70% (+28%) | 97% (+29%) |
| Discoverability | 2 | 46% (+33%) | 97% (+39%) |
| Effectiveness | 2 | 52% (+24%) | 63% (+33%) |
| Efficiency | 2 | 53% (+28%) | 96% (+43%) |
Score values show skill-assisted performance. Values in parentheses show uplift versus the no-skill baseline when baseline data is available.
Tier 1: Static Validation Summary
Tier 1 validation passed with observations. NVSkills-Eval ran 1 checks and found 3 total findings.
Top findings:
MEDIUM SCHEMA/body_recommended_section: Missing recommended section: '## Instructions' (
skills/jetson-customize-usb/SKILL.md)MEDIUM SCHEMA/body_recommended_section: Missing recommended section: '## Examples' (
skills/jetson-customize-usb/SKILL.md)LOW SCHEMA/author_format: Author must be of the form 'Name <email@host>' (
skills/jetson-customize-usb/SKILL.md)
Tier 2: Deduplication Summary
This tier was not run or did not produce findings in this report.
Publication Recommendation
The skill is suitable to proceed toward NVSkills-Eval publication based on this benchmark. Skill owners should keep this file with the skill and refresh it when the evaluation dataset, skill behavior, or target agents materially change.
Requirements and compatibility
Written for: Claude Code
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Names Claude Code tools, Needs Node.js
Security
What our scanner noticed· Medium risk
- Large base64-encoded blobs
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Created by
- Jetson Team
- Publisher
- NVIDIA (Official)
- Distributed by
- NVIDIA
- Source
- NVIDIA/skills · skills/jetson-customize-usb · commit fce3cca
- Licence
- Apache License 2.0 (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE-APACHE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by Jetson Team or NVIDIA.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download jetson-customize-usb.zip