From 5a42258cf49f19cfea6526123b5c9b8e33e55d2d Mon Sep 17 00:00:00 2001 From: Andrei Gherzan Date: Wed, 14 Oct 2026 19:49:29 +0100 Subject: [PATCH] docs: document ENABLE_DWC2_OTG and DWC2 mode exclusivity Signed-off-by: Andrei Gherzan --- docs/extra-build-config.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/extra-build-config.md b/docs/extra-build-config.md index 00e0579..150d236 100644 --- a/docs/extra-build-config.md +++ b/docs/extra-build-config.md @@ -299,6 +299,17 @@ the header extension should set the following in local.conf: ENABLE_DWC2_HOST = "1" +## Enable USB OTG support + +Users who want the DWC2 controller to operate in OTG (dual-role) mode should +set the following in local.conf: + + ENABLE_DWC2_OTG = "1" + +Note that `ENABLE_DWC2_PERIPHERAL`, `ENABLE_DWC2_HOST` and `ENABLE_DWC2_OTG` +are mutually exclusive. Enabling more than one of them results in a build +error. + ## Set CPUs to be isolated from the standard Linux scheduler By default Linux will use all available CPUs for scheduling tasks. For real time