Skip to content

Commit d688829

Browse files
authored
Merge pull request #322 from timonsku/main
add Raspberry Pi 5
2 parents f3da619 + f9f0803 commit d688829

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

adafruit_platformdetect/constants/boards.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@
137137
RASPBERRY_PI_400 = "RASPBERRY_PI_400"
138138
RASPBERRY_PI_CM4 = "RASPBERRY_PI_CM4"
139139
RASPBERRY_PI_CM4S = "RASPBERRY_PI_CM4S"
140+
RASPBERRY_PI_5 = "RASPBERRY_PI_5"
140141

141142
ODROID_C1 = "ODROID_C1"
142143
ODROID_C1_PLUS = "ODROID_C1_PLUS"
@@ -375,6 +376,7 @@
375376
RASPBERRY_PI_4B,
376377
RASPBERRY_PI_AVNET_IIOT_GW,
377378
RASPBERRY_PI_400,
379+
RASPBERRY_PI_5,
378380
)
379381

380382
_RASPBERRY_PI_CM_IDS = (
@@ -471,7 +473,7 @@
471473
}
472474

473475
# Pi revision codes from:
474-
# https://www.raspberrypi.org/documentation/hardware/raspberrypi/revision-codes/README.md
476+
# https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#raspberry-pi-revision-codes
475477

476478
# Each tuple here contains both the base codes, and the versions that indicate
477479
# the Pi is overvolted / overclocked - for 4-digit codes, this will be prefixed
@@ -607,6 +609,10 @@
607609
"d03141",
608610
),
609611
RASPBERRY_PI_ZERO_2_W: ("902120", "2902120"),
612+
RASPBERRY_PI_5: (
613+
"d04170",
614+
"c04170",
615+
),
610616
}
611617

612618
_PI_MODELS = {
@@ -632,6 +638,7 @@
632638
0x13: RASPBERRY_PI_400,
633639
0x14: RASPBERRY_PI_CM4,
634640
0x15: RASPBERRY_PI_CM4S,
641+
0x17: RASPBERRY_PI_5,
635642
}
636643

637644
# Onion omega boards

adafruit_platformdetect/constants/chips.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,4 @@
7575
D1_RISCV = "D1_RISCV"
7676
ATOM_J4105 = "ATOM_J4105"
7777

78-
BCM_RANGE = {"BCM2708", "BCM2709", "BCM2711", "BCM2835", "BCM2837"}
78+
BCM_RANGE = {"BCM2708", "BCM2709", "BCM2711", "BCM2712", "BCM2835", "BCM2837"}

adafruit_platformdetect/revcodes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
"BCM2836",
7171
"BCM2837",
7272
"BCM2711",
73+
"BCM2712",
7374
)
7475

7576
PI_TYPE = {
@@ -94,6 +95,7 @@
9495
0x13: "400",
9596
0x14: "CM4",
9697
0x15: "CM4S",
98+
0x17: "5",
9799
}
98100

99101
OLD_MANUFACTURER = (

0 commit comments

Comments
 (0)