Skip to content

Enable chip detect for Orange Pi Zero Plus2 H5 #126

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions adafruit_platformdetect/board.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,8 @@ def _armbian_id(self):
board = boards.ORANGE_PI_2
if board_value == "bananapim2zero":
board = boards.BANANA_PI_M2_ZERO
if board_value == "orangepizeroplus2-h5":
board = boards.ORANGE_PI_ZERO_PLUS_2H5

return board

Expand Down
3 changes: 3 additions & 0 deletions adafruit_platformdetect/chip.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ def _linux_id(self):
if self.detector.check_dt_compatible_value("sun50i-a64"):
return chips.A64

if self.detector.check_dt_compatible_value("sun50i-h5"):
return chips.H5

if self.detector.check_dt_compatible_value("mediatek,mt8167"):
return chips.MT8167

Expand Down