Skip to content
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
7 changes: 6 additions & 1 deletion adafruit_platformdetect/board.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def __init__(self, detector):
self.detector = detector
self._board_id = None

# pylint: disable=invalid-name, protected-access
# pylint: disable=invalid-name, protected-access, too-many-return-statements
@property
def id(self):
"""Return a unique id for the detected board, if any."""
Expand Down Expand Up @@ -227,9 +227,14 @@ def _beaglebone_id(self):
"""Try to detect id of a Beaglebone."""

board_value = self.detector.get_device_compatible()
# Older Builds
if "freedom-u74-arty" in board_value:
return boards.BEAGLEV_STARLIGHT

# Newer Builds
if "beaglev-starlight" in board_value:
return boards.BEAGLEV_STARLIGHT

try:
with open("/sys/bus/nvmem/devices/0-00500/nvmem", "rb") as eeprom:
eeprom_bytes = eeprom.read(16)
Expand Down
5 changes: 5 additions & 0 deletions adafruit_platformdetect/chip.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,14 @@ def _linux_id(self):
if self.detector.check_dt_compatible_value("sun20iw1p1"):
return chips.C906

# Older Builds
if self.detector.check_dt_compatible_value("sifive"):
return chips.JH71x0

# Newer Builds
if self.detector.check_dt_compatible_value("jh7100"):
return chips.JH71x0

if self.detector.check_dt_compatible_value("sun8i-a33"):
return chips.A33

Expand Down