Skip to content

Support for Particle Tachyon #390

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 1 commit into from
Aug 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 8 additions & 0 deletions adafruit_platformdetect/board.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ def id(self) -> Optional[str]:
board_id = self._rv1106_id()
elif chip_id == chips.SUNRISE_X3:
board_id = boards.RDK_X3
elif chip_id == chips.QCM6490:
board_id = boards.PARTICLE_TACHYON
self._board_id = board_id
return board_id

Expand Down Expand Up @@ -1198,6 +1200,11 @@ def any_horizon_board(self):
"""Check whether the current board is any Horizon device."""
return self.id in boards._HORIZON_IDS

@property
def any_particle_board(self):
"""Check whether the current board is any Particle device."""
return self.id in boards._PARTICLE_IDS

@property
def os_environ_board(self) -> bool:
"""Check whether the current board is an OS environment variable special case."""
Expand Down Expand Up @@ -1272,6 +1279,7 @@ def lazily_generate_conditions():
yield self.any_vivid_unit
yield self.any_starfive_id
yield self.any_horizon_board
yield self.any_particle_board

return any(condition for condition in lazily_generate_conditions())

Expand Down
3 changes: 3 additions & 0 deletions adafruit_platformdetect/chip.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,9 @@ def _linux_id(self) -> Optional[str]:
if self.detector.check_dt_compatible_value("hobot,x3"):
return chips.SUNRISE_X3

if self.detector.check_dt_compatible_value("particle,tachyon"):
return chips.QCM6490

linux_id = None
hardware = self.detector.get_cpuinfo_field("Hardware")

Expand Down
6 changes: 6 additions & 0 deletions adafruit_platformdetect/constants/boards.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,9 @@
# Horizon
RDK_X3 = "RDK_X3"

# Particle
PARTICLE_TACHYON = "PARTICLE_TACHYON"

# StarFive boards
_STARFIVE_BOARD_IDS = (VISIONFIVE2,)
# Asus Tinkerboard
Expand Down Expand Up @@ -688,5 +691,8 @@

_AMERIDROID_IDS = (INDIEDROID_NOVA,)

# Particle
_PARTICLE_IDS = (PARTICLE_TACHYON,)

# Agnostic board
OS_AGNOSTIC_BOARD = "OS_AGNOSTIC_BOARD"
1 change: 1 addition & 0 deletions adafruit_platformdetect/constants/chips.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
RZV2N = "RZV2N"
RZV2H = "RZV2H"
SUNRISE_X3 = "SUNRISE_X3"
QCM6490 = "QCM6490"

BCM_RANGE = {"BCM2708", "BCM2709", "BCM2711", "BCM2712", "BCM2835", "BCM2837"}

Expand Down
Loading