Skip to contentSkip to conversation

rpi: Update the Raspberry Pi doucmentation URL

PATCH Applied Peter Robinson 2 participants 4 messages Nov 21, 2021 – Nov 30, 2021 Broadcom BCM2711/BCM2835 Arm architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 rpi: Update the Raspberry Pi doucmentation URL

The Raspberry Pi Foundation has updated their documentation so update the URL to the latest place to find the HW device revision codes.

---
 board/raspberrypi/rpi/rpi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
board/raspberrypi/rpi/rpi.c +1 -1
index 55afaa54d9..e7bcee3746 100644
@@ -72,7 +72,7 @@ struct msg_get_clock_rate {
 #endif
 
 /*
- * https://www.raspberrypi.org/documentation/hardware/raspberrypi/revision-codes/README.md
+ * https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#raspberry-pi-revision-codes
  */
 struct rpi_model {
 	const char *name;
Signature · 1 line
2.33.1
#1 lore raw

PATCH 2/2 rpi: Add identifier for the new RPi Zero 2 W

The Raspberry Pi Foundation released the new Zero 2 W which we want to detect, so we can detect the correct device tree file name.

---
 board/raspberrypi/rpi/rpi.c | 5 +++++
 1 file changed, 5 insertions(+)
board/raspberrypi/rpi/rpi.c +5 -0
index e7bcee3746..ff69607d3c 100644
@@ -157,6 +157,11 @@ static const struct rpi_model rpi_models_new_scheme[] = {
 		DTB_DIR "bcm2711-rpi-4-b.dtb",
 		true,
 	},
+	[0x12] = {
+		"Zero 2 W",
+		DTB_DIR "bcm2837-rpi-zero-2.dtb",
+		false,
+	},
 	[0x13] = {
 		"400",
 		DTB_DIR "bcm2711-rpi-400.dtb",
Signature · 1 line
2.33.1
#2 lore raw

Re: [PATCH 2/2] rpi: Add identifier for the new RPi Zero 2 W

Quoted 4 lines · Peter Robinson

The Raspberry Pi Foundation released the new Zero 2 W which we want to detect, so we can detect the correct device tree file name.

Applied to rpi-next

Thanks!

Quoted 22 lines
---
 board/raspberrypi/rpi/rpi.c | 5 +++++
 1 file changed, 5 insertions(+)
board/raspberrypi/rpi/rpi.c +5 -0
index e7bcee3746..ff69607d3c 100644
@@ -157,6 +157,11 @@ static const struct rpi_model rpi_models_new_scheme[] = {
 		DTB_DIR "bcm2711-rpi-4-b.dtb",
 		true,
 	},
+	[0x12] = {
+		"Zero 2 W",
+		DTB_DIR "bcm2837-rpi-zero-2.dtb",
+		false,
+	},
 	[0x13] = {
 		"400",
 		DTB_DIR "bcm2711-rpi-400.dtb",
Signature · 1 line
2.33.1
#3 lore raw
In reply to Peter Robinson
Quoted 4 lines · Peter Robinson

The Raspberry Pi Foundation has updated their documentation so update the URL to the latest place to find the HW device revision codes.

Applied to rpi-next

Thanks!

Quoted 19 lines
---
 board/raspberrypi/rpi/rpi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
board/raspberrypi/rpi/rpi.c +1 -1
index 55afaa54d9..e7bcee3746 100644
@@ -72,7 +72,7 @@ struct msg_get_clock_rate {
 #endif
 
 /*
- * https://www.raspberrypi.org/documentation/hardware/raspberrypi/revision-codes/README.md
+ * https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#raspberry-pi-revision-codes
  */
 struct rpi_model {
 	const char *name;
Signature · 1 line
2.33.1