xref: /freebsd/sys/contrib/device-tree/Bindings/nvmem/brcm,nvram.yaml (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/nvmem/brcm,nvram.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Broadcom's NVRAM
8
9description: |
10  Broadcom's NVRAM is a structure containing device specific environment
11  variables. It is used for storing device configuration, booting parameters
12  and calibration data.
13
14  NVRAM can be accessed on Broadcom BCM47xx MIPS and Northstar ARM Cortex-A9
15  devices usiong I/O mapped memory.
16
17  NVRAM variables can be defined as NVMEM device subnodes.
18
19maintainers:
20  - Rafał Miłecki <rafal@milecki.pl>
21
22allOf:
23  - $ref: nvmem.yaml#
24
25properties:
26  compatible:
27    const: brcm,nvram
28
29  reg:
30    maxItems: 1
31
32  board_id:
33    type: object
34    description: Board identification name
35
36  et0macaddr:
37    type: object
38    description: First Ethernet interface's MAC address
39    properties:
40      "#nvmem-cell-cells":
41        description: The first argument is a MAC address offset.
42        const: 1
43    additionalProperties: false
44
45  et1macaddr:
46    type: object
47    description: Second Ethernet interface's MAC address
48    properties:
49      "#nvmem-cell-cells":
50        description: The first argument is a MAC address offset.
51        const: 1
52    additionalProperties: false
53
54  et2macaddr:
55    type: object
56    description: Third Ethernet interface's MAC address
57    properties:
58      "#nvmem-cell-cells":
59        description: The first argument is a MAC address offset.
60        const: 1
61    additionalProperties: false
62
63unevaluatedProperties: false
64
65examples:
66  - |
67    nvram@1eff0000 {
68        compatible = "brcm,nvram";
69        reg = <0x1eff0000 0x10000>;
70
71        mac: et0macaddr {
72        };
73    };
74