[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20201215155627.2513-2-nsaenzjulienne@suse.de>
Date: Tue, 15 Dec 2020 16:56:21 +0100
From: Nicolas Saenz Julienne <nsaenzjulienne@...e.de>
To: srinivas.kandagatla@...aro.org,
Saenz Julienne <nsaenzjulienne@...e.de>,
devicetree@...r.kernel.org, bcm-kernel-feedback-list@...adcom.com,
linux-rpi-kernel@...ts.infradead.org,
linux-arm-kernel@...ts.infradead.org
Cc: linux-kernel@...r.kernel.org, linux@...linux.org.uk,
catalin.marinas@....com, will@...nel.org, robh+dt@...nel.org,
tim.gover@...pberrypi.com, phil@...pberrypi.com
Subject: [PATCH 1/6] dt-bindings: nvmem: Add bindings for rmem driver
Firmware/co-processors might use reserved memory areas in order to pass
data stemming from an nvmem device otherwise non accessible to Linux.
For example an EEPROM memory only physically accessible to firmware, or
data only accessible early at boot time.
Introduce the dt-bindings to nvmem's rmem.
Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@...e.de>
---
.../devicetree/bindings/nvmem/rmem.yaml | 35 +++++++++++++++++++
1 file changed, 35 insertions(+)
create mode 100644 Documentation/devicetree/bindings/nvmem/rmem.yaml
diff --git a/Documentation/devicetree/bindings/nvmem/rmem.yaml b/Documentation/devicetree/bindings/nvmem/rmem.yaml
new file mode 100644
index 000000000000..3037ebc4634d
--- /dev/null
+++ b/Documentation/devicetree/bindings/nvmem/rmem.yaml
@@ -0,0 +1,35 @@
+# 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@...e.de>
+
+properties:
+ compatible:
+ enum:
+ - nvmem-rmem
+
+ memory-region:
+ $ref: /schemas/types.yaml#/definitions/phandle
+ description:
+ phandle to the reserved memory region
+
+required:
+ - compatible
+ - memory-region
+
+additionalProperties: false
+
+examples:
+ - |
+ fw-config {
+ compatible = "nvmem-rmem";
+ memory-region = <&mem>;
+ };
+
+...
--
2.29.2
Powered by blists - more mailing lists