diff --git a/adafruit_platformdetect/board.py b/adafruit_platformdetect/board.py index 400ae154..7b663e00 100644 --- a/adafruit_platformdetect/board.py +++ b/adafruit_platformdetect/board.py @@ -211,6 +211,8 @@ def id(self) -> Optional[str]: board_id = boards.AML_S905X_CC elif chip_id == chips.CV1800B: board_id = boards.MILKV_DUO + elif chip_id == chips.TH1520: + board_id = boards.LICHEEPI_4A self._board_id = board_id return board_id diff --git a/adafruit_platformdetect/chip.py b/adafruit_platformdetect/chip.py index deae5cd2..2a4ee1fe 100644 --- a/adafruit_platformdetect/chip.py +++ b/adafruit_platformdetect/chip.py @@ -290,6 +290,9 @@ def _linux_id(self) -> Optional[str]: if self.detector.check_dt_compatible_value("libretech,aml-s905x-cc"): return chips.S905X + if self.detector.check_dt_compatible_value("light-lpi4a"): + return chips.TH1520 + 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 10811b29..1204b215 100644 --- a/adafruit_platformdetect/constants/boards.py +++ b/adafruit_platformdetect/constants/boards.py @@ -158,6 +158,7 @@ ALLWINER_D1 = "ALLWINER_D1" LICHEE_RV = "LICHEE_RV" +LICHEEPI_4A = "LICHEEPI_4A" MICROCHIP_MCP2221 = "MICROCHIP_MCP2221" @@ -536,7 +537,7 @@ _MAAXBOARD_IDS = ("MAAXBOARD", "MAAXBOARD_MINI") # Lichee RISC-V boards -_LICHEE_RISCV_IDS = (LICHEE_RV,) +_LICHEE_RISCV_IDS = (LICHEE_RV, LICHEEPI_4A) # Siemens Simatic IOT2000 Gateways SIEMENS_SIMATIC_IOT2050_ADV = "SIEMENS_SIMATIC_IOT2050_ADVANCED" diff --git a/adafruit_platformdetect/constants/chips.py b/adafruit_platformdetect/constants/chips.py index 990bf6ac..2c4a8f4d 100644 --- a/adafruit_platformdetect/constants/chips.py +++ b/adafruit_platformdetect/constants/chips.py @@ -73,6 +73,7 @@ RP2040_U2IF = "RP2040_U2IF" D1_RISCV = "D1_RISCV" ATOM_J4105 = "ATOM_J4105" +TH1520 = "TH1520" BCM_RANGE = {"BCM2708", "BCM2709", "BCM2711", "BCM2712", "BCM2835", "BCM2837"}