Skip to content

Expose RPi4's bootloader configuration

Nicolas Saenz Julienne linux-arm-kernel linux-devicetree lkml 3 versions – Applied

Status from this message: Thanks Applied (1/5) and (2/5), rest of patches should go via arm-soc tree!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 3 repliesApplied
  2. v25 patches 2 repliesSuperseded
  3. v16 patches 8 repliesSuperseded

Changes in v3 from the cover letter

- Fix DT bingins

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/5dt-bindings: nvmem: Add bindings for rmem driverDocumentation/devicetree/bindings/nvmem/rmem.yaml+49 -01 reply
2/5nvmem: Add driver to expose reserved memory as nvmemdrivers/nvmem/Kconfig drivers/nvmem/Makefile drivers/nvmem/rmem.c +1 more+108 -00 replies
3/5ARM: dts: bcm2711: Add reserved memory template to hold firmware configurationarch/arm/boot/dts/bcm2711-rpi-4-b.dts+17 -00 replies
4/5arm64: defconfig: Enable nvmem's rmem driverarch/arm64/configs/defconfig+1 -00 replies
5/5ARM: multi_v7_defconfig: Enable nvmem's rmem driverarch/arm/configs/multi_v7_defconfig+1 -00 replies

Reviews trailers per patch

2 of 5 patches have a Reviewed-by or Acked-by.

PatchRob HerringTim Gover
1/5R-b
2/5R-b T-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 v3 thread

Cover letter [PATCH v3 0/5] Expose RPi4's bootloader configuration

Soon to be released versions of RPi4's firmware will take of care passing their bootloader's configuration[1] to the OS by copying it into memory and creating a reserved memory node in the board's DT. By modeling this reserved memory node as an nvmem device using 'nvmem-rmem', which this series introduces, user-space applications will be able to query this information through nvmem's sysfs interface.

An alternative approach, less nice IMO, would be to create a platform-specific 'soc' driver.

Regards,
Nicolas

[1] https://www.raspberrypi.org/documentation/hardware/raspberrypi/bcm2711_bootloader_config.md

---

Changes since v2:
- Fix DT bingins

Changes since v1:
- Avoid the reserved-memory indirection by integrating the nvmem driver into the reserved memory node.

Nicolas Saenz Julienne (5):
dt-bindings: nvmem: Add bindings for rmem driver
nvmem: Add driver to expose reserved memory as nvmem
ARM: dts: bcm2711: Add reserved memory template to hold firmware
configuration
arm64: defconfig: Enable nvmem's rmem driver
ARM: multi_v7_defconfig: Enable nvmem's rmem driver

 .../devicetree/bindings/nvmem/rmem.yaml       | 49 ++++++++++
 arch/arm/boot/dts/bcm2711-rpi-4-b.dts         | 17 ++++
 arch/arm/configs/multi_v7_defconfig           |  1 +
 arch/arm64/configs/defconfig                  |  1 +
 drivers/nvmem/Kconfig                         |  8 ++
 drivers/nvmem/Makefile                        |  2 +
 drivers/nvmem/rmem.c                          | 97 +++++++++++++++++++
 drivers/of/platform.c                         |  1 +
 8 files changed, 176 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/nvmem/rmem.yaml
 create mode 100644 drivers/nvmem/rmem.c
Signature · 1 line
2.29.2