xref: /linux/Documentation/devicetree/bindings/reserved-memory/phram.yaml (revision d5c421d24d7eca0a2c9708cf0b3fbc1e63f9136a)
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/reserved-memory/phram.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: MTD/block device in RAM
8
9description: |
10  Specifies that the reserved memory region can be used as an MTD or block
11  device.
12
13  The "phram" node is named after the "MTD in PHysical RAM" driver which
14  provides an implementation of this functionality in Linux.
15
16maintainers:
17  - Vincent Whitchurch <vincent.whitchurch@axis.com>
18
19allOf:
20  - $ref: reserved-memory.yaml
21  - $ref: /schemas/mtd/mtd.yaml
22
23properties:
24  compatible:
25    const: phram
26
27  reg:
28    description: region of memory that can be used as an MTD/block device
29
30required:
31  - compatible
32  - reg
33
34unevaluatedProperties: false
35
36examples:
37  - |
38    reserved-memory {
39        #address-cells = <1>;
40        #size-cells = <1>;
41
42        phram: flash@12340000 {
43            compatible = "phram";
44            label = "rootfs";
45            reg = <0x12340000 0x00800000>;
46        };
47    };
48