diff --git a/configs/sama5d3-xplained/src/sam_usb.c b/configs/sama5d3-xplained/src/sam_usb.c index 6963ab6753f..fc40510934e 100644 --- a/configs/sama5d3-xplained/src/sam_usb.c +++ b/configs/sama5d3-xplained/src/sam_usb.c @@ -448,7 +448,7 @@ void sam_usbhost_vbusdrive(int rhport, bool enable) return; } - /* Then enable or disable VBUS power */ + /* Then enable or disable VBUS power (active low for SP2526A-2) */ if (enable) { diff --git a/configs/sama5d3-xplained/src/sama5d3-xplained.h b/configs/sama5d3-xplained/src/sama5d3-xplained.h index 42a4ed12577..0f14414664e 100644 --- a/configs/sama5d3-xplained/src/sama5d3-xplained.h +++ b/configs/sama5d3-xplained/src/sama5d3-xplained.h @@ -382,26 +382,33 @@ * * PIO Signal Name Function * ---- ----------- ------------------------------------------------------- - * PE4 EN5V_USBB VBus power enable (via MN3 AIC1526 Dual USB High-Side - * Power Switch). To the A1 pin of J7 Dual USB A - * connector + * PE3 EN5V_USBB VBus power enable via MN3 SP2526A-2E dual power + * switch. PE3 (EN5V_USBB)connects to ENB pin of MN3. + * MN3 OUTB (5V_USBB) is provided to pin 5 of J7 Dual USB + * A connector + * + * Active high for SP2526A-1; active low for SP2526A-2 */ #define PIO_USBB_VBUS_ENABLE \ - (PIO_OUTPUT | PIO_CFG_DEFAULT | PIO_OUTPUT_CLEAR | \ - PIO_PORT_PIOE | PIO_PIN4) + (PIO_OUTPUT | PIO_CFG_DEFAULT | PIO_OUTPUT_SET | \ + PIO_PORT_PIOE | PIO_PIN3) /* Port C * * PIO Signal Name Function * ---- ----------- ------------------------------------------------------- - * PE3 EN5V_USBC VBus power enable (via MN3 power switch). To the B1 - * pin of J7 Dual USB A connector + * PE4 EN5V_USBC VBus power enable via MN3 SP2526A-2E dual power + * switch. PE4 (EN5V_USBC) connects to ENA pin of the + * MN3. MN3 OUTA (5V_USBC) is provided to the pin 1 of J7 + * Dual USB A connector + * + * Active high for SP2526A-1; active low for SP2526A-2 */ #define PIO_USBC_VBUS_ENABLE \ - (PIO_OUTPUT | PIO_CFG_DEFAULT | PIO_OUTPUT_CLEAR | \ - PIO_PORT_PIOE | PIO_PIN3) + (PIO_OUTPUT | PIO_CFG_DEFAULT | PIO_OUTPUT_SET | \ + PIO_PORT_PIOE | PIO_PIN4) /* Both Ports B and C *