Skip to content

firmware: raspberrypi: Add support for the tryboot mode

Gregor Herburger linux-arm-kernel linux-devicetree lkml 8 versions – Applied

Status from this message: Applied to https://github.com/Broadcom/stblinux/commits/drivers/next, thanks!

Get series with b4
b4 am [email protected] change-id 20260623-rpi-tryboot-4292c92b0727

Versions newest first

  1. v6 Latest5 patches 4 repliesApplied
  2. v55 patches 0 repliesSuperseded
  3. v44 patches 3 repliesSuperseded
Earlier versions · 5
VersionPostedPatchesRepliesStatus
v3 posting 3/34 patches5 repliesSuperseded
v3 posting 2/34 patches2 repliesSuperseded
v3 posting 1/34 patches0 repliesSuperseded
v24 patches3 repliesSuperseded
v14 patches4 repliesSuperseded

Changes in v6 from the cover letter

- Rebase onto v7.4-rc2
- Link to v5: https://patch.msgid.link/[email protected]

Patches in v6 Applied

#Subject and filesSizeRepliesApplied
1/5firmware: raspberrypi: reorder rpi_firmware_property_tag enuminclude/soc/bcm2835/raspberrypi-firmware.h+10 -101 reply
2/5dt-bindings: raspberrypi,bcm2835-firmware: Include 'reboot-mode.yaml'Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml+9 -01 reply
3/5firmware: raspberrypi: Add reboot mode supportdrivers/firmware/Kconfig drivers/firmware/raspberrypi.c include/soc/bcm2835/raspberrypi-firmware.h+39 -50 replies
4/5arm64: dts: broadcom: bcm2712: Add reboot modes to firmware nodearch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b-base.dtsi+2 -01 reply
5/5arm: dts: broadcom: bcm2835: Add reboot modes to firmware nodearch/arm/boot/dts/broadcom/bcm2835-rpi.dtsi+2 -01 reply

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchKrzysztof KozlowskiStefan Wahren
1/5
2/5R-b
3/5T-b
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [PATCH v6 0/5] firmware: raspberrypi: Add support for the tryboot mode

This adds support for the tryboot mode on Raspberry Pis. As there is no documentation other than the downstream implementation [0] the implementation is based on this.

Tested on Raspberry Pi 4 and Raspberry Pi 5.

[0] https://github.com/raspberrypi/linux/commit/eb56da0c1925c07e8929ce4c9fe8aeafa7cb8c7b

---
Changes in v6:
- Rebase onto v7.4-rc2
- Link to v5: https://patch.msgid.link/[email protected]

Changes in v5:
- Added patch to add reboot mode to Raspberry Pi 1-4 devicetrees.
- Rebase onto v7.3-rc5
- Link to v4: https://patch.msgid.link/[email protected]

Changes in v4:
- fix use-after-free error by moving devm_add_action_or_reset before devm_add_action_or_reset
- Rebase onto v7.3-rc1
- Link to v3: https://patch.msgid.link/[email protected]

Changes in v3:
- fix use-after-free error by using devm_add_action_or_reset
- ensure endianness of magic byte
- refactor reboot mode registration into separate function
- Link to v2: https://patch.msgid.link/[email protected]

Changes in v2:
- Remove unnecessary reboot_mode_unregister().
- dt-binding: restrict to mode-{normal,tryboot} and only allow 32bit value.
- Link to v1: https://patch.msgid.link/[email protected]

---
Gregor Herburger (5):
firmware: raspberrypi: reorder rpi_firmware_property_tag enum
dt-bindings: raspberrypi,bcm2835-firmware: Include 'reboot-mode.yaml'
firmware: raspberrypi: Add reboot mode support
arm64: dts: broadcom: bcm2712: Add reboot modes to firmware node
arm: dts: broadcom: bcm2835: Add reboot modes to firmware node

 .../arm/bcm/raspberrypi,bcm2835-firmware.yaml      |  9 +++++
 arch/arm/boot/dts/broadcom/bcm2835-rpi.dtsi        |  2 ++
 .../boot/dts/broadcom/bcm2712-rpi-5-b-base.dtsi    |  2 ++
 drivers/firmware/Kconfig                           |  2 ++
 drivers/firmware/raspberrypi.c                     | 40 +++++++++++++++++++---
 include/soc/bcm2835/raspberrypi-firmware.h         | 22 ++++++------
 6 files changed, 62 insertions(+), 15 deletions(-)

---
base-commit: b3dfbde62cf1981c4638939c159dfd087b7a72e9
change-id: 20260623-rpi-tryboot-4292c92b0727

Best regards,

Signature · 1 line
Gregor Herburger <[email protected]>