Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2e1f0a2

Browse files
authoredMay 31, 2024
Merge pull request #354 from nopnop2002/main
added Luckfox Mini
2 parents f1754d0 + a0261fb commit 2e1f0a2

File tree

4 files changed

+19
-1
lines changed

4 files changed

+19
-1
lines changed
 

‎adafruit_platformdetect/board.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,8 @@ def id(self) -> Optional[str]:
213213
board_id = boards.MILKV_DUO
214214
elif chip_id == chips.TH1520:
215215
board_id = boards.LICHEEPI_4A
216+
elif chip_id == chips.RV1103:
217+
board_id = self._rv1103_id()
216218
elif chip_id == chips.RV1106:
217219
board_id = self._rv1106_id()
218220
self._board_id = board_id
@@ -808,6 +810,14 @@ def _siemens_simatic_iot2000_id(self) -> Optional[str]:
808810
board = boards.SIEMENS_SIMATIC_IOT2050_BASIC
809811
return board
810812

813+
def _rv1103_id(self) -> Optional[str]:
814+
"""Check what type of rv1103 board."""
815+
board_value = self.detector.get_device_model()
816+
board = None
817+
if board_value and "Luckfox Pico Mini" in board_value:
818+
board = boards.LUCKFOX_PICO_MINI
819+
return board
820+
811821
def _rv1106_id(self) -> Optional[str]:
812822
"""Check what type of rv1106 board."""
813823
board_value = self.detector.get_device_model()

‎adafruit_platformdetect/chip.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,9 @@ def _linux_id(self) -> Optional[str]:
248248
if self.detector.check_dt_compatible_value("rockchip,rk3588"):
249249
return chips.RK3588
250250

251+
if self.detector.check_dt_compatible_value("rockchip,rv1103"):
252+
return chips.RV1103
253+
251254
if self.detector.check_dt_compatible_value("rockchip,rv1106"):
252255
return chips.RV1106
253256

‎adafruit_platformdetect/constants/boards.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@
230230

231231
# Luckfox Pico boards
232232
LUCKFOX_PICO_MAX = "LUCKFOX_PICO_MAX"
233+
LUCKFOX_PICO_MINI = "LUCKFOX_PICO_MINI"
233234

234235
# Asus Tinkerboard
235236
_ASUS_TINKER_BOARD_IDS = (
@@ -591,4 +592,7 @@
591592
_MILKV_IDS_ = (MILKV_DUO,)
592593

593594
# Luckfox
594-
_LUCKFOX_IDS = (LUCKFOX_PICO_MAX,)
595+
_LUCKFOX_IDS = (
596+
LUCKFOX_PICO_MAX,
597+
LUCKFOX_PICO_MINI,
598+
)

‎adafruit_platformdetect/constants/chips.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
RK3566 = "RK3566"
6363
RK3568 = "RK3568"
6464
RK3588 = "RK3588"
65+
RV1103 = "RV1103"
6566
RV1106 = "RV1106"
6667
PENTIUM_N3710 = "PENTIUM_N3710" # SOC Braswell core
6768
CELERON_N5105 = "CELERON_N5105"

0 commit comments

Comments
 (0)
Please sign in to comment.