Tanmatsu: internal add-on port

This port is not exposed by default, and a modified back cover needs to be used to make it accessible. For this reason the port is also named the “internal expansion port”.

Pinout

PinFunctionNameGPIODescriptionNotes
1Power outputVOTG-Output from booster DC/DC converter in the PMIC5 volt when booster is enabled, +/- VSYS when booster is disabled
2USBHUB_USB1_P-Port on USB hub for USB-C port (DP)Can be used to expose an USB device on the add-on to the PC plugged into the USB-C port
3Power outputHUB_USB1_N-Port on USB hub for USB-C port (DN)Can be used to expose an USB device on the add-on to the PC plugged into the USB-C port
4USBVBATT-Battery voltage (3.0 – 4.2v)Directly connected to battery connector, always on even when the device is turned off
5Power outputVSYS-System voltage (3.0 – 5.0v)Switched power rail for powering the system, can be powered by battery or USB-C port, off when device is turned off
6Power ref.GND-Voltage reference (ground)
7Power ref.GND-Voltage reference (ground)
8Power output+3.3v-Main logic supply rail (3.3v)
9I2CINT_SCL10Internal I2C bus, shared with other I2C devices (SCL)Used to connect I2C devices and an EEPROM for add-on identification
10I2CINT_SDA9Internal I2C bus, shared with other I2C devices (SDA)Used to connect I2C devices and an EEPROM for add-on identification
11GPIOE036GPIO
12GPIOE10GPIO
13GPIOE26GPIO, also connected to camera GPIO 1Shared with camera connector
14GPIOE346GPIO, VSDCARD LDO must be enabled to use this pinConnected via level shifter, externally these GPIOs operate at 3.3v but the GPIOs are powered by the VSDCARD power domain
15GPIOE447GPIO, VSDCARD LDO must be enabled to use this pinConnected via level shifter, externally these GPIOs operate at 3.3v but the GPIOs are powered by the VSDCARD power domain
16GPIOE548GPIO, VSDCARD LDO must be enabled to use this pinConnected via level shifter, externally these GPIOs operate at 3.3v but the GPIOs are powered by the VSDCARD power domain
17GPIOE645GPIO, VSDCARD LDO must be enabled to use this pinConnected via level shifter, externally these GPIOs operate at 3.3v but the GPIOs are powered by the VSDCARD power domain
18GPIOE77GPIO, in low power domain of P4, has 51k pull-up resistorCan be used as wakeup pin to wake up the ESP32-P4 from deep sleep
19GPIOE854GPIO
20GPIOE949GPIO
21GPIOE1053GPIO
22GPIOEXT_USB_P26Can be used as GPIO or as USB FS PHY (DP)The USB PHYs of the P4 can be swapped between the USB serial/jtag and user controlled USB peripheral. If badgelink is used then this PHY exposes the serial/jtag peripheral
23GPIOE1152GPIO
24GPIOEXT_USB_N27Can be used as GPIO or as USB FS PHY (DN)The USB PHYs of the P4 can be swapped between the USB serial/jtag and user controlled USB peripheral. If badgelink is used then this PHY exposes the serial/jtag peripheral
25GPIOE1251GPIO
26GPIOP4_TX37Exposes boot console of P4, can be used as GPIOMust be low during boot
27GPIOE1350GPIO
28GPIOP4_RX38Exposes boot console of P4, can be used as GPIOMust be high during boot
29I2SI2S_MCLK30Digital audio bus master clockReference clock for connected I2S devices
30I2SI2S_LRCK31Digital audio bus word clockWord clock (left-right selection) for connected I2S devices
31I2SI2S_DATA28Digital audio bus data outputData output from mainboard for connected I2S DACs
32I2SI2S_SCLK29Digital audio bus sample clockSample clock for connected I2S devices
33Power output+3.3v-Main logic supply rail (3.3v)
34I3CI3C_SDA33I3C bus, shared with QWIIC connector (SDA)Can also be used as I2C bus
35Power ref.GND-Voltage reference (ground)
36I3CI3C_SCL32I3C bus, shared with QWIIC connector (SCL)Can also be used as I2C bus

Identification EEPROM

Please include a small EEPROM at address 0x50 on your boards, this will allow Tanmatsu to identify which add-on board has been connected.

The format for the content of this EEPROM has yet to be determined, currently the launcher firmware has no support for identifying add-ons.
The format will most likely be based on the format described here.

Usage

We recommend to start with the GPIOs that do not have shared functions. The following GPIOs on the add-on header can be used without limitations:

E0, E1, E7, E8, E9, E10, E11, E12 and E13

If the built-in LDO number 4 of the ESP32-P4 is enabled (this powers up the SD card slot) then the following GPIOs will be available,
a level shifter is included on the main board so these GPIOs are always using 3.3v voltage level regardless of the SD card operating in 3.3 volt or 1.8 volt mode.

E3, E4, E5 and E6

The following pins can also be used if remapped to GPIO, there might be some activity on these pins during startup or while the launcher is running:

EXT_USB_P, EXT_USB_N, P4_TX and P4_RX

The following pins share functions with other peripherals on the main board. Use these with caution:

E2, I2S_MCLK, I2S_LRCK, I2S_DATA, I2S_SCLK, I3C_SDA and I3C_SCL

Using these pins for other purposes than their intended purpose will render either on-board audio, the QWIIC port or the camera port unusable when the add-on board is plugged in.

Limitations & warnings

  • Total for all 3.3v outputs must not exceed 1A of current. It is generally adviced to stay well below this figure.
  • Do not exceed a current of 1.5A from the battery when the battery is connected to the internal battery connector
  • Do not charge the battery via the internal add-on port