Skip to content

Commit e5839d2

Browse files
authored
Merge pull request #141 from twa127/master
Add Support for OrangePi Zero2 H616
2 parents 134ebac + 48cbed1 commit e5839d2

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

adafruit_platformdetect/board.py

+2
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ def id(self):
129129
board_id = self._pine64_id()
130130
elif chip_id == chips.H5:
131131
board_id = self._armbian_id()
132+
elif chip_id == chips.H616:
133+
board_id = self._armbian_id()
132134
elif chip_id == chips.A33:
133135
board_id = self._clockwork_pi_id()
134136
elif chip_id == chips.RK3308:

adafruit_platformdetect/chip.py

+3
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ def _linux_id(self):
156156
if self.detector.check_dt_compatible_value("sun50i-h5"):
157157
return chips.H5
158158

159+
if self.detector.check_dt_compatible_value("sun50iw9"):
160+
return chips.H616
161+
159162
if self.detector.check_dt_compatible_value("mediatek,mt8167"):
160163
return chips.MT8167
161164

adafruit_platformdetect/constants/boards.py

+2
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
ORANGE_PI_2 = "ORANGE_PI_2"
4343
ORANGE_PI_ZERO_PLUS_2H5 = "ORANGE_PI_ZERO_PLUS_2H5"
4444
ORANGE_PI_ZERO_PLUS = "ORANGE_PI_ZERO_PLUS"
45+
ORANGE_PI_ZERO_2 = "ORANGE_PI_ZERO_2"
4546

4647
# Nano Pi boards
4748
NANOPI_NEO_AIR = "NANOPI_NEO_AIR"
@@ -149,6 +150,7 @@
149150
ORANGE_PI_2,
150151
ORANGE_PI_ZERO_PLUS_2H5,
151152
ORANGE_PI_ZERO_PLUS,
153+
ORANGE_PI_ZERO_2,
152154
)
153155

154156
# NanoPi

adafruit_platformdetect/constants/chips.py

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
H6 = "H6"
3232
A33 = "A33"
3333
H5 = "H5"
34+
H616 = "H616"
3435
RK3308 = "RK3308"
3536
LPC4330 = "LPC4330"
3637
RK3288 = "RK3288"

0 commit comments

Comments
 (0)