xref: /linux/Documentation/devicetree/bindings/reserved-memory/phram.yaml (revision 72e418c478c7b978d12a13d15fefb8c9d439b371)
14e969459SVincent Whitchurch# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
24e969459SVincent Whitchurch%YAML 1.2
34e969459SVincent Whitchurch---
44e969459SVincent Whitchurch$id: http://devicetree.org/schemas/reserved-memory/phram.yaml#
54e969459SVincent Whitchurch$schema: http://devicetree.org/meta-schemas/core.yaml#
64e969459SVincent Whitchurch
74e969459SVincent Whitchurchtitle: MTD/block device in RAM
84e969459SVincent Whitchurch
94e969459SVincent Whitchurchdescription: |
104e969459SVincent Whitchurch  Specifies that the reserved memory region can be used as an MTD or block
114e969459SVincent Whitchurch  device.
124e969459SVincent Whitchurch
134e969459SVincent Whitchurch  The "phram" node is named after the "MTD in PHysical RAM" driver which
144e969459SVincent Whitchurch  provides an implementation of this functionality in Linux.
154e969459SVincent Whitchurch
164e969459SVincent Whitchurchmaintainers:
174e969459SVincent Whitchurch  - Vincent Whitchurch <vincent.whitchurch@axis.com>
184e969459SVincent Whitchurch
194e969459SVincent WhitchurchallOf:
20*72e418c4SRob Herring  - $ref: reserved-memory.yaml
21*72e418c4SRob Herring  - $ref: /schemas/mtd/mtd.yaml
224e969459SVincent Whitchurch
234e969459SVincent Whitchurchproperties:
244e969459SVincent Whitchurch  compatible:
254e969459SVincent Whitchurch    const: phram
264e969459SVincent Whitchurch
274e969459SVincent Whitchurch  reg:
284e969459SVincent Whitchurch    description: region of memory that can be used as an MTD/block device
294e969459SVincent Whitchurch
304e969459SVincent Whitchurchrequired:
314e969459SVincent Whitchurch  - compatible
324e969459SVincent Whitchurch  - reg
334e969459SVincent Whitchurch
344e969459SVincent WhitchurchunevaluatedProperties: false
354e969459SVincent Whitchurch
364e969459SVincent Whitchurchexamples:
374e969459SVincent Whitchurch  - |
384e969459SVincent Whitchurch    reserved-memory {
394e969459SVincent Whitchurch        #address-cells = <1>;
404e969459SVincent Whitchurch        #size-cells = <1>;
414e969459SVincent Whitchurch
424e969459SVincent Whitchurch        phram: flash@12340000 {
434e969459SVincent Whitchurch            compatible = "phram";
444e969459SVincent Whitchurch            label = "rootfs";
454e969459SVincent Whitchurch            reg = <0x12340000 0x00800000>;
464e969459SVincent Whitchurch        };
474e969459SVincent Whitchurch    };
48