Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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 May 20, 2025
df047db
Remove gpio bit check (unnecessary); Add PWM SFIO check
tsar-boomba May 21, 2025
33316b6
Add tests for pinmux warnings
tsar-boomba May 22, 2025
7cbd21e
Remove pinmux check for PWM since driver sets bit automatically
tsar-boomba May 23, 2025
a001eac
Remove pinmux check from PWM constructor
tsar-boomba May 27, 2025
c89035d
Add pinmux support for Jetson Orin
tsar-boomba Jun 5, 2025
76097ca
Add pinmux checks for Xavier, X2, and X1
tsar-boomba Jun 5, 2025
a7a2dfd
Revert "Add pinmux checks for Xavier, X2, and X1"
tsar-boomba Jun 10, 2025
1e56d80
Remove unused register_addr function
tsar-boomba Jun 10, 2025
449d04d
Added CLI tool to return GPIO pin mux register address based on provi…
tganeshram Sep 17, 2025
32cc92e
Adding command for tool to pypi and Debian packages, test changes, an…
tganeshram Sep 17, 2025
4d11c35
hex output format correction
tganeshram Sep 17, 2025
be2fc02
import changes, test changes, tool instructions added to readme, new …
tganeshram Sep 18, 2025
1b3706b
New script to update pin_data_file JETSON_ORIN_PIN_DEFS and JETSON_OR…
tganeshram Sep 23, 2025
aadf4b6
edit pinmux lookup test based on new addresses
tganeshram Sep 23, 2025
6b52be8
update copyrights, move gpio pin data update tools to dev, update exi…
tganeshram Sep 23, 2025
70f1252
updating copyright dates
tganeshram Sep 23, 2025
566ebee
UnboundLocalError bug fix
tganeshram Sep 24, 2025
4c5903d
pinmux address change in test
tganeshram Sep 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 22 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,23 @@ rules by running:
sudo udevadm control --reload-rules && sudo udevadm trigger
```

# Pinmux Lookup Tool

The `jetson-gpio-pinmux-lookup` command-line tool helps you find the pinmux register address for GPIO pins. This is useful for debugging or setting up pinmux configurations.

**Usage:**
```shell
jetson-gpio-pinmux-lookup <gpio_pin_number>
```

**Example:**
```shell
jetson-gpio-pinmux-lookup 7
# Output on Orin Device: GPIO Pin 7: Mux Register Address = 0x2430070
```

The tool accepts BOARD mode GPIO pin numbers (1-40) and returns the corresponding pinmux register address in hexadecimal format.

# Running the sample scripts

With the permissions set as needed, the sample applications provided in the
Expand Down Expand Up @@ -184,8 +201,11 @@ None.
It is possible that the GPIO you are trying to use is already being used
external to the current application. In such a condition, the Jetson GPIO
library will warn you if the GPIO being used is configured to anything but the
default direction (input). It will also warn you if you try cleaning up before
setting up the mode and channels. To disable warnings, call:
default direction (input). It will also warn you if:
* You try cleaning up before setting up the mode and channels.
* (Orin NX/Nano only) The pinmux for a requested pin is not properly confirgured to GPIO and the correct direction.

To disable warnings, call:
```python
GPIO.setwarnings(False)
```
Expand Down
Loading
Loading