Buttons and keys
The XP8800 has nine physical keys. Most are usual active-low GPIO keys. The PM660 PMIC (PON block) gives the power key and the volume-down key. A PM660L GPIO gives the volume-up key.
The dedicated push-to-talk (PTT) and SOS keys make the device useful as a field handheld.
Key map
| Key | Source | Polarity | Linux code (name) |
|---|---|---|---|
| Power | PM660 PON pwrkey |
— | 0x74 (KEY_POWER) |
| Volume down | PM660 PON resin |
— | 0x72 (KEY_VOLUMEDOWN) |
| Volume up | PM660L GPIO 7 | Active low | 0x73 (KEY_VOLUMEUP) |
| Home | PM660 GPIO 11 | Active low | 0xac (KEY_HOME) |
| App switch / Menu | TLMM 40 | Active low | 0x244 (KEY_ALL_APPLICATIONS) |
| Back | TLMM 64 | Active low | 0x9e (KEY_BACK) |
| SOS | TLMM 75 | Active low | 0x94 (KEY_PROG1, decimal 148) |
| PTT | TLMM 76 | Active low | 0x95 (KEY_PROG2, decimal 149) |
| Camera / programmable | TLMM 113 | Active low | 0xd4 (KEY_CAMERA, stock uses 0x2fe) |
All nine keys were verified in evtest on the reference unit. Each key gave one push and one release.
The stock camera code 0x2fe is a vendor value. It maps to KEY_CAMERA (0xd4) in Linux.
The volume keys are the opposite of the volume keys on Sony SDM630 phones. On the XP8, volume-up is a PM660L GPIO and volume-down is the PMIC
resininput. Device trees that you copy from the Sony Xperia XA2 (sony-pioneer) have these two keys swapped.
Key assignments
flowchart TB
subgraph PMIC["PM660 / PM660L"]
PWR["Power — PON pwrkey — KEY_POWER 0x74"]
VOLD["Volume down — PON resin — KEY_VOLUMEDOWN 0x72"]
VOLU["Volume up — PM660L GPIO 7 — KEY_VOLUMEUP 0x73"]
HOME["Home — PM660 GPIO 11 — KEY_HOME 0xac"]
end
subgraph TLMM["TLMM GPIO keys (active low)"]
MENU["App switch — TLMM 40 — KEY_ALL_APPLICATIONS 0x244"]
BACK["Back — TLMM 64 — KEY_BACK 0x9e"]
SOS["SOS — TLMM 75 — KEY_PROG1 0x94"]
PTT["PTT — TLMM 76 — KEY_PROG2 0x95"]
CAM["Camera — TLMM 113 — KEY_CAMERA 0xd4"]
end
PTT and SOS meaning
At the hardware level, the two keys are plain GPIO keys. Software decides the meaning:
- PTT is a short-action control (hold to speak). A daemon usually reads
KEY_PROG2and sends push and release events. - SOS is usually a guarded action. For example, the user must hold the key for some seconds before the system arms and releases the task.
What SOS does (voice call, message, beacon) is a policy decision, not a hardware decision.