Skip to content

Commit 62a65b3

Browse files
pdp7weiny2
authored andcommitted
dt-bindings: pmem: Convert binding to YAML
Convert the PMEM device tree binding from text to YAML. This will allow device trees with pmem-region nodes to pass dtbs_check. [iweiny: fix ups from Rob/Drew] Acked-by: Conor Dooley <[email protected]> Acked-by: Oliver O'Halloran <[email protected]> Signed-off-by: Drew Fustini <[email protected]> Acked-by: Dan Williams <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Ira Weiny <[email protected]>
1 parent 19272b3 commit 62a65b3

File tree

3 files changed

+49
-66
lines changed

3 files changed

+49
-66
lines changed

Documentation/devicetree/bindings/pmem/pmem-region.txt

Lines changed: 0 additions & 65 deletions
This file was deleted.
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/pmem-region.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
maintainers:
8+
- Oliver O'Halloran <[email protected]>
9+
10+
title: Persistent Memory Regions
11+
12+
description: |
13+
Persistent memory refers to a class of memory devices that are:
14+
15+
a) Usable as main system memory (i.e. cacheable), and
16+
b) Retain their contents across power failure.
17+
18+
Given b) it is best to think of persistent memory as a kind of memory mapped
19+
storage device. To ensure data integrity the operating system needs to manage
20+
persistent regions separately to the normal memory pool. To aid with that this
21+
binding provides a standardised interface for discovering where persistent
22+
memory regions exist inside the physical address space.
23+
24+
properties:
25+
compatible:
26+
const: pmem-region
27+
28+
reg:
29+
maxItems: 1
30+
31+
volatile:
32+
description:
33+
Indicates the region is volatile (non-persistent) and the OS can skip
34+
cache flushes for writes
35+
type: boolean
36+
37+
required:
38+
- compatible
39+
- reg
40+
41+
additionalProperties: false
42+
43+
examples:
44+
- |
45+
pmem@5000 {
46+
compatible = "pmem-region";
47+
reg = <0x00005000 0x00001000>;
48+
};

MAINTAINERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13798,7 +13798,7 @@ M: Oliver O'Halloran <[email protected]>
1379813798
1379913799
S: Supported
1380013800
Q: https://patchwork.kernel.org/project/linux-nvdimm/list/
13801-
F: Documentation/devicetree/bindings/pmem/pmem-region.txt
13801+
F: Documentation/devicetree/bindings/pmem/pmem-region.yaml
1380213802
F: drivers/nvdimm/of_pmem.c
1380313803

1380413804
LIBNVDIMM: NON-VOLATILE MEMORY DEVICE SUBSYSTEM

0 commit comments

Comments
 (0)