Skip to content
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
10 changes: 10 additions & 0 deletions adafruit_platformdetect/board.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ def id(self) -> Optional[str]:
board_id = boards.MILKV_DUO
elif chip_id == chips.TH1520:
board_id = boards.LICHEEPI_4A
elif chip_id == chips.RV1103:
board_id = self._rv1103_id()
elif chip_id == chips.RV1106:
board_id = self._rv1106_id()
self._board_id = board_id
Expand Down Expand Up @@ -806,6 +808,14 @@ def _siemens_simatic_iot2000_id(self) -> Optional[str]:
board = boards.SIEMENS_SIMATIC_IOT2050_BASIC
return board

def _rv1103_id(self) -> Optional[str]:
"""Check what type of rv1103 board."""
board_value = self.detector.get_device_model()
board = None
if board_value and "Luckfox Pico Mini" in board_value:
board = boards.LUCKFOX_PICO_MINI
return board

def _rv1106_id(self) -> Optional[str]:
"""Check what type of rv1106 board."""
board_value = self.detector.get_device_model()
Expand Down
3 changes: 3 additions & 0 deletions adafruit_platformdetect/chip.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,9 @@ def _linux_id(self) -> Optional[str]:
if self.detector.check_dt_compatible_value("rockchip,rk3588"):
return chips.RK3588

if self.detector.check_dt_compatible_value("rockchip,rv1103"):
return chips.RV1103

if self.detector.check_dt_compatible_value("rockchip,rv1106"):
return chips.RV1106

Expand Down
6 changes: 5 additions & 1 deletion adafruit_platformdetect/constants/boards.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@

# Luckfox Pico boards
LUCKFOX_PICO_MAX = "LUCKFOX_PICO_MAX"
LUCKFOX_PICO_MINI = "LUCKFOX_PICO_MINI"

# Asus Tinkerboard
_ASUS_TINKER_BOARD_IDS = (
Expand Down Expand Up @@ -587,4 +588,7 @@
_MILKV_IDS_ = (MILKV_DUO,)

# Luckfox
_LUCKFOX_IDS = (LUCKFOX_PICO_MAX,)
_LUCKFOX_IDS = (
LUCKFOX_PICO_MAX,
LUCKFOX_PICO_MINI,
)
1 change: 1 addition & 0 deletions adafruit_platformdetect/constants/chips.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
RK3566 = "RK3566"
RK3568 = "RK3568"
RK3588 = "RK3588"
RV1103 = "RV1103"
RV1106 = "RV1106"
PENTIUM_N3710 = "PENTIUM_N3710" # SOC Braswell core
CELERON_N5105 = "CELERON_N5105"
Expand Down