Skip to content

pinctrl: apple: Support host-owned GPIO interrupt groups - #255

Closed
DjDeveloperr wants to merge 2 commits into
apif-dcp-firmwarefrom
apif-gpio-irqs
Closed

DjDeveloperr wants to merge 2 commits into
apif-dcp-firmwarefrom
apif-gpio-irqs

Conversation

@DjDeveloperr

Copy link
Copy Markdown
Contributor

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.

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>
@DjDeveloperr

Copy link
Copy Markdown
Contributor Author

Superseded by #486, refreshed from the current T6050 source onto Linux 7.3 integration. The new shared base is #472; all feature PRs now target t6050/base. Closing this stale chained version and keeping its branch for history.

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