Skip to content

kernel: PMU events on the D2207, and Smart Cover wake on the iPad Air 2 and mini 4 - #133

Merged
henrikklee merged 1 commit into
mainfrom
d2207-events
Nov 12, 2026
Merged

henrikklee merged 1 commit into
mainfrom
d2207-events

Conversation

@henrikklee

Copy link
Copy Markdown
Contributor

Register layout of the D2207 PMU event block from Apple's iOS AppleD2207PMU driver (iPad Air 2 kernel): 112 events at 0x50 (clear on read), mask at 0x70, GPIO line n = event 0x18 + n; the same method re-derives the known D2365 values from the iPad 6 kernel. Binding, driver match data, and the Air 2 / mini 4 device trees (PMU line SoC GPIO 86 / 107 from their ADTs; Smart Cover halls GPIO 12/10 as wake-only events 0x24/0x22). First step to sleep on A8/A8X; untested.

… 2 and mini 4

The D2207 power chip of the iPad Air 2 and iPad mini 4 latches PMU
events like the D2365 of the iPad 5, 6 and 7. From Apple's iOS
AppleD2207PMU driver: 112 events in 14 bytes at 0x50 (cleared on read),
the mask at 0x70, GPIO line n at event 0x18 + n; the same method gives
back the known D2365 layout from the iPad 6 kernel. The driver now
serves the D2207 event controller from that layout, and both boards
make their PMU line (SoC GPIO 86 on the Air 2, 107 on the mini 4, from
their Apple device trees) the event interrupt and list the Smart Cover
hall sensors (GPIO 12 and 10: events 0x24 and 0x22) as wake-only, as
on the iPad 5 and 6. A first step to sleep on these boards; untested.
@henrikklee
henrikklee merged commit 6bffa7a into main Nov 12, 2026
11 checks passed
@henrikklee
henrikklee deleted the d2207-events branch November 12, 2026 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant