Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp610591ybv; Sat, 22 Feb 2020 10:30:36 -0800 (PST) X-Google-Smtp-Source: APXvYqxcyLfz4JidSFWU0Elomle3WyDDRf9hiG2ENaL4r+Sp6tQ17vCcWUCReIfB/pd+WxMkGNiT X-Received: by 2002:a9d:21c5:: with SMTP id s63mr20842786otb.142.1582396236079; Sat, 22 Feb 2020 10:30:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582396236; cv=none; d=google.com; s=arc-20160816; b=wVql2D0ZxnshHRwKU0MBXuqDJREB7LRPYMpT3Q+4KkT8Fe/P6Bs6pyccTcdunzRDyJ ipw+EIQNti6AlFq9XwpUkxwjNCc7/cvkL63iTL8ImrWYK5mgOHRBebgxVnwmlZAUknQF CIREWfBcxLmKvrKHksKERrHJvj+iAUUD7AkKI3R4qET1BUlmNObcRS3y9FPZR7mtZ8Jg qgaIYY3g5h3RNK+QzmCyGRyWfElFUtwQjuVbihUF65OhalesxqXE7zPH0dZD7ULU5H+f 7hfQmZ5t3ZorShjeeNxz+rh9/FcYGWNR5RcE5ZltR1XG09nzdF8EOVohMrTka0OzACN0 pbHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:references :mime-version:message-id:in-reply-to:date:dkim-signature; bh=LqkliWMqkbYqRIuupuOLJ6kzkCRKDL/XTv8pUZxzvKQ=; b=s2T2CvW+a/viyK8lmxQscYWoqiGB3wdDdPKTj+nZNWJ0IQL7VRYU7w0SgXm0C1Pxhp wM0yU9vRlZFUReiZkkXEocFhiKbItJ1ka3Ydsay5sOQYh71tMfvkRd2vFu4+3Wwa9VNP 5o0aTy0AtqY8u37yho+QU59NCqKKz663gBF3CjmiUx6YbfiRFXNJOBfLPvppxr0Ibn2u vVmIr0oo0XgMMvZVjFD83fN2YjsmHVg2IgANgxt8cgAerzgz+uz7gTNddcWbLwmm/Pbz KSwrvHkH5KZkjPc+Uk8EbdxM2FFChx9Dsb6eo8Fcunk9k1xNOESHzMyo6lSSdzPAKxow W1Xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=PgQzLg8q; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h6si3674163otk.276.2020.02.22.10.30.23; Sat, 22 Feb 2020 10:30:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=PgQzLg8q; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726880AbgBVSaR (ORCPT + 99 others); Sat, 22 Feb 2020 13:30:17 -0500 Received: from mail-pg1-f201.google.com ([209.85.215.201]:34451 "EHLO mail-pg1-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726853AbgBVSaR (ORCPT ); Sat, 22 Feb 2020 13:30:17 -0500 Received: by mail-pg1-f201.google.com with SMTP id w5so3189407pgw.1 for ; Sat, 22 Feb 2020 10:30:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=LqkliWMqkbYqRIuupuOLJ6kzkCRKDL/XTv8pUZxzvKQ=; b=PgQzLg8qKzkyhPyxTmoaNbnjNiSyl7EAdKe9zlgr7TFwxMb8ScYriPIQUviohO4BSk nUR9tkQzOmQFjuXA1r1vnn/cKgcN9herEGiD+8RcQ5/kjryJFb1QCWQB68vGKhtmmgH/ sDAHhKQrgYrgoL3KjmL3XDRC4b/vmMsjwr48xg6ZF82kNigCID53t8L0ht6mg+ro4qoc /WfCokur3PuPbHVzNIO3SE6niOinINt9R1b06lNInZVj1C5XUBd+v9ygMq3wQe/e/6p8 8E+UZTx4ZMxQKRikHlAw/aYtrrZSsf7C++C1js0gybHMgS+8OWKW7jMi9NcWaOXrRPaX 3bcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=LqkliWMqkbYqRIuupuOLJ6kzkCRKDL/XTv8pUZxzvKQ=; b=kwxKvl7X46Uvs9eSGisNTU69Uc6wgx7z1MuznMC7MPNdecGL7yEwHVOBPsRqyhA3MJ 6ocCYdW20EnrD4o3K5wrG+PAfhHIihBzbSArbPSy6YhdrgFLgNyfLFJpQ6SYW8YERB/E R+IzxNi7cHjOUrDAmB8dqIhwat8FDkE1mxSHR/gDUiImdIsLguZVCgh+edNHyLHlXYAX abBJjDtApdC4glHL2icbNTVg8JRUEvfZsIupueLof0ngxwD6FrLnclDFkqot+quqgLoW 7U4c5ip9QQci8EKKw2GcYJq81gKHWVKtYtyuhdHYa65jealGes6AWjP51TOHKrSvnAzk bUMg== X-Gm-Message-State: APjAAAVwHMFdYVuYxNxXqWZZBIcwNfu4jz4KzuaYgBBnMsznWh+sPURD erzIF4enFISpw++6s6X1ELgZsjjX/qEGhNRheCLet2DhJnCegLZHmzwyrQZ/5V0qjgJG2gZnJen 85krNmgvn/kEOSfSsHGrv4du6F8653sVMdDC72cKqd2hmWVQqrKkuX0mVNBnmf3+nARXFqw== X-Received: by 2002:a63:120f:: with SMTP id h15mr46221489pgl.235.1582396216132; Sat, 22 Feb 2020 10:30:16 -0800 (PST) Date: Sat, 22 Feb 2020 10:30:10 -0800 In-Reply-To: <20200222183010.197844-1-adelva@google.com> Message-Id: <20200222183010.197844-2-adelva@google.com> Mime-Version: 1.0 References: <20200222183010.197844-1-adelva@google.com> X-Mailer: git-send-email 2.25.0.265.gbab2e86ba0-goog Subject: [PATCH 2/2] dt-bindings: pmem-region: Document memory-region From: Alistair Delva To: linux-kernel@vger.kernel.org Cc: Kenny Root , "Oliver O'Halloran" , Rob Herring , Dan Williams , Vishal Verma , Dave Jiang , Ira Weiny , devicetree@vger.kernel.org, linux-nvdimm@lists.01.org, kernel-team@android.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kenny Root Add documentation and example for memory-region in pmem. Signed-off-by: Kenny Root Signed-off-by: Alistair Delva Cc: "Oliver O'Halloran" Cc: Rob Herring Cc: Dan Williams Cc: Vishal Verma Cc: Dave Jiang Cc: Ira Weiny Cc: devicetree@vger.kernel.org Cc: linux-nvdimm@lists.01.org Cc: kernel-team@android.com --- .../devicetree/bindings/pmem/pmem-region.txt | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/Documentation/devicetree/bindings/pmem/pmem-region.txt b/Documentation/devicetree/bindings/pmem/pmem-region.txt index 5cfa4f016a00..851ffa71967e 100644 --- a/Documentation/devicetree/bindings/pmem/pmem-region.txt +++ b/Documentation/devicetree/bindings/pmem/pmem-region.txt @@ -29,6 +29,18 @@ Required properties: in a separate device node. Having multiple address ranges in a node implies no special relationship between the two ranges. + This property may be replaced or supplemented with a + memory-region property. Only one of reg or memory-region + properties is required. + + - memory-region: + Reference to the reserved memory node. The reserved memory + node should be defined as per the bindings in + reserved-memory.txt + + This property may be replaced or supplemented with a reg + property. Only one of reg or memory-region is required. + Optional properties: - Any relevant NUMA assocativity properties for the target platform. @@ -63,3 +75,21 @@ Examples: volatile; }; + + /* + * This example uses a reserved-memory entry instead of + * specifying the memory region directly in the node. + */ + + reserved-memory { + pmem_1: pmem@5000 { + no-map; + reg = <0x00005000 0x00001000>; + }; + }; + + pmem@1 { + compatible = "pmem-region"; + memory-region = <&pmem_1>; + }; + -- 2.25.0.265.gbab2e86ba0-goog