Skip to content

Commit 4e4cbc5

Browse files
committed
dts: bindings: nvmem: Add fixed-layout
Add a devicetree binding to represent a fixed layout in an NVMEM provider. Signed-off-by: Pieter De Gendt <[email protected]>
1 parent 3c6012b commit 4e4cbc5

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Copyright (c) 2025 Basalte bv
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
description: |
5+
Fixed layout for Non-Volatile memory.
6+
7+
compatible: "fixed-layout"
8+
9+
properties:
10+
"#address-cells":
11+
type: int
12+
const: 1
13+
description: |
14+
Number of cells required to represent a child node's
15+
reg property address.
16+
17+
"#size-cells":
18+
type: int
19+
const: 1
20+
description: |
21+
Number of cells required to represent a child node's size.
22+
23+
child-binding:
24+
description: |
25+
Each child node of the NVMEM provider node represents
26+
an individual NVMEM cell. These should usually
27+
look like this:
28+
29+
cell_nodelabel: cell@START_OFFSET {
30+
reg = <0xSTART_OFFSET 0xSIZE>;
31+
#nvmem-cell-cells = <0>;
32+
};
33+
34+
properties:
35+
reg:
36+
type: array
37+
required: true
38+
description: |
39+
This should be in the format <OFFSET SIZE>, where OFFSET
40+
is the offset of the NVMEM cell relative to the base
41+
address of the parent memory, and SIZE is the size of
42+
the cell in bytes.
43+
44+
read-only:
45+
type: boolean
46+
description: Set this property if the cell is read-only.

0 commit comments

Comments
 (0)