-
Notifications
You must be signed in to change notification settings - Fork 267
Add Pinmux Register Address Lookup Tool #130
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
Merged
Merged
Changes from 15 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
35934aa
(orin nx/nano) Add pinmux configuration warnings
tsar-boomba df047db
Remove gpio bit check (unnecessary); Add PWM SFIO check
tsar-boomba 33316b6
Add tests for pinmux warnings
tsar-boomba 7cbd21e
Remove pinmux check for PWM since driver sets bit automatically
tsar-boomba a001eac
Remove pinmux check from PWM constructor
tsar-boomba c89035d
Add pinmux support for Jetson Orin
tsar-boomba 76097ca
Add pinmux checks for Xavier, X2, and X1
tsar-boomba a7a2dfd
Revert "Add pinmux checks for Xavier, X2, and X1"
tsar-boomba 1e56d80
Remove unused register_addr function
tsar-boomba 449d04d
Added CLI tool to return GPIO pin mux register address based on provi…
tganeshram 32cc92e
Adding command for tool to pypi and Debian packages, test changes, an…
tganeshram 4d11c35
hex output format correction
tganeshram be2fc02
import changes, test changes, tool instructions added to readme, new …
tganeshram 1b3706b
New script to update pin_data_file JETSON_ORIN_PIN_DEFS and JETSON_OR…
tganeshram aadf4b6
edit pinmux lookup test based on new addresses
tganeshram 6b52be8
update copyrights, move gpio pin data update tools to dev, update exi…
tganeshram 70f1252
updating copyright dates
tganeshram 566ebee
UnboundLocalError bug fix
tganeshram 4c5903d
pinmux address change in test
tganeshram 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| # Pin Numbering Modes | ||
| BOARD = 10 | ||
| BCM = 11 | ||
| TEGRA_SOC = 1000 | ||
| CVM = 1001 | ||
|
|
||
| # The constants and their offsets are implemented to prevent HIGH from being | ||
| # used in place of other variables (ie. HIGH and RISING should not be | ||
| # interchangeable) | ||
|
|
||
| # Pull up/down options | ||
| _PUD_OFFSET = 20 | ||
| PUD_OFF = 0 + _PUD_OFFSET | ||
| PUD_DOWN = 1 + _PUD_OFFSET | ||
| PUD_UP = 2 + _PUD_OFFSET | ||
|
|
||
| HIGH = 1 | ||
| LOW = 0 | ||
|
|
||
| # Edge possibilities | ||
| # These values (with _EDGE_OFFSET subtracted) must match gpio_event.py:*_EDGE | ||
| _EDGE_OFFSET = 30 | ||
| RISING = 1 + _EDGE_OFFSET | ||
| FALLING = 2 + _EDGE_OFFSET | ||
| BOTH = 3 + _EDGE_OFFSET | ||
|
|
||
| # GPIO directions. UNKNOWN constant is for gpios that are not yet setup | ||
| UNKNOWN = -1 | ||
| OUT = 0 | ||
| IN = 1 | ||
| HARD_PWM = 43 |
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because the data structure change i think this need to change also