Skip to content

Commit 084973e

Browse files
Rafał Miłeckigregkh
authored andcommitted
dt-bindings: nvmem: brcm,nvram: add basic NVMEM cells
NVRAM doesn't have cells at hardcoded addresses. They are stored in internal struct (custom & dynamic format). It's still important to define relevant cells in DT so NVMEM consumers can reference them. Update binding to allow including basic cells as NVMEM device subnodes. Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Rafał Miłecki <rafal@milecki.pl> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Link: https://lore.kernel.org/r/20220225175822.8293-5-srinivas.kandagatla@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 82a05d8 commit 084973e

1 file changed

Lines changed: 23 additions & 2 deletions

File tree

Documentation/devicetree/bindings/nvmem/brcm,nvram.yaml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ description: |
1414
NVRAM can be accessed on Broadcom BCM47xx MIPS and Northstar ARM Cortex-A9
1515
devices usiong I/O mapped memory.
1616
17+
NVRAM variables can be defined as NVMEM device subnodes.
18+
1719
maintainers:
1820
- Rafał Miłecki <rafal@milecki.pl>
1921

@@ -27,11 +29,30 @@ properties:
2729
reg:
2830
maxItems: 1
2931

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+
40+
et1macaddr:
41+
type: object
42+
description: Second Ethernet interface's MAC address
43+
44+
et2macaddr:
45+
type: object
46+
description: Third Ethernet interface's MAC address
47+
3048
unevaluatedProperties: false
3149

3250
examples:
3351
- |
3452
nvram@1eff0000 {
35-
compatible = "brcm,nvram";
36-
reg = <0x1eff0000 0x10000>;
53+
compatible = "brcm,nvram";
54+
reg = <0x1eff0000 0x10000>;
55+
56+
mac: et0macaddr {
57+
};
3758
};

0 commit comments

Comments
 (0)