Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/reserved-memory/phram.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: MTD/block device in RAM
0008 
0009 description: |
0010   Specifies that the reserved memory region can be used as an MTD or block
0011   device.
0012 
0013   The "phram" node is named after the "MTD in PHysical RAM" driver which
0014   provides an implementation of this functionality in Linux.
0015 
0016 maintainers:
0017   - Vincent Whitchurch <vincent.whitchurch@axis.com>
0018 
0019 allOf:
0020   - $ref: "reserved-memory.yaml"
0021   - $ref: "/schemas/mtd/mtd.yaml"
0022 
0023 properties:
0024   compatible:
0025     const: phram
0026 
0027   reg:
0028     description: region of memory that can be used as an MTD/block device
0029 
0030 required:
0031   - compatible
0032   - reg
0033 
0034 unevaluatedProperties: false
0035 
0036 examples:
0037   - |
0038     reserved-memory {
0039         #address-cells = <1>;
0040         #size-cells = <1>;
0041 
0042         phram: flash@12340000 {
0043             compatible = "phram";
0044             label = "rootfs";
0045             reg = <0x12340000 0x00800000>;
0046         };
0047     };