diff --git a/content/en/docs/Badges/WHY2025/hardware/connectors/pinout/_index.md b/content/en/docs/Badges/WHY2025/hardware/connectors/pinout/_index.md index cf48384..cba92c9 100644 --- a/content/en/docs/Badges/WHY2025/hardware/connectors/pinout/_index.md +++ b/content/en/docs/Badges/WHY2025/hardware/connectors/pinout/_index.md @@ -5,78 +5,12 @@ nodateline: true weight: -10 --- -## Connectors +In this section you can find the pinout of the chips and connectors of the device. ## Chips -### ESP32-P4 (U8) - -#### LDO - -| Pin number | Pin name | Pin net | -|------------|-----------------|-----------------------------------| -| 71 | VFB/VO1 | VFLASH | -| 72 | VFB/VO2 | VPSRAM | -| 73 | VFB/VO3 | VMIPI | -| 74 | VFB/VO4 | VSDCARD | + - [ESP32-P4](esp32p4) -#### GPIO - -| GPIO | Direction / Bus | Function | Note | -|----------|--------------------------|------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------| -| 0 | User controlled | Internal Add-On: E2 | | -| 1 | Output | Camera GPIO 1 / LED enable | | -| 2 | User controlled | JTAG: MTCK, PMOD: IO | Can be used as JTAG interface or as generic GPIO on the external Add-On connector | -| 3 | User controlled | JTAG: MTDI, PMOD: IO | Can be used as JTAG interface or as generic GPIO on the external Add-On connector | -| 4 | User controlled | JTAG: MTMS, PMOD: IO | Can be used as JTAG interface or as generic GPIO on the external Add-On connector | -| 5 | User controlled | JTAG: MTDO, PMOD: IO | Can be used as JTAG interface or as generic GPIO on the external Add-On connector | -| 6 | Input | Interrupt from CH32V203 coprocessor | Read from the coprocessor I2C device to clear the interrupt condition | -| 7 | Input / User controlled | Interrupt from internal Add-On board | Can also be used as GPIO, depending on the needs of the internal Add-On board | -| 8 | Input | Interrupt from ESP32-C6 radio | Controlled by ESP-HOSTED component | -| 9 | I2C bus SDA | Internal I2C bus data | Internal I2C bus connecting the ESP32-P4 to the ESP32-C6, CH32V203 coprocessor, Bosch sensors and internal Add-On board | -| 10 | I2C bus SCL | Internal I2C bus clock | Internal I2C bus connecting the ESP32-P4 to the ESP32-C6, CH32V203 coprocessor, Bosch sensors and internal Add-On board | -| 11 | Input | LCD TE (Tearing effect) | Synchronization pin for frame sync, used to avoid tearing | -| 12 | User controlled | SAO: I2C SDA, PMOD: IO | Can be used as I2C interface for SAO Add-On boards or as generic GPIO on the external Add-On connector | -| 13 | User controlled | SAO: I2C SCL, PMOD: IO | Can be used as I2C interface for SAO Add-On boards or as generic GPIO on the external Add-On connector | -| 14 | Output | LCD reset | Hardware reset for the LCD controller | -| 15 | User controlled | SAO: IO1, PMOD: IO | Can be used as generic GPIO for SAO Add-On boards or as generic GPIO on the external Add-On connector | -| 16 | SDIO 2.0 | SDIO bus for ESP32-C6: CMD | Controlled by ESP-HOSTED component | -| 17 | SDIO 2.0 | SDIO bus for ESP32-C6: CLK | Controlled by ESP-HOSTED component | -| 18 | SDIO 2.0 | SDIO bus for ESP32-C6: D0 | Controlled by ESP-HOSTED component | -| 19 | SDIO 2.0 | SDIO bus for ESP32-C6: D1 | Controlled by ESP-HOSTED component | -| 20 | SDIO 2.0 | SDIO bus for ESP32-C6: D2 | Controlled by ESP-HOSTED component | -| 21 | SDIO 2.0 | SDIO bus for ESP32-C6: D3 | Controlled by ESP-HOSTED component | -| 22 | Bidirectional | CH32V203 programming interface: SWDIO | For coprocessor firmware updates | -| 23 | Output | CH32V203 programming interface: SWCLK | For coprocessor firmware updates | -| 24 | USB | USB DN, port 1 on USB hub (USB-C port) | | -| 25 | USB | USB DP, port 1 on USB hub (USB-C port) | | -| 26 | User controlled | Internal Add-On: USB DN or generic GPIO | | -| 27 | User controlled | Internal Add-On: USB DP or generic GPIO | | -| 28 | I2S | I2S: data | | -| 29 | I2S | I2S: sample clock | | -| 30 | I2S | I2S: master clock | | -| 31 | I2S | I2S: lr clock | | -| 32 | I3C | I2C/I3C QWIIC port: SDA | | -| 33 | I3C | I2C/I3C QWIIC port: SCL | | -| 34 | User controlled | SAO: IO2, PMOD: IO | | -| 35 | User controlled | Internal Add-On: E1 | | -| 36 | User controlled | Internal Add-On: E0 | | -| 37 | Output / User controlled | Debug UART transmit | | -| 38 | Input / User controlled | Debug UART receive | | -| 39 | SDIO 3.0 | SD card slot: D0 | | -| 40 | SDIO 3.0 | SD card slot: D1 | | -| 41 | SDIO 3.0 | SD card slot: D2 | | -| 42 | SDIO 3.0 | SD card slot: D3 | | -| 43 | SDIO 3.0 | SD card slot: CLK | | -| 44 | SDIO 3.0 | SD card slot: CMD | | -| 45 | User controlled | Internal Add-On: E3 | | -| 46 | User controlled | Internal Add-On: E6 | | -| 47 | User controlled | Internal Add-On: E5 | | -| 48 | User controlled | Internal Add-On: E4 | | -| 49 | User controlled | Internal Add-On: E7 | | -| 50 | User controlled | Internal Add-On: E8 | | -| 51 | User controlled | Internal Add-On: E9 | | -| 52 | User controlled | Internal Add-On: E10 | | -| 53 | User controlled | Internal Add-On: E11 | | -| 54 | User controlled | Internal Add-On: E12 | | +## Connectors + - [Internal expansion header](internal_expansion) diff --git a/content/en/docs/Badges/WHY2025/hardware/connectors/pinout/esp32p4.md b/content/en/docs/Badges/WHY2025/hardware/connectors/pinout/esp32p4.md new file mode 100644 index 0000000..b52a9d5 --- /dev/null +++ b/content/en/docs/Badges/WHY2025/hardware/connectors/pinout/esp32p4.md @@ -0,0 +1,78 @@ +--- +title: "ESP32-P4 pinout" +linkTitle: "ESP32-P4" +nodateline: true +weight: -10 +--- + +## ESP32-P4 (U8) + +### LDO + +| Pin number | Pin name | Pin net | +|------------|-----------------|-----------------------------------| +| 71 | VFB/VO1 | VFLASH | +| 72 | VFB/VO2 | VPSRAM | +| 73 | VFB/VO3 | VMIPI | +| 74 | VFB/VO4 | VSDCARD | + +### GPIO + +| GPIO | Direction / Bus | Function | Note | +|----------|--------------------------|------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------| +| 0 | User controlled | Internal Add-On: E2 | | +| 1 | Output | Camera GPIO 1 / LED enable | | +| 2 | User controlled | JTAG: MTCK, PMOD: IO | Can be used as JTAG interface or as generic GPIO on the external Add-On connector | +| 3 | User controlled | JTAG: MTDI, PMOD: IO | Can be used as JTAG interface or as generic GPIO on the external Add-On connector | +| 4 | User controlled | JTAG: MTMS, PMOD: IO | Can be used as JTAG interface or as generic GPIO on the external Add-On connector | +| 5 | User controlled | JTAG: MTDO, PMOD: IO | Can be used as JTAG interface or as generic GPIO on the external Add-On connector | +| 6 | Input | Interrupt from CH32V203 coprocessor | Read from the coprocessor I2C device to clear the interrupt condition | +| 7 | Input / User controlled | Interrupt from internal Add-On board | Can also be used as GPIO, depending on the needs of the internal Add-On board | +| 8 | Input | Interrupt from ESP32-C6 radio | Controlled by ESP-HOSTED component | +| 9 | I2C bus SDA | Internal I2C bus data | Internal I2C bus connecting the ESP32-P4 to the ESP32-C6, CH32V203 coprocessor, Bosch sensors and internal Add-On board | +| 10 | I2C bus SCL | Internal I2C bus clock | Internal I2C bus connecting the ESP32-P4 to the ESP32-C6, CH32V203 coprocessor, Bosch sensors and internal Add-On board | +| 11 | Input | LCD TE (Tearing effect) | Synchronization pin for frame sync, used to avoid tearing | +| 12 | User controlled | SAO: I2C SDA, PMOD: IO | Can be used as I2C interface for SAO Add-On boards or as generic GPIO on the external Add-On connector | +| 13 | User controlled | SAO: I2C SCL, PMOD: IO | Can be used as I2C interface for SAO Add-On boards or as generic GPIO on the external Add-On connector | +| 14 | Output | LCD reset | Hardware reset for the LCD controller | +| 15 | User controlled | SAO: IO1, PMOD: IO | Can be used as generic GPIO for SAO Add-On boards or as generic GPIO on the external Add-On connector | +| 16 | SDIO 2.0 | SDIO bus for ESP32-C6: CMD | Controlled by ESP-HOSTED component | +| 17 | SDIO 2.0 | SDIO bus for ESP32-C6: CLK | Controlled by ESP-HOSTED component | +| 18 | SDIO 2.0 | SDIO bus for ESP32-C6: D0 | Controlled by ESP-HOSTED component | +| 19 | SDIO 2.0 | SDIO bus for ESP32-C6: D1 | Controlled by ESP-HOSTED component | +| 20 | SDIO 2.0 | SDIO bus for ESP32-C6: D2 | Controlled by ESP-HOSTED component | +| 21 | SDIO 2.0 | SDIO bus for ESP32-C6: D3 | Controlled by ESP-HOSTED component | +| 22 | Bidirectional | CH32V203 programming interface: SWDIO | For coprocessor firmware updates | +| 23 | Output | CH32V203 programming interface: SWCLK | For coprocessor firmware updates | +| 24 | USB | USB DN, port 1 on USB hub (USB-C port) | | +| 25 | USB | USB DP, port 1 on USB hub (USB-C port) | | +| 26 | User controlled | Internal Add-On: USB DN or generic GPIO | | +| 27 | User controlled | Internal Add-On: USB DP or generic GPIO | | +| 28 | I2S | I2S: data | | +| 29 | I2S | I2S: sample clock | | +| 30 | I2S | I2S: master clock | | +| 31 | I2S | I2S: lr clock | | +| 32 | I3C | I2C/I3C QWIIC port: SDA | | +| 33 | I3C | I2C/I3C QWIIC port: SCL | | +| 34 | User controlled | SAO: IO2, PMOD: IO | | +| 35 | User controlled | Internal Add-On: E1 | | +| 36 | User controlled | Internal Add-On: E0 | | +| 37 | Output / User controlled | Debug UART transmit | | +| 38 | Input / User controlled | Debug UART receive | | +| 39 | SDIO 3.0 | SD card slot: D0 | | +| 40 | SDIO 3.0 | SD card slot: D1 | | +| 41 | SDIO 3.0 | SD card slot: D2 | | +| 42 | SDIO 3.0 | SD card slot: D3 | | +| 43 | SDIO 3.0 | SD card slot: CLK | | +| 44 | SDIO 3.0 | SD card slot: CMD | | +| 45 | User controlled | Internal Add-On: E3 | | +| 46 | User controlled | Internal Add-On: E6 | | +| 47 | User controlled | Internal Add-On: E5 | | +| 48 | User controlled | Internal Add-On: E4 | | +| 49 | User controlled | Internal Add-On: E7 | | +| 50 | User controlled | Internal Add-On: E8 | | +| 51 | User controlled | Internal Add-On: E9 | | +| 52 | User controlled | Internal Add-On: E10 | | +| 53 | User controlled | Internal Add-On: E11 | | +| 54 | User controlled | Internal Add-On: E12 | | + diff --git a/content/en/docs/Badges/WHY2025/hardware/connectors/pinout/internal_expansion.md b/content/en/docs/Badges/WHY2025/hardware/connectors/pinout/internal_expansion.md new file mode 100644 index 0000000..ee21f77 --- /dev/null +++ b/content/en/docs/Badges/WHY2025/hardware/connectors/pinout/internal_expansion.md @@ -0,0 +1,53 @@ +--- +title: "Internal expansion port" +linkTitle: "Internal expansion port" +nodateline: true +weight: 0 +--- + +## Internal expansion port + +|Pin|Type |Power domain |Maximum current |Name |P4 GPIO |Function | +|---|-----|--------------|-----------------------------------------------|----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +|1 |Power|VOTG |1A |VOTG |- |Supply rail of the USB-A plug, provides 5 volt if OTG boost is enabled or voltage of VSYS when OTG boost is disabled | +|2 |USB |USB-C VBUS |- |HUB_USB1_P|- |USB port 4 on the internal USB hub, allows add-ons to make a device available to the host PC via the USB-C port | +|3 |Power|VBATT (~3.7v) |1A |VBATT |- |Direct connection to the Lithium Polymer battery, can also be used to supply current to the device if (AND ONLY IF) there is no battery connected to the battery connector | +|4 |USB |3.3v |- |HUB_USB1_N|- |USB port 4 on the internal USB hub, allows add-ons to make a device available to the host PC via the USB-C port | +|5 |Power|VSYS (~3.7-5v)|1A |VSYS |- |Same as VBATT but switched by the PMIC, turns off when the device is turned off via the soft power on/off feature | +|6 |Power|GND |- |GND |- |Ground, voltage reference for all supply rails | +|7 |Power|GND |- |GND |- |Ground, voltage reference for all supply rails | +|8 |Power|3.3v |1A |+3.3V |- |Regulated 3.3v rail | +|9 |I2C |3.3v |40mA source, 28mA sink |INT_SCL |10 |Internal I2C bus SCL signal, can only be used for I2C communication. We recommend connecting an EEPROM for add-on identification to this bus | +|10 |I2C |3.3v |40mA source, 28mA sink |INT_SDA |9 |Internal I2C bus SDA signal, can only be used for I2C communication. We recommend connecting an EEPROM for add-on identification to this bus | +|11 |GPIO |3.3v |40mA source, 28mA sink |E0 |36 |GPIO, needs to remain HIGH level (4.7k pull-up on the mainboard) for USB firmware download boot option to function | +|12 |GPIO |3.3v |40mA source, 28mA sink |E2 |0 |GPIO | +|13 |Power|VSDCARD |50mA |VSDCARD |- |Supply rail for the micro SD card socket and some GPIO pins, can either be off, 3.3v or 1.8v depending on card type and communication speed and configuration in software | +|14 |GPIO |VSDCARD |40mA source, 28mA sink (limited by supply rail)|E3 |45 |GPIO, uses VSDCARD supply rail! | +|15 |GPIO |VSDCARD |40mA source, 28mA sink (limited by supply rail)|E4 |48 |GPIO, uses VSDCARD supply rail! | +|16 |GPIO |VSDCARD |40mA source, 28mA sink (limited by supply rail)|E5 |47 |GPIO, uses VSDCARD supply rail! | +|17 |GPIO |VSDCARD |40mA source, 28mA sink (limited by supply rail)|E6 |46 |GPIO, uses VSDCARD supply rail! | +|18 |GPIO |3.3v |40mA source, 28mA sink |EXT_INT |7 |GPIO, connected to GPIO in low power domain: can be used to wake up the ESP32-P4 from deep sleep, if the add-on requires an interrupt pin we recommend connecting it here, otherwise this pin can be used like any other GPIO| +|19 |GPIO |3.3v |40mA source, 28mA sink |E12 |54 |GPIO | +|20 |GPIO |3.3v |40mA source, 28mA sink |E7 |49 |GPIO | +|21 |GPIO |3.3v |40mA source, 28mA sink |E11 |53 |GPIO | +|22 |GPIO |3.3v |40mA source, 28mA sink |EXT_USB_P |27 |GPIO, USB full-speed PHY D+: can be used as either normal GPIO or to connect an USB device to the ESP32-P4 | +|23 |GPIO |3.3v |40mA source, 28mA sink |E10 |52 |GPIO | +|24 |GPIO |3.3v |40mA source, 28mA sink |EXT_USB_N |26 |GPIO, USB full-speed PHY D-: can be used as either normal GPIO or to connect an USB device to the ESP32-P4 | +|25 |GPIO |3.3v |40mA source, 28mA sink |E9 |51 |GPIO | +|26 |GPIO |3.3v |40mA source, 28mA sink |P4_TX |37 |GPIO | +|27 |GPIO |3.3v |40mA source, 28mA sink |E8 |50 |GPIO | +|28 |GPIO |3.3v |40mA source, 28mA sink |P4_RX |38 |GPIO | +|29 |GPIO |3.3v |40mA source, 28mA sink |I2S_MCLK |30 |GPIO | +|30 |GPIO |3.3v |40mA source, 28mA sink |I2S_LRCK |31 |GPIO | +|31 |GPIO |3.3v |40mA source, 28mA sink |I2S_DATA |28 |GPIO | +|32 |GPIO |3.3v |40mA source, 28mA sink |I2S_SCLK |29 |GPIO | +|33 |Power|3.3v |1A |+3.3V |- |Regulated 3.3v rail | +|34 |GPIO |3.3v |40mA source, 28mA sink |I3C_SDA |33 |GPIO, connected to the QWIIC connector, I3C peripheral SDA pin | +|35 |Power|GND |- |GND |- |Ground, voltage reference for all supply rails | +|36 |GPIO |3.3v |40mA source, 28mA sink |I3C_SCL |32 |GPIO, connected to the QWIIC connector, I3C peripheral SCL pin | + +## Limitations & warnings + + - Total for all 3.3v outputs must not exceed 1A of current. It is generally adviced to stay well below this figure. + - VSDCARD power rail can supply at most 100mA total to both the SD card and the expansion header. + - Do not exceed a current of 1A from or to the battery when the battery is connected to the internal battery connector.