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