-
Notifications
You must be signed in to change notification settings - Fork 29
GPIO protocol, Maaxboard support #619
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
omeh-a
wants to merge
10
commits into
main
Choose a base branch
from
gpio_driver_tristan
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
22cd22b
Add GPIO driver (Tristan)
TristanCM347 82da6e2
Update GPIO to work with current sddf, fixed examples.
omeh-a d5f2f0c
Add GPIO build tests
omeh-a c3d2a58
[do not merge]: test CI with Nix works
Ivan-Velickovic f9a440f
examples/gpio: add MICROKIT_CONFIG ?= debug
Ivan-Velickovic d8c52ad
examples/gpio: fix build.zig
Ivan-Velickovic 83de1cb
ci: add zig build for gpio
Ivan-Velickovic 6af3705
ci: gpio.py fixes
Ivan-Velickovic ed00698
Removed spurious ARM barrier features from GPIO
omeh-a fa1e780
Various fixups of grammar, replaced seL4 calls with microkit ones, up…
omeh-a File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| #!/usr/bin/env python3 | ||
| # Copyright 2026, UNSW | ||
| # SPDX-License-Identifier: BSD-2-Clause | ||
|
|
||
| import asyncio | ||
| from pathlib import Path | ||
| import sys | ||
|
|
||
| sys.path.insert(1, Path(__file__).parents[2].as_posix()) | ||
|
|
||
| from ci.lib.backends import * | ||
| from ci.lib.runner import run_single_example, matrix_product | ||
| from ci.common import TestConfig | ||
| from ci import common, matrix | ||
|
|
||
| TEST_MATRIX = matrix_product( | ||
| example=["gpio"], | ||
| board=matrix.EXAMPLES["gpio"]["boards_test"], | ||
| config=matrix.EXAMPLES["gpio"]["configs"], | ||
| build_system=matrix.EXAMPLES["gpio"]["build_systems"], | ||
| ) | ||
|
|
||
|
|
||
| def backend_fn(test_config: TestConfig, loader_img: Path) -> HardwareBackend: | ||
| backend = common.backend_fn(test_config, loader_img) | ||
| return backend | ||
|
|
||
|
|
||
| async def test(backend: HardwareBackend, test_config: TestConfig): | ||
| async with asyncio.timeout(60): | ||
| await wait_for_output(backend, b" ... is present!\r\n") | ||
|
|
||
|
|
||
| if __name__ == "__main__": | ||
| run_single_example( | ||
| test, | ||
| TEST_MATRIX, | ||
| backend_fn, | ||
| ) | ||
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| { | ||
| "compatible": [ | ||
| "fsl,imx8mq-gpio", | ||
| "fsl,imx35-gpio" | ||
| ], | ||
| "resources": { | ||
| "regions": [ | ||
| { | ||
| "name": "regs", | ||
| "perms": "rw", | ||
| "size": 65536, | ||
| "dt_index": 0 | ||
| } | ||
| ], | ||
| "irqs": [ | ||
| { | ||
| "dt_index": 0, | ||
| "channel_id": 60 | ||
| }, | ||
| { | ||
| "dt_index": 1, | ||
| "channel_id": 61 | ||
| } | ||
| ] | ||
| } | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.