Repository navigation
kernel: PMU events on the D2207, and Smart Cover wake on the iPad Air 2 and mini 4 - #133
Merged
Merged
Conversation
… 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.