

Leif key
Hardware (KiCad) and CH552 firmware for the Leif focus key, a tiny USB-C key for Mac focus sessions.
- Size
- 11 × 16 mm
- Copper layers
- 2
- Thickness
- 1 mm
- Parts
- 14
- Nets
- 8
- Pads
- 70
- Tracks, vias
- 111, 14
- Pours
- 5
- Routed
- Yes
- KiCad
- KiCad 7 (file 20221018)
- Created
- 20 Oct 2026
- Updated
- 20 Oct 2026
Overview
Leif key is an open-source printed circuit board by smillay1, from the smillay1/leif-key repository on GitHub, published under the MIT licence. It is a 2-layer board of 11 × 16 mm with 14 parts on 8 nets, routed with 111 tracks and 14 vias.
It is built around the CH552T and USBLC6-2SC6. Its parts include 3 capacitors, 2 resistors, 2 ICs and 1 connector. It belongs with the 8051 (CH55x, STC, AT89) boards of this library.
Main components
2CH552T
TSSOP-20-40℃~+85℃ 12Mbps 3.3V~5V USB 2.0 USB to UART、USB to SPI TSSOP-20 USB Converters ROHSWCH (Nanjing Qinheng Microelectronics)USB ConvertersUSBLC6-2SC6
SOT-23-60.35pF、0.8pF 100nA 150W@8/20us 15V 2 5V 6A@8/20us 6V ESD SOT-23-6 ESD and Surge Protection (TVS/ESD) ROHSUMWESD And Surge Protection (TVS/ESD)
README
README.mdLeif Key
The hardware and firmware for the Leif focus key: a tiny USB-C key that starts and ends focus sessions on a Mac. Plug it in to start a session, take it away, plug it in again to finish. The key only identifies itself; the Leif app on the Mac does the rest.

What's here
| Folder | What it is | Licence |
|---|---|---|
hardware/ | KiCad board (11 × 16 mm, 2 layers), schematic, JLCPCB fabrication files (Gerbers, BOM, placement) and the Python scripts that generate them | CERN-OHL-P-2.0 |
firmware/ | Bare-metal C firmware for the WCH CH552T (SDCC), a prebuilt image, and the flashing and serial-numbering tools | MIT |
The board
- U1 WCH CH552T, an 8051 microcontroller with full-speed USB
- U2 ST USBLC6-2SC6 ESD protection on D+/D-
- J1 USB-C plug (Hanxia HX TYPE C-M 24P RA-ST, LCSC C55200595) at the board edge, 1.0 mm PCB
- R1 5.1 kΩ on CC1 so the Mac turns on VBUS; R2 10 kΩ for the bootloader fallback
- Test pads TP1–TP6 for power, data, boot and reset

How the key works
It enumerates as a vendor-specific USB device with no endpoints, so macOS needs no
driver. Product Leif Key, manufacturer Leif, serial LEIF-000001, LEIF-000002, ...
Two vendor control requests: 0xB0 (with wValue 0x1EAF) reboots into the CH552 USB
bootloader so a sealed key can be re-flashed, and 0xB1 returns the firmware version.
If the firmware is ever broken, bridging TP5 to TP3 while plugging in starts the bootloader.
Details, build steps and flashing are in firmware/README.md.
Ordering the board is described in hardware/ORDERING.md.
USB IDs
Currently 0x1209 / 0x0001 (pid.codes testing ID). A dedicated pid.codes PID has been
requested and will be listed here once assigned.
Licences
Firmware and tools: MIT (LICENSE). Hardware design files: CERN Open Hardware
Licence Version 2, Permissive (hardware/LICENSE). The Leif name and
logo are not covered by these licences.
Parts
14| Qty | Value | Footprint | References |
|---|---|---|---|
| 2 | 100nF | C_0402_1005Metric | C2, C3 |
| 1 | 10k | R_0402_1005Metric | R2 |
| 1 | 1uF | C_0402_1005Metric | C1 |
| 1 | 5.1k 1% | R_0402_1005Metric | R1 |
| 1 | BOOT | TestPoint_Pad_D1.0mm | TP5 |
| 1 | CH552T | TSSOP-20_4.4x6.5mm_P0.65mm | U1 |
| 1 | D+ | TestPoint_Pad_D1.0mm | TP3 |
| 1 | D- | TestPoint_Pad_D1.0mm | TP4 |
| 1 | GND | TestPoint_Pad_D1.0mm | TP2 |
| 1 | HX TYPE C-M 24P RA-ST | Leif:Hanxia_HX_TYPE-C-M_24P_RA-ST_USB-C_Plug | J1 |
| 1 | RST | TestPoint_Pad_D1.0mm | TP6 |
| 1 | USBLC6-2SC6 | SOT-23-6 | U2 |
| 1 | VBUS | TestPoint_Pad_D1.0mm | TP1 |
Similar boards
- 2 layers149.2 × 82.5 mm

- 2 layers94.9 × 76 mm

ToadsTempest
tikinson/ToadsTempest
Super small custom 42-keys column-staggered ergonomic mechanical keyboard powered by CH552T microcontroller, created for pocket keyboard design contest #00
113 parts11CC0-1.0 - 2 layers190.8 × 61.7 mm

Wahoo30
rqcoon/wahoo30
30% Keyboard based on the CH552T microcontroller using FAK firmware
79 parts4GPL-3.0 - 4 layers49.5 × 21.6 mm

USB Replug Dongle RevC1
gslee-dev/portpulse
USB replug test dongle with KiCad hardware, CH552 firmware, and native C host
38 partsMIT - 2 layers114.3 × 42 mm

Shine keyboard revb
kompeki0/shine-public
This directory is a deliberately minimal, editable source release for a pid.codes USB PID application. It contains the electronic hardware and the firmware needed to reproduce and modify the USB device.
27 parts - 2 layers143.6 × 139.6 mm

Kazhan oldCopy
tikinson/kazhan
custom 28-keys ergonomic mechanical keyboard powered by CH552T microcontroller
98 partsGPL-3.0 - 2 layers98.5 × 45.4 mm

Idawgz32
ChrisChrisLoLo/idawgz32
A full 32 key mechanical keyboard that can be made for only $5
81 parts77GPL-3.0 - 2 layers58.3 × 98.2 mm

SandKrux
sandman21vs/SandKrux
Placa de desenvolvimento baseada no chip K210, com entradas para touch, câmera e LCD grande, criada especificamente para rodar o firmware Krux.
176 parts21
Questions
How big is the Leif key PCB?
It measures 11 × 16 mm and has 2 copper layers, 1 mm thick.
What parts does the Leif key use?
14 parts, built around the CH552T and USBLC6-2SC6. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
Where can I download the Leif key KiCad files?
From the smillay1/leif-key repository on GitHub, at the commit this page was made from: the board is hardware/leif-key.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.
Can I use the Leif key design in my own project?
Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).