Skip to content

Commit 8054b00

Browse files
Fix PocketBeagle 2 support: correct DT compatible string and black formatting
- Fix chip.py: The device-tree compatible string was incorrectly concatenated as 'beagle,am62-pocketbeagle2ti,am625' (two DT entries mashed together). Changed to 'beagle,am62-pocketbeagle2' which is the actual compatible value from the PocketBeagle 2 device tree. - Fix boards.py: Remove stray blank line inside BEAGLEBONE tuple that caused black formatting CI failure. - Clean up board.py comment: The special-case EEPROM check is the correct approach for new-format Beagle boards (like BeaglePlay), so replaced the uncertain comment with an explanatory one.
1 parent 3e6e7b9 commit 8054b00

3 files changed

Lines changed: 2 additions & 4 deletions

File tree

‎adafruit_platformdetect/board.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,7 @@ def _beaglebone_id(self) -> Optional[str]:
369369
if eeprom_bytes[:4] != b"\xaaU3\xee":
370370
return None
371371

372-
# add support for PocketBeagle 2
373-
# should be caught in the else clause at the bottom but I couldn't figure it out
372+
# PocketBeagle 2 uses the new Beagle EEPROM format
374373
if eeprom_bytes == b"\xaaU3\xee\x017\x00\x10.\x00POCKET":
375374
return boards.BEAGLEBONE_POCKETBEAGLE_2
376375

‎adafruit_platformdetect/chip.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def _linux_id(self) -> Optional[str]:
208208
"""Attempt to detect the CPU on a computer running the Linux kernel."""
209209
if self.detector.check_dt_compatible_value("beagle,am67a-beagley-ai"):
210210
return chips.AM67A
211-
if self.detector.check_dt_compatible_value("beagle,am62-pocketbeagle2ti,am625"):
211+
if self.detector.check_dt_compatible_value("beagle,am62-pocketbeagle2"):
212212
return chips.AM625X
213213
if self.detector.check_dt_compatible_value("ti,am625"):
214214
return chips.AM625X

‎adafruit_platformdetect/constants/boards.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,6 @@
590590
BEAGLEBONE_AI64: ("B0", "7.BBONEA"),
591591
# Original bone/white:
592592
BEAGLEBONE: (
593-
594593
("A3", "A335BONE00A3"),
595594
("A4", "A335BONE00A4"),
596595
("A5", "A335BONE00A5"),

0 commit comments

Comments
 (0)