diff --git a/adafruit_platformdetect/board.py b/adafruit_platformdetect/board.py index 664f4ef..f4ca8b1 100644 --- a/adafruit_platformdetect/board.py +++ b/adafruit_platformdetect/board.py @@ -151,6 +151,8 @@ def id(self) -> Optional[str]: board_id = self._rock_pi_id() elif chip_id == chips.RK3399: board_id = self._rock_pi_id() or self._armbian_id() + elif chip_id == chips.RK3399_T: + board_id = self._rock_pi_id() or self._armbian_id() elif chip_id == chips.ATOM_X5_Z8350: board_id = self._rock_pi_id() elif chip_id == chips.ATOM_J4105: @@ -511,6 +513,8 @@ def _rock_pi_id(self) -> Optional[str]: board = boards.ROCK_PI_X if board_value and "ROCK 5" in board_value.upper(): board = boards.ROCK_PI_5 + if board_value and "RADXA ROCK 4C+" in board_value.upper(): + board = boards.ROCK_PI_4_C_PLUS return board def _clockwork_pi_id(self) -> Optional[str]: diff --git a/adafruit_platformdetect/chip.py b/adafruit_platformdetect/chip.py index 2e08d02..aae4c70 100644 --- a/adafruit_platformdetect/chip.py +++ b/adafruit_platformdetect/chip.py @@ -209,6 +209,9 @@ def _linux_id(self) -> Optional[str]: if self.detector.check_dt_compatible_value("rockchip,rk3308"): return chips.RK3308 + if self.detector.check_dt_compatible_value("radxa,rock-4c-plus"): + return chips.RK3399_T + if self.detector.check_dt_compatible_value("rockchip,rk3399"): return chips.RK3399 diff --git a/adafruit_platformdetect/constants/boards.py b/adafruit_platformdetect/constants/boards.py index d6af21e..f795dde 100644 --- a/adafruit_platformdetect/constants/boards.py +++ b/adafruit_platformdetect/constants/boards.py @@ -167,6 +167,7 @@ ROCK_PI_S = "ROCK_PI_S" ROCK_PI_4 = "ROCK_PI_4" +ROCK_PI_4_C_PLUS = "ROCK_PI_4C+" ROCK_PI_X = "ROCK_PI_X" ROCK_PI_E = "ROCK_PI_E" ROCK_PI_5 = "ROCK_PI_5" @@ -541,6 +542,7 @@ _ROCK_PI_IDS = ( ROCK_PI_S, ROCK_PI_4, + ROCK_PI_4_C_PLUS, ROCK_PI_X, ROCK_PI_E, RADXA_ZERO, diff --git a/adafruit_platformdetect/constants/chips.py b/adafruit_platformdetect/constants/chips.py index 6a4b35f..4dc2b9a 100644 --- a/adafruit_platformdetect/constants/chips.py +++ b/adafruit_platformdetect/constants/chips.py @@ -52,6 +52,7 @@ H616 = "H616" RK3308 = "RK3308" RK3399 = "RK3399" +RK3399_T = "RK3399_T" RK3328 = "RK3328" LPC4330 = "LPC4330" RK3288 = "RK3288"