From 71278679d62f96a24e1ad5af204e118018e4da18 Mon Sep 17 00:00:00 2001 From: MrPanc0 <116757851+MrPanc0@users.noreply.github.com> Date: Wed, 23 Nov 2022 19:22:16 +0100 Subject: [PATCH 1/6] Update boards.py --- adafruit_platformdetect/constants/boards.py | 1 + 1 file changed, 1 insertion(+) diff --git a/adafruit_platformdetect/constants/boards.py b/adafruit_platformdetect/constants/boards.py index c8ed4d4..b4bf1b7 100644 --- a/adafruit_platformdetect/constants/boards.py +++ b/adafruit_platformdetect/constants/boards.py @@ -125,6 +125,7 @@ ODROID_C4 = "ODROID_C4" ODROID_N2 = "ODROID_N2" ODROID_XU4 = "ODROID_XU4" +ODROID_M1 = "ODROID_M1" FTDI_FT232H = "FTDI_FT232H" FTDI_FT2232H = "FTDI_FT2232H" From 1430d36b847bf81e71190cfd5c1598456b8e2f9a Mon Sep 17 00:00:00 2001 From: MrPanc0 <116757851+MrPanc0@users.noreply.github.com> Date: Wed, 23 Nov 2022 19:27:21 +0100 Subject: [PATCH 2/6] Update chip.py --- adafruit_platformdetect/chip.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/adafruit_platformdetect/chip.py b/adafruit_platformdetect/chip.py index 222104a..b8f81bb 100644 --- a/adafruit_platformdetect/chip.py +++ b/adafruit_platformdetect/chip.py @@ -223,6 +223,9 @@ def _linux_id(self) -> Optional[str]: if self.detector.check_dt_compatible_value("rockchip,rk3568"): return chips.RK3568 + + if self.detector.check_dt_compatible_value("rockchip,rk3568b2"): + return chips.RK3568B2 if self.detector.check_dt_compatible_value("rockchip,rk3588"): return chips.RK3588 From d2c7369da5f585a306999bc75aadc3d7cc5a8235 Mon Sep 17 00:00:00 2001 From: MrPanc0 <116757851+MrPanc0@users.noreply.github.com> Date: Wed, 23 Nov 2022 19:28:39 +0100 Subject: [PATCH 3/6] Update board.py --- adafruit_platformdetect/board.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/adafruit_platformdetect/board.py b/adafruit_platformdetect/board.py index e129591..db7f3f6 100644 --- a/adafruit_platformdetect/board.py +++ b/adafruit_platformdetect/board.py @@ -95,6 +95,8 @@ def id(self) -> Optional[str]: board_id = boards.RASPBERRY_PI_PICO elif chip_id == chips.S805: board_id = boards.ODROID_C1 + elif chip_id == chips.RK3568B2: + board_id = boards.ODROID_M1 elif chip_id == chips.S905: board_id = boards.ODROID_C2 elif chip_id == chips.S905X3: From 3ae0ef5da995547682f713a539322ebbf731dd28 Mon Sep 17 00:00:00 2001 From: MrPanc0 <116757851+MrPanc0@users.noreply.github.com> Date: Wed, 23 Nov 2022 19:31:38 +0100 Subject: [PATCH 4/6] Update chips.py --- adafruit_platformdetect/constants/chips.py | 1 + 1 file changed, 1 insertion(+) diff --git a/adafruit_platformdetect/constants/chips.py b/adafruit_platformdetect/constants/chips.py index c5c4485..dd62202 100644 --- a/adafruit_platformdetect/constants/chips.py +++ b/adafruit_platformdetect/constants/chips.py @@ -57,6 +57,7 @@ RK3288 = "RK3288" RK3566 = "RK3566" RK3568 = "RK3568" +RK3568B2 = "RK3568B2" RK3588 = "RK3588" PENTIUM_N3710 = "PENTIUM_N3710" # SOC Braswell core STM32F405 = "STM32F405" From 0161bc8684d11af5d0fc64a776036a03ee5ef43b Mon Sep 17 00:00:00 2001 From: Melissa LeBlanc-Williams Date: Wed, 23 Nov 2022 10:59:13 -0800 Subject: [PATCH 5/6] Ran pre-commit --- adafruit_platformdetect/chip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adafruit_platformdetect/chip.py b/adafruit_platformdetect/chip.py index b8f81bb..9377635 100644 --- a/adafruit_platformdetect/chip.py +++ b/adafruit_platformdetect/chip.py @@ -223,7 +223,7 @@ def _linux_id(self) -> Optional[str]: if self.detector.check_dt_compatible_value("rockchip,rk3568"): return chips.RK3568 - + if self.detector.check_dt_compatible_value("rockchip,rk3568b2"): return chips.RK3568B2 From 3c18843ee3e920f655a96afadf7014a3958bbde2 Mon Sep 17 00:00:00 2001 From: MrPanc0 <116757851+MrPanc0@users.noreply.github.com> Date: Wed, 23 Nov 2022 20:15:23 +0100 Subject: [PATCH 6/6] Update boards.py --- adafruit_platformdetect/constants/boards.py | 1 + 1 file changed, 1 insertion(+) diff --git a/adafruit_platformdetect/constants/boards.py b/adafruit_platformdetect/constants/boards.py index b4bf1b7..a2a6b81 100644 --- a/adafruit_platformdetect/constants/boards.py +++ b/adafruit_platformdetect/constants/boards.py @@ -315,6 +315,7 @@ ODROID_C4, ODROID_N2, ODROID_XU4, + ODROID_M1, ) _BEAGLEBONE_IDS = (