Documentation/devicetree/bindings/reserved-memory/phram.yaml

Source file repositories/reference/linux-study-clean/Documentation/devicetree/bindings/reserved-memory/phram.yaml

File Facts

System
Linux kernel
Corpus path
Documentation/devicetree/bindings/reserved-memory/phram.yaml
Extension
.yaml
Size
1038 bytes
Lines
48
Domain
Support Tooling And Documentation
Bucket
Documentation
Inferred role
Support Tooling And Documentation: configuration, schema, or hardware description
Status
atlas-only

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/reserved-memory/phram.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: MTD/block device in RAM

description: |
  Specifies that the reserved memory region can be used as an MTD or block
  device.

  The "phram" node is named after the "MTD in PHysical RAM" driver which
  provides an implementation of this functionality in Linux.

maintainers:
  - Vincent Whitchurch <vincent.whitchurch@axis.com>

allOf:
  - $ref: reserved-memory.yaml
  - $ref: /schemas/mtd/mtd.yaml

properties:
  compatible:
    const: phram

  reg:
    description: region of memory that can be used as an MTD/block device

required:
  - compatible
  - reg

unevaluatedProperties: false

examples:
  - |
    reserved-memory {
        #address-cells = <1>;
        #size-cells = <1>;

        phram: flash@12340000 {
            compatible = "phram";
            label = "rootfs";
            reg = <0x12340000 0x00800000>;
        };
    };

Annotation

Implementation Notes