Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3015635pxp; Tue, 8 Mar 2022 06:19:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJxZvvmbX0hBEhRZYWRqcw2EHemPaTcmXhfZaxk3dgNs1TkHPTa0UcZoMkIIxJGdO//vM9Vw X-Received: by 2002:a17:906:4ccd:b0:6b7:75ca:3eac with SMTP id q13-20020a1709064ccd00b006b775ca3eacmr13346700ejt.167.1646749160302; Tue, 08 Mar 2022 06:19:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646749160; cv=none; d=google.com; s=arc-20160816; b=rw7dh/6NUu0Je8PR68MgRzEYJ+Gv/muGopcmjRh2pAKxka3+aNEu857EN5s6TG3zaW g/t4S2/bephX8ApsgHxIwab88dSz9ajJoWcNVP3gu9vLIEI+NgBh4ZvTD9NIK/n8ZYmM eof/pzlgS9AsyqTYvQXDn4SiFeDQ9StrnxAzwYpO3Rfs5DwfwD9pwdDBUKJcOekgG+VK Juy29iLqOYAU4YQCnLKN8aPuDidEoQHGJI4+65RIBO8E0j2UZ6TzNucEwi1Xo9jdJ1Az GpJCOQJQhxww7E2UNay6NHGDxEsPu5FocBaPBL47T2bv06ebFLT0F7kf7dBP3Q8urh2q OVBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=TaZzkNMvcFak609V5gjWjr2ZiX5c1heN+EdAxQCepfE=; b=G2+nm15JvjZ4HyJeLgtch+yNTRMo8DHLqmw2UqUZgj6IgEgnr4gB3OlfXsZeWTxr43 ae/lEqrIg4pX81xI49WPCdLhHhPWCygLjVdfy1hYoftpwiQ82uGpflRRg9WMu964Mtol 9ag2JdklsYjJaydoAaHPC8bPe/AHmMmoQYnfUNPQRRuX/BA9Kh6kILGJ6C64RjXjEv9Z yJmS4NWxT+fWYpCVH0kmhvnRG7jysJUXTqlo0s/Hd2UZbKyjFKIuwlun1j621ni2nWtF wwSc9XY45fLjJWKAVpfUti+tWkxgdz0NSmnPLMLHOQhg32QfEPh5G9LZgmAiC87mu7Ox D4IQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=lcyX1Fp4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b24-20020a056402139800b00410aa9e83a9si10172435edv.455.2022.03.08.06.18.57; Tue, 08 Mar 2022 06:19:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=lcyX1Fp4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243124AbiCGOR2 (ORCPT + 99 others); Mon, 7 Mar 2022 09:17:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243086AbiCGORP (ORCPT ); Mon, 7 Mar 2022 09:17:15 -0500 Received: from smtp1.axis.com (smtp1.axis.com [195.60.68.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A98088EB52; Mon, 7 Mar 2022 06:16:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1646662579; x=1678198579; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=TaZzkNMvcFak609V5gjWjr2ZiX5c1heN+EdAxQCepfE=; b=lcyX1Fp4POJF6YrkNk/MzrgEwAXN8o7QZZyTQPQ4Gm1xwzmKJKWLA3kI 2o0bZ4OVMvZDhy3GP3OJ7mcAqsd40QOtZah2tw3lum8nhbS5evYfHPysl pDlop18609Na38nWKIbWOxyOjA7pwoCmNVM9sHjW5WEpn7jgqfa6Cofg5 3Q60i9T6c5RD7c0pSwpS/71HwWhXciFQkn+wk4n3O9+oCrWI4ZPR5WHiV kd7JOnurtNjgWtFL4MiH7u2SsYzCkN6JfvI0YrjA0V4e93k08nI5AuZVO rcifoIjVgNIHDKfPZ9oct9ekO4+QaxqxP0BUgtrpfOE7vOZVoRY5ADBrf A==; From: Vincent Whitchurch To: , , , CC: , , , , , , , Vincent Whitchurch Subject: [PATCH 2/4] dt-bindings: reserved-memory: Add phram Date: Mon, 7 Mar 2022 15:15:47 +0100 Message-ID: <20220307141549.2732179-3-vincent.whitchurch@axis.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220307141549.2732179-1-vincent.whitchurch@axis.com> References: <20220307141549.2732179-1-vincent.whitchurch@axis.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add bindings to allow MTD/block devices to be created in reserved-memory regions using the "phram" driver. This allows things like partitioning to be specified via the existing devicetree bindings. Signed-off-by: Vincent Whitchurch --- .../bindings/reserved-memory/phram.yaml | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/reserved-memory/phram.yaml diff --git a/Documentation/devicetree/bindings/reserved-memory/phram.yaml b/Documentation/devicetree/bindings/reserved-memory/phram.yaml new file mode 100644 index 000000000000..92e7a80ee87a --- /dev/null +++ b/Documentation/devicetree/bindings/reserved-memory/phram.yaml @@ -0,0 +1,45 @@ +# 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: | + Use the reserved memory region as an MTD or block device. + + If no-map is not set, cached mappings will be used for the memory region. + +maintainers: + - Vincent Whitchurch + +allOf: + - $ref: "reserved-memory.yaml" + - $ref: "../mtd/mtd.yaml" + +properties: + compatible: + const: phram + + reg: + description: region of memory that contains the 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>; + }; + }; -- 2.34.1