Skip to content

Commit 41cd706

Browse files
authored
Merge pull request #233 from simallaire/radxa_zero
Add Radxa Zero board
2 parents 7918e52 + 2e56439 commit 41cd706

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

adafruit_platformdetect/board.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ def id(self) -> Optional[str]:
7777
board_id = self._imx8mx_id()
7878
elif chip_id == chips.IMX6ULL:
7979
board_id = self._imx6ull_id()
80+
elif chip_id == chips.S905Y2:
81+
board_id = boards.RADXA_ZERO
8082
elif chip_id == chips.ESP8266:
8183
board_id = boards.FEATHER_HUZZAH
8284
elif chip_id == chips.SAMD21:

adafruit_platformdetect/chip.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ def _linux_id(self) -> Optional[str]:
167167
# pylint: disable=too-many-return-statements
168168
"""Attempt to detect the CPU on a computer running the Linux kernel."""
169169

170+
if self.detector.check_dt_compatible_value("amlogic,g12a"):
171+
return chips.S905Y2
172+
170173
if self.detector.check_dt_compatible_value("sun8i-h3"):
171174
return chips.H3
172175

adafruit_platformdetect/constants/boards.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@
147147
PINEPHONE = "PINEPHONE"
148148
SOPINE = "SOPINE"
149149

150+
RADXA_ZERO = "RADXA_ZERO"
151+
150152
ROCK_PI_S = "ROCK_PI_S"
151153
ROCK_PI_4 = "ROCK_PI_4"
152154
ROCK_PI_X = "ROCK_PI_X"

adafruit_platformdetect/constants/chips.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
S805 = "S805"
2020
S905 = "S905"
2121
S905X3 = "S905X3"
22+
S905Y2 = "S905Y2"
2223
S922X = "S922X"
2324
SAMA5 = "SAMA5"
2425
T210 = "T210"

0 commit comments

Comments
 (0)