diff --git a/adafruit_platformdetect/board.py b/adafruit_platformdetect/board.py index 5c1ade88..a1db0dba 100644 --- a/adafruit_platformdetect/board.py +++ b/adafruit_platformdetect/board.py @@ -230,6 +230,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 @@ -1126,6 +1128,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.""" @@ -1198,6 +1205,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()) diff --git a/adafruit_platformdetect/chip.py b/adafruit_platformdetect/chip.py index faa47ed1..957b9ff8 100644 --- a/adafruit_platformdetect/chip.py +++ b/adafruit_platformdetect/chip.py @@ -324,6 +324,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") diff --git a/adafruit_platformdetect/constants/boards.py b/adafruit_platformdetect/constants/boards.py index 392b4100..6f39bd1e 100644 --- a/adafruit_platformdetect/constants/boards.py +++ b/adafruit_platformdetect/constants/boards.py @@ -257,6 +257,9 @@ # Horizon RDK_X3 = "RDK_X3" +# Particle +PARTICLE_TACHYON = "PARTICLE_TACHYON" + # StarFive boards _STARFIVE_BOARD_IDS = (VISIONFIVE2,) # Asus Tinkerboard @@ -666,5 +669,8 @@ _AMERIDROID_IDS = (INDIEDROID_NOVA,) +# Particle +_PARTICLE_IDS = (PARTICLE_TACHYON,) + # Agnostic board OS_AGNOSTIC_BOARD = "OS_AGNOSTIC_BOARD" diff --git a/adafruit_platformdetect/constants/chips.py b/adafruit_platformdetect/constants/chips.py index 7bbf19f9..bede7ddb 100644 --- a/adafruit_platformdetect/constants/chips.py +++ b/adafruit_platformdetect/constants/chips.py @@ -82,6 +82,7 @@ TH1520 = "TH1520" K1 = "K1" SUNRISE_X3 = "SUNRISE_X3" +QCM6490 = "QCM6490" BCM_RANGE = {"BCM2708", "BCM2709", "BCM2711", "BCM2712", "BCM2835", "BCM2837"} diff --git a/pyproject.toml b/pyproject.toml index a840d87e..15e79d9a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,7 +12,7 @@ requires = [ [project] name = "Adafruit-PlatformDetect" description = "Platform detection for use by libraries like Adafruit-Blinka." -version = "0.0.0+auto.0" +version = "3.77.1" readme = "README.rst" authors = [ {name = "Adafruit Industries", email = "circuitpython@adafruit.com"}