Skip to content

Commit e208e29

Browse files
committed
dts: bindings: mtd: Add nvmem-provider
Add a devicetree binding to represent an NVMEM provider. Signed-off-by: Pieter De Gendt <[email protected]>
1 parent 602d77f commit e208e29

File tree

1 file changed

+45
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)