1b0598777c11f16735ebe908a1d17217dafff8e0
[openwrt/staging/neocturne.git] /
1 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
2 Date: Tue, 2 Mar 2021 08:23:35 +0100
3 Subject: [PATCH] dt-bindings: firmware: add Broadcom's NVRAM memory mapping
4
5 NVRAM structure contains device data and can be accessed using MMIO.
6
7 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 ---
9 .../bindings/firmware/brcm,nvram.yaml | 41 +++++++++++++++++++
10 1 file changed, 41 insertions(+)
11 create mode 100644 Documentation/devicetree/bindings/firmware/brcm,nvram.yaml
12
13 --- /dev/null
14 +++ b/Documentation/devicetree/bindings/firmware/brcm,nvram.yaml
15 @@ -0,0 +1,41 @@
16 +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
17 +%YAML 1.2
18 +---
19 +$id: "http://devicetree.org/schemas/firmware/brcm,nvram.yaml#"
20 +$schema: "http://devicetree.org/meta-schemas/core.yaml#"
21 +
22 +title: Broadcom's NVRAM
23 +
24 +maintainers:
25 + - Rafał Miłecki <rafal@milecki.pl>
26 +
27 +description: |
28 + NVRAM is a structure containing device specific environment variables.
29 + It is used for storing device configuration, booting parameters and
30 + calibration data.
31 +
32 + It's required very early in booting process and so is made available
33 + using memory mapping.
34 +
35 + NVRAM can be found on Broadcom BCM47xx MIPS, Northstar ARM Cortex-A9
36 + and some more devices.
37 +
38 +properties:
39 + compatible:
40 + const: brcm,nvram
41 +
42 + reg:
43 + description: memory region with NVRAM data
44 + maxItems: 1
45 +
46 +required:
47 + - reg
48 +
49 +additionalProperties: false
50 +
51 +examples:
52 + - |
53 + nvram@1e000000 {
54 + compatible = "brcm,nvram";
55 + reg = <0x1e000000 0x10000>;
56 + };