Skip to content

Commit e146009

Browse files
authored
Merge pull request #237 from anhmiuhv/agxorin
add support for Jetson AGX Orin
2 parents d8f247a + dd60822 commit e146009

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

adafruit_platformdetect/board.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def id(self) -> Optional[str]:
105105
board_id = boards.FTDI_FT2232H
106106
elif chip_id == chips.APQ8016:
107107
board_id = boards.DRAGONBOARD_410C
108-
elif chip_id in (chips.T210, chips.T186, chips.T194):
108+
elif chip_id in (chips.T210, chips.T186, chips.T194, chips.T234):
109109
board_id = self._tegra_id()
110110
elif chip_id == chips.HFU540:
111111
board_id = self._sifive_id()

adafruit_platformdetect/chip.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,8 @@ def _linux_id(self) -> Optional[str]:
274274
linux_id = chips.T186
275275
elif "nvidia,tegra194" in compats:
276276
linux_id = chips.T194
277+
elif "nvidia,tegra234" in compats:
278+
linux_id = chips.T234
277279
if compatible and "imx8m" in compatible:
278280
linux_id = chips.IMX8MX
279281
if compatible and "odroid-c2" in compatible:

adafruit_platformdetect/constants/boards.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
JETSON_TX2_NX = "JETSON_TX2_NX"
6868
CLARA_AGX_XAVIER = "CLARA_AGX_XAVIER"
6969
JETSON_XAVIER = "JETSON_XAVIER"
70+
JETSON_AGX_ORIN = "JETSON_ORIN"
7071
JETSON_NANO = "JETSON_NANO"
7172
JETSON_NX = "JETSON_NX"
7273

@@ -250,6 +251,14 @@
250251
"nvidia,p3509-0000-a00+p3668-0001-a01",
251252
"nvidia,p3449-0000+p3668-0000",
252253
"nvidia,p3449-0000+p3668-0001",
254+
"nvidia,p3449-0000+p3668-0003",
255+
),
256+
),
257+
(
258+
JETSON_AGX_ORIN,
259+
(
260+
"nvidia,p3737-0000+p3701-0000",
261+
"nvidia,p3737-0000+p3701-0004",
253262
),
254263
),
255264
)

adafruit_platformdetect/constants/chips.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
T210 = "T210"
2626
T186 = "T186"
2727
T194 = "T194"
28+
T234 = "T234"
2829
APQ8016 = "APQ8016"
2930
GENERIC_X86 = "GENERIC_X86"
3031
FT232H = "FT232H"

0 commit comments

Comments
 (0)