[PATCH PREVIEW RFC 6/6] dt-bindings: bootcache: Add bindings for bootcache backend
acampanella-thegoodpenguin <[email protected]> Tue, 23 Sep 2025 15:23:43 +0100
| Newsgroups | org.kernel.vger.linux-embedded |
|---|---|
| Message-ID | <[email protected]> |
From: Marc Kelly <[email protected]> Add device tree bindings for the bootcache_backend_memory. Signed-off-by: Marc Kelly <[email protected]> --- .../bootcache/linux,bootcache-backend-memory.yaml | 67 ++++++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 68 insertions(+) diff --git a/Documentation/devicetree/bindings/bootcache/linux,bootcache-backend-memory.yaml b/Documentation/devicetree/bindings/bootcache/linux,bootcache-backend-memory.yaml new file mode 100644 index 0000000000000000000000000000000000000000..cf46bf4c513e263f67cdf2323349fa16837c8d22 --- /dev/null +++ b/Documentation/devicetree/bindings/bootcache/linux,bootcache-backend-memory.yaml @@ -0,0 +1,67 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/bootcache/linux,bootcache-backend-memory.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Bootcache Framework reserved memory backend + +maintainers: + - Marc Kelly <[email protected]> + - Andrea Campenella <[email protected]> + +description: + This bootcache backend adds support for using reserved memory + for the storage location for bootcache data. On initialization this + memory is read and any bootcache entries found are added to the + bootcache framework. + Data is inserted into these memory locations via the bootloader + or other means before the kernel boots. + +properties: + compatible: + enum: + - linux,backend-backend-memory + + reg: + maxItems: 2 + + memory-region: + maxItems: 1 + description: + Contains the bootcache reserved memory. + Data format is a binary block of packed cache data consisting + of a selection of key and value pairs, along with size indicators. + The format should be considered private to the driver and should + not be interpreted outside of the drivers context. + +required: + - compatible + - reg + - memory-region + +unevaluatedProperties: false + +examples: + - | + /* + * The bootcache-backend is placed in the in the main domain + * of the SOC, with the reserved memory location defined as + * follows. + * This defines 64kBytes in the upper 2GBytes. + * + * The size + * reserved-memory { + * bootcache_reserved: bootcache-reserved@BFFF0000 { + * no-map; + * reg = <0x00 0xBFFF0000 0x00 0x10000>; + * label = "bootcache_backend_memory"; + * }; + * } + */ + + bootcache-backend@BFFF0000 { + compatible = "linux,backend-backend-memory"; + reg = <0x00 0xBFFF0000 0x00 0x10000>; + memory-region = <&bootcache_reserved>; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 73679686d49ac653382ecb32b9b3b500a4509383..d547fe2fa77f6fabdd19be3c0a68526d2f6d2d4d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4422,6 +4422,7 @@ BOOT CACHE M: Andrea Campanella <[email protected]> M: Marc Kelly <[email protected]> S: Maintained +F: Documentation/devicetree/bindings/bootcache/linux,bootcache-backend-memory.yaml F: drivers/base/bootcache.c F: drivers/base/bootcache_* F: include/linux/bootcache.h -- 2.48.1