Skip to content

Commit 113c0e5

Browse files
committed
added Luckfox Mini
1 parent 55c52a3 commit 113c0e5

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-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
@@ -806,6 +808,14 @@ def _siemens_simatic_iot2000_id(self) -> Optional[str]:
806808
board = boards.SIEMENS_SIMATIC_IOT2050_BASIC
807809
return board
808810

811+
def _rv1103_id(self) -> Optional[str]:
812+
"""Check what type of rv1103 board."""
813+
board_value = self.detector.get_device_model()
814+
board = None
815+
if board_value and "Luckfox Pico Mini" in board_value:
816+
board = boards.LUCKFOX_PICO_MINI
817+
return board
818+
809819
def _rv1106_id(self) -> Optional[str]:
810820
"""Check what type of rv1106 board."""
811821
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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@
229229

230230
# Luckfox Pico boards
231231
LUCKFOX_PICO_MAX = "LUCKFOX_PICO_MAX"
232+
LUCKFOX_PICO_MINI = "LUCKFOX_PICO_MINI"
232233

233234
# Asus Tinkerboard
234235
_ASUS_TINKER_BOARD_IDS = (
@@ -587,4 +588,4 @@
587588
_MILKV_IDS_ = (MILKV_DUO,)
588589

589590
# Luckfox
590-
_LUCKFOX_IDS = (LUCKFOX_PICO_MAX,)
591+
_LUCKFOX_IDS = (LUCKFOX_PICO_MAX,LUCKFOX_PICO_MINI,)

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)