MustafaMulla29/usb-pd-motherboard

4-layer USB-C PD hub motherboard with 20 V USB-C input, Linux T113-S3 computer, CH338F USB hub, four individually controlled 5–20 V PD outputs, USB data/camera ports, regulated rails, and hardware watchdog/E-stop safety interlock.

Version
1.0.24
License
unset
Stars
0

Use with the tscircuit CLI

tsci is the tscircuit CLI. Install it with npm install -g tscircuit.

tsci clone MustafaMulla29/usb-pd-motherboard  # download the package files into ./usb-pd-motherboard
tsci add MustafaMulla29/usb-pd-motherboard    # add it to your project as @tsci/MustafaMulla29.usb-pd-motherboard

In a cloned or new (tsci init) project: tsci dev starts a local preview, tsci build outputs Circuit JSON, and tsci push publishes to tscircuit.com.

data/schematic-notes.json

{
 "power_input": [
  {
   "text": "USB-C PD input (PD IN)",
   "x": -7.425,
   "y": 11.4,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "CH224Q PD sink: asks the charger for 20 V",
   "x": 4.925,
   "y": 11.863,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "TPS16630 input eFuse, 5.45 A",
   "x": -8.642,
   "y": 5.137,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "Input off switch (supervisor A)",
   "x": 9.425,
   "y": 3.522,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "TPS54560B 5 V buck",
   "x": 1.225,
   "y": -3.843,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "AP2112K 3.3 V always-on",
   "x": 0.775,
   "y": -8.378,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "2 / 15 — Power input: USB-PD sink, input eFuse, 5 V, 3.3 V AON",
   "x": -16.381,
   "y": 13.562,
   "fontSize": 0.42,
   "anchor": "left"
  },
  {
   "text": "References: WCH CH224 datasheet V2.0 sec. 6.1.1 (single-resistor configuration; RPDCFG1 = 120k -> 20 V, Table 5-1); TI TPS16630 and TPS54560B typical applications.",
   "x": -16.381,
   "y": -12.303,
   "fontSize": 0.23,
   "anchor": "left"
  },
  {
   "text": "TPS16630: UVLO 1.2 V x (56k + 10k) / 10k = 7.9 V; OVP 1.2 V x (249k + 10k) / 10k = 31.1 V; I(OL) = 18 / R(ILIM in kOhm): 3.3k -> 5.45 A; IMON 27.9 uA/A x 18k = 0.50 V/A.",
   "x": -16.381,
   "y": -12.752,
   "fontSize": 0.23,
   "anchor": "left"
  },
  {
   "text": "TPS54560B: 0.8 V x (1 + 53.6k / 10k) = 5.09 V; RT 196k -> about 500 kHz. VIN_SYS feeds the four PD OUT stages (sheets 6-9); V5V0 feeds the Linux supplies (12) and the USB port switches (14).",
   "x": -16.381,
   "y": -13.203,
   "fontSize": 0.23,
   "anchor": "left"
  }
 ],
 "safety": [
  {
   "text": "TPS3823-33 Linux watchdog",
   "x": 8.938,
   "y": 5.003,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "KILL_N = stop loop AND watchdog AND input good",
   "x": -1.792,
   "y": 0.718,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "Output-enable latch",
   "x": 8.157,
   "y": -0.642,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "STOP IN connector",
   "x": 0.892,
   "y": 4.36,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "On-board stop button",
   "x": -8.458,
   "y": 4.935,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "3 / 15 — Safety: stop loop, Linux watchdog, output enable latch",
   "x": -13.008,
   "y": 6.703,
   "fontSize": 0.42,
   "anchor": "left"
  },
  {
   "text": "KILL_N = ESTOP_OK AND LNX_WDT_OK AND IN_PG (74LVC1G11). PORT_HW_EN = Q of the 74LVC1G74: cleared by KILL_N low, set only by a rising PORT_ARM edge from Linux.",
   "x": -13.008,
   "y": -5.492,
   "fontSize": 0.23,
   "anchor": "left"
  },
  {
   "text": "Stop loop: V3V3_AON - RESTSRC 330R - JESTOP (bridged by RSTOPEXT) - SWSTOP - ESTOP_OK - RESTPD 2k2 to GND. Any open in the loop = stop. Loop current 1.3 mA.",
   "x": -13.008,
   "y": -5.942,
   "fontSize": 0.23,
   "anchor": "left"
  },
  {
   "text": "TPS3823-33: Linux must toggle LNX_WDI faster than every 1.6 s. Every PD OUT eFuse enable = PORT_HW_EN AND supervisor request (sheets 6-9).",
   "x": -13.008,
   "y": -6.392,
   "fontSize": 0.23,
   "anchor": "left"
  }
 ],
 "supervisor_A": [
  {
   "text": "STM32G0B1CBT6 supervisor A: USB-PD source for PD OUT 4 and PD OUT 3",
   "x": -3.63,
   "y": 4.975,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "SWD A (SWCLK, GND, SWDIO)",
   "x": 2.68,
   "y": 1.075,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "4 / 15 — Supervisor A (PD OUT 4, PD OUT 3)",
   "x": -14.349,
   "y": 6.995,
   "fontSize": 0.42,
   "anchor": "left"
  },
  {
   "text": "Pin functions from ST open pin data STM32G0B1C(B-C-E)Tx: UCPD1 CC1 / CC2 = PA8 / PB15, UCPD2 CC1 / CC2 = PD0 / PD2, I2C1 = PB8 / PB9 (converters), I2C2 = PB10 / PB11 (to Linux).",
   "x": -14.349,
   "y": -6.465,
   "fontSize": 0.23,
   "anchor": "left"
  },
  {
   "text": "Runs from V3V3_AON, independent of Linux. Converter addresses: PD OUT 4 = 0x74, PD OUT 3 = 0x75. Decoupling per ST RM0444 / DS13560. Also measures the input (VIN_SNS, IIN_MON) and can switch the input eFuse off.",
   "x": -14.349,
   "y": -6.915,
   "fontSize": 0.23,
   "anchor": "left"
  }
 ],
 "supervisor_B": [
  {
   "text": "STM32G0B1CBT6 supervisor B: USB-PD source for PD OUT 2 and PD OUT 1",
   "x": -1.821,
   "y": 4.975,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "SWD B (SWCLK, GND, SWDIO)",
   "x": 5.78,
   "y": 1.05,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "5 / 15 — Supervisor B (PD OUT 2, PD OUT 1)",
   "x": -11.225,
   "y": 6.995,
   "fontSize": 0.42,
   "anchor": "left"
  },
  {
   "text": "Pin functions from ST open pin data STM32G0B1C(B-C-E)Tx: UCPD1 CC1 / CC2 = PA8 / PB15, UCPD2 CC1 / CC2 = PD0 / PD2, I2C1 = PB8 / PB9 (converters), I2C2 = PB10 / PB11 (to Linux).",
   "x": -11.225,
   "y": -6.765,
   "fontSize": 0.23,
   "anchor": "left"
  },
  {
   "text": "Runs from V3V3_AON, independent of Linux. Converter addresses: PD OUT 2 = 0x74, PD OUT 1 = 0x75. Decoupling per ST RM0444 / DS13560.",
   "x": -11.225,
   "y": -7.215,
   "fontSize": 0.23,
   "anchor": "left"
  }
 ],
 "pd_out_1": [
  {
   "text": "TPS55288 buck-boost, 5 to 20 V (I2C)",
   "x": 2.947,
   "y": 7.985,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "Buck leg, high side",
   "x": -18.903,
   "y": 6.26,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "Buck leg, low side",
   "x": -11.603,
   "y": 5.81,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "TPS25947 eFuse, about 3.5 A",
   "x": -7.789,
   "y": -4.365,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "Enable = PORT_HW_EN AND supervisor",
   "x": 12.853,
   "y": 6.37,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "VBUS discharge",
   "x": 14.843,
   "y": 4.535,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "TPD6S300 CC protection",
   "x": 10.364,
   "y": -4.973,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "USB-C PD OUT 1",
   "x": 16.649,
   "y": -5.975,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "6 / 15 — PD OUT 1 power port",
   "x": -20.143,
   "y": 12.36,
   "fontSize": 0.42,
   "anchor": "left"
  },
  {
   "text": "References: TI TPS55288 datasheet (MODE resistor Table 7-2: 6.19k = address 0x74, 24.9k = 0x75; 49.9k -> 400 kHz, sec. 8.2.2.1), TPS25947 and TPD6S300 typical applications.",
   "x": -20.143,
   "y": -12.505,
   "fontSize": 0.23,
   "anchor": "left"
  },
  {
   "text": "TPS25947: ILIM = 3340 / R(ILM): 953R -> about 3.5 A; OVLO 1.2 V x (180k + 10k) / 10k = 22.8 V. Output current sense 10 mOhm. VBUS_SNS, IMON and ILM go to the supervisor (sheets 4-5).",
   "x": -20.143,
   "y": -12.955,
   "fontSize": 0.23,
   "anchor": "left"
  },
  {
   "text": "Power flow: VIN_SYS -> TPS55288 -> TPS25947 -> VBUS on the connector. A stop removes PORT_HW_EN (sheet 3) and cuts VBUS without any firmware.",
   "x": -20.143,
   "y": -13.405,
   "fontSize": 0.23,
   "anchor": "left"
  }
 ],
 "pd_out_2": [
  {
   "text": "TPS55288 buck-boost, 5 to 20 V (I2C)",
   "x": 2.947,
   "y": 7.985,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "Buck leg, high side",
   "x": -18.903,
   "y": 6.26,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "Buck leg, low side",
   "x": -11.603,
   "y": 5.81,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "TPS25947 eFuse, about 3.5 A",
   "x": -7.789,
   "y": -4.365,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "Enable = PORT_HW_EN AND supervisor",
   "x": 12.853,
   "y": 6.37,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "VBUS discharge",
   "x": 14.843,
   "y": 4.535,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "TPD6S300 CC protection",
   "x": 10.364,
   "y": -4.973,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "USB-C PD OUT 2",
   "x": 16.649,
   "y": -5.975,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "7 / 15 — PD OUT 2 power port",
   "x": -20.143,
   "y": 12.36,
   "fontSize": 0.42,
   "anchor": "left"
  },
  {
   "text": "References: TI TPS55288 datasheet (MODE resistor Table 7-2: 6.19k = address 0x74, 24.9k = 0x75; 49.9k -> 400 kHz, sec. 8.2.2.1), TPS25947 and TPD6S300 typical applications.",
   "x": -20.143,
   "y": -12.505,
   "fontSize": 0.23,
   "anchor": "left"
  },
  {
   "text": "TPS25947: ILIM = 3340 / R(ILM): 953R -> about 3.5 A; OVLO 1.2 V x (180k + 10k) / 10k = 22.8 V. Output current sense 10 mOhm. VBUS_SNS, IMON and ILM go to the supervisor (sheets 4-5).",
   "x": -20.143,
   "y": -12.955,
   "fontSize": 0.23,
   "anchor": "left"
  },
  {
   "text": "Power flow: VIN_SYS -> TPS55288 -> TPS25947 -> VBUS on the connector. A stop removes PORT_HW_EN (sheet 3) and cuts VBUS without any firmware.",
   "x": -20.143,
   "y": -13.405,
   "fontSize": 0.23,
   "anchor": "left"
  }
 ],
 "pd_out_3": [
  {
   "text": "TPS55288 buck-boost, 5 to 20 V (I2C)",
   "x": 2.947,
   "y": 7.985,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "Buck leg, high side",
   "x": -18.903,
   "y": 6.26,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "Buck leg, low side",
   "x": -11.603,
   "y": 5.81,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "TPS25947 eFuse, about 3.5 A",
   "x": -7.789,
   "y": -4.365,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "Enable = PORT_HW_EN AND supervisor",
   "x": 12.853,
   "y": 6.37,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "VBUS discharge",
   "x": 14.843,
   "y": 4.535,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "TPD6S300 CC protection",
   "x": 10.364,
   "y": -4.973,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "USB-C PD OUT 3",
   "x": 16.649,
   "y": -5.975,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "8 / 15 — PD OUT 3 power port",
   "x": -20.143,
   "y": 12.36,
   "fontSize": 0.42,
   "anchor": "left"
  },
  {
   "text": "References: TI TPS55288 datasheet (MODE resistor Table 7-2: 6.19k = address 0x74, 24.9k = 0x75; 49.9k -> 400 kHz, sec. 8.2.2.1), TPS25947 and TPD6S300 typical applications.",
   "x": -20.143,
   "y": -12.505,
   "fontSize": 0.23,
   "anchor": "left"
  },
  {
   "text": "TPS25947: ILIM = 3340 / R(ILM): 953R -> about 3.5 A; OVLO 1.2 V x (180k + 10k) / 10k = 22.8 V. Output current sense 10 mOhm. VBUS_SNS, IMON and ILM go to the supervisor (sheets 4-5).",
   "x": -20.143,
   "y": -12.955,
   "fontSize": 0.23,
   "anchor": "left"
  },
  {
   "text": "Power flow: VIN_SYS -> TPS55288 -> TPS25947 -> VBUS on the connector. A stop removes PORT_HW_EN (sheet 3) and cuts VBUS without any firmware.",
   "x": -20.143,
   "y": -13.405,
   "fontSize": 0.23,
   "anchor": "left"
  }
 ],
 "pd_out_4": [
  {
   "text": "TPS55288 buck-boost, 5 to 20 V (I2C)",
   "x": 2.947,
   "y": 7.985,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "Buck leg, high side",
   "x": -18.903,
   "y": 6.26,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "Buck leg, low side",
   "x": -11.603,
   "y": 5.81,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "TPS25947 eFuse, about 3.5 A",
   "x": -7.789,
   "y": -4.365,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "Enable = PORT_HW_EN AND supervisor",
   "x": 12.853,
   "y": 6.37,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "VBUS discharge",
   "x": 14.843,
   "y": 4.535,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "TPD6S300 CC protection",
   "x": 10.364,
   "y": -4.973,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "USB-C PD OUT 4",
   "x": 16.649,
   "y": -5.975,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "9 / 15 — PD OUT 4 power port",
   "x": -20.143,
   "y": 12.36,
   "fontSize": 0.42,
   "anchor": "left"
  },
  {
   "text": "References: TI TPS55288 datasheet (MODE resistor Table 7-2: 6.19k = address 0x74, 24.9k = 0x75; 49.9k -> 400 kHz, sec. 8.2.2.1), TPS25947 and TPD6S300 typical applications.",
   "x": -20.143,
   "y": -12.505,
   "fontSize": 0.23,
   "anchor": "left"
  },
  {
   "text": "TPS25947: ILIM = 3340 / R(ILM): 953R -> about 3.5 A; OVLO 1.2 V x (180k + 10k) / 10k = 22.8 V. Output current sense 10 mOhm. VBUS_SNS, IMON and ILM go to the supervisor (sheets 4-5).",
   "x": -20.143,
   "y": -12.955,
   "fontSize": 0.23,
   "anchor": "left"
  },
  {
   "text": "Power flow: VIN_SYS -> TPS55288 -> TPS25947 -> VBUS on the connector. A stop removes PORT_HW_EN (sheet 3) and cuts VBUS without any firmware.",
   "x": -20.143,
   "y": -13.405,
   "fontSize": 0.23,
   "anchor": "left"
  }
 ],
 "mpu": [
  {
   "text": "Allwinner T113-S3 Linux SoC (128 MB DDR3 inside)",
   "x": 1.54,
   "y": 11.221,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "24 MHz crystal",
   "x": -8.81,
   "y": 1.35,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "10 / 15 — T113-S3 Linux SoC",
   "x": -15.16,
   "y": 12.921,
   "fontSize": 0.42,
   "anchor": "left"
  },
  {
   "text": "USB1 = host to the CH338F hub (sheet 13); USB0 = device / FEL on the PC port (14). microSD on SDC0 (11). Debug UART0 on PE2 / PE3 (15). Supplies and reset: sheet 12.",
   "x": -15.16,
   "y": -11.712,
   "fontSize": 0.23,
   "anchor": "left"
  },
  {
   "text": "GPIO: PG0 watchdog kick, PG1 PORT_ARM, PG3 hub reset, PG4 / PG5 LEDs, PG6 PC VBUS sense, PG12 supervisor interrupt.",
   "x": -15.16,
   "y": -12.162,
   "fontSize": 0.23,
   "anchor": "left"
  },
  {
   "text": "PD0-PD4 = 5 V enable of USB 1, USB 2, USB 3, USB 4 and CAM (high = on). 10k to GND on each: a port stays off until Linux drives its pin. DZQ: 240R 1 %.",
   "x": -15.16,
   "y": -12.612,
   "fontSize": 0.23,
   "anchor": "left"
  }
 ],
 "emmc": [
  {
   "text": "microSD socket (boot and storage)",
   "x": -1.149,
   "y": 4.175,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "11 / 15 — microSD boot storage",
   "x": -7.145,
   "y": 5.875,
   "fontSize": 0.42,
   "anchor": "left"
  },
  {
   "text": "47k pull-ups on CMD and DAT (SD specification), 22R in series with CK, card-detect pull-up.",
   "x": -7.145,
   "y": -4.965,
   "fontSize": 0.23,
   "anchor": "left"
  },
  {
   "text": "Linux boots from this card. With no bootable card the T113 waits in FEL mode on the PC port (sheet 14).",
   "x": -7.145,
   "y": -5.415,
   "fontSize": 0.23,
   "anchor": "left"
  }
 ],
 "pmic": [
  {
   "text": "TLV62569 3.3 V",
   "x": -12.633,
   "y": -1.642,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "TLV62569 0.95 V core",
   "x": -3.225,
   "y": 9.585,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "TLV62569 1.5 V DRAM",
   "x": 2.375,
   "y": 4.851,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "XC6206 1.8 V",
   "x": -2.55,
   "y": -5.935,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "XC6206 1.8 V for the RTC pin",
   "x": 7.3,
   "y": -5.935,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "TLV803S reset",
   "x": 9.018,
   "y": -1.835,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "12 / 15 — SoC power and reset",
   "x": -13.783,
   "y": 11.285,
   "fontSize": 0.42,
   "anchor": "left"
  },
  {
   "text": "TLV62569 (TI typical application): Vout = 0.6 V x (1 + Rtop / Rbot): 180k / 40.2k -> 3.29 V, 59k / 100k -> 0.95 V, 150k / 100k -> 1.5 V. 2.2 uH, 10 uF in, 2 x 22 uF out.",
   "x": -13.783,
   "y": -9.825,
   "fontSize": 0.23,
   "anchor": "left"
  },
  {
   "text": "Sequence: 3.3 V starts from V5V0; core and DRAM are enabled from 3.3 V through 100k x 100 nF (about 3.5 ms). TLV803S (2.93 V, 200 ms) holds RESET low until 3.3 V is good.",
   "x": -13.783,
   "y": -10.275,
   "fontSize": 0.23,
   "anchor": "left"
  }
 ],
 "usb_hub": [
  {
   "text": "CH338F 7-port USB 2.0 hub (5 ports used)",
   "x": 1.863,
   "y": 5.675,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "25 MHz crystal",
   "x": -6.938,
   "y": 1.15,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "13 / 15 — USB 2.0 hub",
   "x": -12.062,
   "y": 7.375,
   "fontSize": 0.42,
   "anchor": "left"
  },
  {
   "text": "References: WCH CH338 datasheet V1.3 figures 8-1 and 8-4, and WCH evaluation board CH338F-R0-1v1: same supply capacitors, 4.7M on XI, 30 pF on XO, PWREN# pulled low with 5.1k.",
   "x": -12.062,
   "y": -5.665,
   "fontSize": 0.23,
   "anchor": "left"
  },
  {
   "text": "PWREN# low at reset = the chip's own USB-PD function off. RESET#: RHUBRST 1k holds the hub in reset until Linux drives PG3 high. CFG, CC and SMBus pins open = plain hub.",
   "x": -12.062,
   "y": -6.115,
   "fontSize": 0.23,
   "anchor": "left"
  },
  {
   "text": "Hub port behind each connector: USB 1 = port 1, USB 2 = port 2, USB 3 = port 5, USB 4 = port 4, CAM = port 3. Ports 6 and 7 are not used. Port 5 V is switched by Linux (sheet 14).",
   "x": -12.062,
   "y": -6.565,
   "fontSize": 0.23,
   "anchor": "left"
  }
 ],
 "usb_ports": [
  {
   "text": "USB 1",
   "x": -6.7,
   "y": 8.65,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "USB 2",
   "x": 18.7,
   "y": 8.65,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "USB 3",
   "x": -6.7,
   "y": 2.05,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "USB 4",
   "x": 18.7,
   "y": 2.05,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "CAM (camera)",
   "x": 2.1,
   "y": -4.55,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "PC (computer)",
   "x": 18.9,
   "y": -4.55,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "5 V switch, 0.5 A",
   "x": -17.85,
   "y": 8.865,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "5 V switch, 0.5 A",
   "x": 7.55,
   "y": 8.865,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "5 V switch, 0.5 A",
   "x": -17.85,
   "y": 2.265,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "5 V switch, 0.5 A",
   "x": 7.55,
   "y": 2.265,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "5 V switch, 1 A",
   "x": -15.85,
   "y": -4.335,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "ESD",
   "x": -17.75,
   "y": 7.95,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "ESD",
   "x": 8.65,
   "y": 7.95,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "ESD",
   "x": -17.75,
   "y": 1.35,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "ESD",
   "x": 8.65,
   "y": 1.35,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "ESD",
   "x": -15.75,
   "y": -5.25,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "ESD",
   "x": 2.9,
   "y": -5.25,
   "fontSize": 0.3,
   "anchor": "left"
  },
  {
   "text": "14 / 15 — USB data ports",
   "x": -24.2,
   "y": 10.565,
   "fontSize": 0.42,
   "anchor": "left"
  },
  {
   "text": "Each downstream port (USB 1-4, CAM): Rp 56k to 5 V on CC1 / CC2 (default USB power), USBLC6-2SC6 on D+ / D-, SY6280 5 V switch. Limit by ISET: 13.7k -> 0.5 A, 6.8k -> 1 A.",
   "x": -24.2,
   "y": -9.94,
   "fontSize": 0.23,
   "anchor": "left"
  },
  {
   "text": "Switch enables come from Linux (PD0-PD4, sheet 10): a port's 5 V is off until Linux turns it on. Data pairs go to the CH338F hub (sheet 13).",
   "x": -24.2,
   "y": -10.39,
   "fontSize": 0.23,
   "anchor": "left"
  },
  {
   "text": "PC port: Rd 5.1k on CC1 / CC2 (USB device), data to the T113's USB0, VBUS sensed through 10k / 20k on PG6.",
   "x": -24.2,
   "y": -10.84,
   "fontSize": 0.23,
   "anchor": "left"
  }
 ],
 "debug": [
  {
   "text": "15 / 15 — Debug console, reset, LEDs",
   "x": -8.125,
   "y": 4.08,
   "fontSize": 0.42,
   "anchor": "left"
  },
  {
   "text": "Debug UART: T113 UART0, PE2 = TX, PE3 = RX, 3.3 V levels, no power pin (tscircuit standard 3-pin JST SH: RX, GND, TX).",
   "x": -8.125,
   "y": -3.48,
   "fontSize": 0.23,
   "anchor": "left"
  },
  {
   "text": "LEDs: STATUS (PG4), ACT (PG5), OUT ON (PORT_HW_EN). The reset button pulls the SoC reset line low.",
   "x": -8.125,
   "y": -3.93,
   "fontSize": 0.23,
   "anchor": "left"
  }
 ]
}