Skip to content

Commit

Permalink
Fix Xavier NX pin defines based on chardev ABI
Browse files Browse the repository at this point in the history
Xavier NX gpiochip instances fixed to tegra194-gpio (and aon) instead of
tegra234-gpio (and aon)

Signed-off-by: Sandipan Patra <[email protected]>
  • Loading branch information
Sandipan Patra authored and anhmiuhv committed Feb 15, 2023
1 parent 1ef599c commit e82d18e
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 22 deletions.
12 changes: 12 additions & 0 deletions .pybuild/cpython2_2.7_jetson-gpio/.pydistutils.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[clean]
all=1
[build]
build-lib=/home/ubuntu/l/jetson-gpio/.pybuild/cpython2_2.7_jetson-gpio/build
[install]
force=1
install-layout=deb
install-scripts=$base/bin
install-lib=/usr/lib/python2.7/dist-packages
prefix=/usr
[easy_install]
allow_hosts=None
44 changes: 22 additions & 22 deletions lib/python/Jetson/GPIO/gpio_pin_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,28 +141,28 @@
)

JETSON_NX_PIN_DEFS = [
(118, 'PS.04', "tegra234-gpio", 7, 4, 'GPIO09', 'AUD_MCLK', None, None),
(112, 'PR.04', "tegra234-gpio", 11, 17, 'UART1_RTS', 'UART1_RTS', None, None),
(127, 'PT.05', "tegra234-gpio", 12, 18, 'I2S0_SCLK', 'DAP5_SCLK', None, None),
(149, 'PY.00', "tegra234-gpio", 13, 27, 'SPI1_SCK', 'SPI3_SCK', None, None),
(16, 'PCC.04', "tegra234-gpio-aon", 15, 22, 'GPIO12', 'TOUCH_CLK', "c340000.pwm", 0),
(153, 'PY.04', "tegra234-gpio", 16, 23, 'SPI1_CS1', 'SPI3_CS1_N', None, None),
(152, 'PY.03', "tegra234-gpio", 18, 24, 'SPI1_CS0', 'SPI3_CS0_N', None, None),
(162, 'PZ.05', "tegra234-gpio", 19, 10, 'SPI0_MOSI', 'SPI1_MOSI', None, None),
(161, 'PZ.04', "tegra234-gpio", 21, 9, 'SPI0_MISO', 'SPI1_MISO', None, None),
(150, 'PY.01', "tegra234-gpio", 22, 25, 'SPI1_MISO', 'SPI3_MISO', None, None),
(160, 'PZ.03', "tegra234-gpio", 23, 11, 'SPI0_SCK', 'SPI1_SCK', None, None),
(163, 'PZ.06', "tegra234-gpio", 24, 8, 'SPI0_CS0', 'SPI1_CS0_N', None, None),
(164, 'PZ.07', "tegra234-gpio", 26, 7, 'SPI0_CS1', 'SPI1_CS1_N', None, None),
(105, 'PQ.05', "tegra234-gpio", 29, 5, 'GPIO01', 'SOC_GPIO41', None, None),
(106, 'PQ.06', "tegra234-gpio", 31, 6, 'GPIO11', 'SOC_GPIO42', None, None),
(108, 'PR.00', "tegra234-gpio", 32, 12, 'GPIO07', 'SOC_GPIO44', '32f0000.pwm', 0),
(84, 'PN.01', "tegra234-gpio", 33, 13, 'GPIO13', 'SOC_GPIO54', '3280000.pwm', 0),
(130, 'PU.00', "tegra234-gpio", 35, 19, 'I2S0_FS', 'DAP5_FS', None, None),
(113, 'PR.05', "tegra234-gpio", 36, 16, 'UART1_CTS', 'UART1_CTS', None, None),
(151, 'PY.02', "tegra234-gpio", 37, 26, 'SPI1_MOSI', 'SPI3_MOSI', None, None),
(129, 'PT.07', "tegra234-gpio", 38, 20, 'I2S0_DIN', 'DAP5_DIN', None, None),
(128, 'PT.06', "tegra234-gpio", 40, 21, 'I2S0_DOUT', 'DAP5_DOUT', None, None)
(118, 'PS.04', "tegra194-gpio", 7, 4, 'GPIO09', 'AUD_MCLK', None, None),
(112, 'PR.04', "tegra194-gpio", 11, 17, 'UART1_RTS', 'UART1_RTS', None, None),
(127, 'PT.05', "tegra194-gpio", 12, 18, 'I2S0_SCLK', 'DAP5_SCLK', None, None),
(149, 'PY.00', "tegra194-gpio", 13, 27, 'SPI1_SCK', 'SPI3_SCK', None, None),
(16, 'PCC.04', "tegra194-gpio-aon", 15, 22, 'GPIO12', 'TOUCH_CLK', "c340000.pwm", 0),
(153, 'PY.04', "tegra194-gpio", 16, 23, 'SPI1_CS1', 'SPI3_CS1_N', None, None),
(152, 'PY.03', "tegra194-gpio", 18, 24, 'SPI1_CS0', 'SPI3_CS0_N', None, None),
(162, 'PZ.05', "tegra194-gpio", 19, 10, 'SPI0_MOSI', 'SPI1_MOSI', None, None),
(161, 'PZ.04', "tegra194-gpio", 21, 9, 'SPI0_MISO', 'SPI1_MISO', None, None),
(150, 'PY.01', "tegra194-gpio", 22, 25, 'SPI1_MISO', 'SPI3_MISO', None, None),
(160, 'PZ.03', "tegra194-gpio", 23, 11, 'SPI0_SCK', 'SPI1_SCK', None, None),
(163, 'PZ.06', "tegra194-gpio", 24, 8, 'SPI0_CS0', 'SPI1_CS0_N', None, None),
(164, 'PZ.07', "tegra194-gpio", 26, 7, 'SPI0_CS1', 'SPI1_CS1_N', None, None),
(105, 'PQ.05', "tegra194-gpio", 29, 5, 'GPIO01', 'SOC_GPIO41', None, None),
(106, 'PQ.06', "tegra194-gpio", 31, 6, 'GPIO11', 'SOC_GPIO42', None, None),
(108, 'PR.00', "tegra194-gpio", 32, 12, 'GPIO07', 'SOC_GPIO44', '32f0000.pwm', 0),
(84, 'PN.01', "tegra194-gpio", 33, 13, 'GPIO13', 'SOC_GPIO54', '3280000.pwm', 0),
(130, 'PU.00', "tegra194-gpio", 35, 19, 'I2S0_FS', 'DAP5_FS', None, None),
(113, 'PR.05', "tegra194-gpio", 36, 16, 'UART1_CTS', 'UART1_CTS', None, None),
(151, 'PY.02', "tegra194-gpio", 37, 26, 'SPI1_MOSI', 'SPI3_MOSI', None, None),
(129, 'PT.07', "tegra194-gpio", 38, 20, 'I2S0_DIN', 'DAP5_DIN', None, None),
(128, 'PT.06', "tegra194-gpio", 40, 21, 'I2S0_DOUT', 'DAP5_DOUT', None, None)
]
compats_nx = (
'nvidia,p3509-0000+p3668-0000',
Expand Down

0 comments on commit e82d18e

Please sign in to comment.