Skip to content

Commit 4e59d9f

Browse files
committed
added chip detection for RK3588S
1 parent 15ba5ec commit 4e59d9f

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

adafruit_platformdetect/board.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,11 @@ def id(self) -> Optional[str]:
209209
or self._ameridroid_id()
210210
or self._vicharak_id()
211211
)
212+
elif chip_id == chips.RK3588S:
213+
board_id = (
214+
self._orange_pi_id()
215+
or self._armbian_id()
216+
)
212217
elif chip_id == chips.RYZEN_V1605B:
213218
board_id = self._udoo_id()
214219
elif chip_id == chips.PENTIUM_N3710:

adafruit_platformdetect/chip.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,9 @@ def _linux_id(self) -> Optional[str]:
274274
if self.detector.check_dt_compatible_value("rockchip,rk3568"):
275275
return chips.RK3568
276276

277+
if self.detector.check_dt_compatible_value("rockchip,rk3588s"):
278+
return chips.RK3588S
279+
277280
if self.detector.check_dt_compatible_value("rockchip,rk3588"):
278281
return chips.RK3588
279282

adafruit_platformdetect/constants/chips.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
RK3566 = "RK3566"
6969
RK3568 = "RK3568"
7070
RK3588 = "RK3588"
71+
RK3588S = "RK3588S"
7172
RV1103 = "RV1103"
7273
RV1106 = "RV1106"
7374
PENTIUM_N3710 = "PENTIUM_N3710" # SOC Braswell core

0 commit comments

Comments
 (0)