mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-02 08:32:55 +00:00

On Mobileye EyeQ5, the bootloader will put MAC addresses into memory. Declare that as reserved memory to be used by the kernel, exposing nvmem cells. That region has a 12-byte header and a 4-byte trailing CRC. Acked-by: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Link: https://lore.kernel.org/r/20241230143035.265518-3-srinivas.kandagatla@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
55 lines
1.2 KiB
YAML
55 lines
1.2 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/nvmem/rmem.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Reserved Memory Based nvmem Device
|
|
|
|
maintainers:
|
|
- Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
|
|
|
|
allOf:
|
|
- $ref: nvmem.yaml#
|
|
|
|
properties:
|
|
compatible:
|
|
items:
|
|
- enum:
|
|
- mobileye,eyeq5-bootloader-config
|
|
- raspberrypi,bootloader-config
|
|
- raspberrypi,bootloader-public-key
|
|
- const: nvmem-rmem
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
no-map:
|
|
$ref: /schemas/types.yaml#/definitions/flag
|
|
description:
|
|
Avoid creating a virtual mapping of the region as part of the OS'
|
|
standard mapping of system memory.
|
|
|
|
required:
|
|
- compatible
|
|
- no-map
|
|
|
|
unevaluatedProperties: false
|
|
|
|
examples:
|
|
- |
|
|
reserved-memory {
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
blconfig: nvram@10000000 {
|
|
compatible = "raspberrypi,bootloader-config", "nvmem-rmem";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
reg = <0x10000000 0x1000>;
|
|
no-map;
|
|
};
|
|
};
|
|
|
|
...
|