Repository navigation
pinctrl: apple: Support host-owned GPIO interrupt groups - #255
Closed
DjDeveloperr wants to merge 2 commits into
Closed
DjDeveloperr wants to merge 2 commits into
DjDeveloperr wants to merge 2 commits into
Conversation
Allow the loader to name a consecutive range of GPIO interrupt groups owned by the host while preserving resident firmware's groups. Signed-off-by: Dj <hey@djdev.me>
Read the loader-selected interrupt group base instead of always programming group zero. Use explicit controller/group descriptors for the chained parent handlers and validate every pending register bank against the resource aperture before touching hardware. Preserve the public sparse-register and reserved-GPIO protections. Ignore pending bits outside the final partial GPIO bank. Signed-off-by: Dj <hey@djdev.me>
Contributor
Author
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.
Allows a loader-selected, host-owned GPIO interrupt-group range instead of always programming group zero. Chained handlers carry explicit controller/group descriptors, and the driver validates the pending-register banks against the MMIO aperture before accessing hardware.
The public reserved-register protections remain in place. Bits beyond the final partial GPIO bank are ignored. The binding describes the group ownership contract and T6050 compatible.
Validation: native arm64 GPIO driver build, binding validation, sanitized production-helper tests for invalid group ranges and undersized apertures, and git diff --check. Hardware IRQ delivery qualification is pending.
Depends on #254. Binding and driver changes are separate signed-off commits.