Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp767156pxb; Tue, 12 Apr 2022 12:56:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4EFFdnczL7/0QOUMaMWbr5ow0JLlgjaJRyBymcy+igzW5W5suxam4co3Bz1zSg57buvB7 X-Received: by 2002:a63:5c0b:0:b0:382:76f4:c768 with SMTP id q11-20020a635c0b000000b0038276f4c768mr31395658pgb.93.1649793374346; Tue, 12 Apr 2022 12:56:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649793374; cv=none; d=google.com; s=arc-20160816; b=QnhVEEVviuzkY84btVgr+ymFMR/Tty3sMSI3/MfZ+xZwu6jwm5B+Qxxyv6LaMWUtnl DDfccSr3klABJ6Vm20clYGaZTDVQVBRNRZ0UKPh+xqCGNTWLqK//y8XrleyQURrotdEL 62Ye2/gxnIeRwysnhR+dfdaCnE8x2/ITiAXk5WZRBcYQO+ij7uyXIdzfdR8Evm6s6UsY +6niCthL3DI05hNZqtZtun620S24fB89oMm7eB9ZKOYqbkDr66mAokGHpg38xmBMzK/V 49CzeejFBGXxRlarL8ZS11WcBR6BKUwL9MpsCOnraCsmmWBkTKj/8rAmUscVq62RBJFE NF1A== 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=jupemliQ8dJWnscgwhDk1djkO0V1yNDM+5JWRzk83NE=; b=qNh/DAplfPhtKI9umQ5h4lF8hssDOb+sQt8vUlkpT1RaDZcmgmvfF+xGcCkrhOjx1D 2hz7uTjT50k4FTZ+oh25pxHCWKVJPFMzF4iZf69UjM2OxSxXtZlKyyeyge/Y5J+p9AXm Ci4I9RuRk7Z4wjbuCRCDHuj73TqYU32q6t6asOAHfFrYdMNZGdyBSbHGK9dPKVGYYjDg z91WNnsNObsMS6mzUSC4EmXCItlUDhIELI0jJML9m4y6XtIvHHS7p5tDQ9ICd2NNt137 hRgl8h7vCH8gr8U8agbPkzQa1+IZgEf7oDPQAxfoe5N1sHUQF0l6nVeJcsqpvzBqwL+k WSQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=AsPkKyqR; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id c17-20020a6566d1000000b0039d9af9b639si2362621pgw.807.2022.04.12.12.56.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 12:56:14 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=AsPkKyqR; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DBA6E1094; Tue, 12 Apr 2022 12:49:09 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356390AbiDLNza (ORCPT + 99 others); Tue, 12 Apr 2022 09:55:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356352AbiDLNzZ (ORCPT ); Tue, 12 Apr 2022 09:55:25 -0400 Received: from smtp2.axis.com (smtp2.axis.com [195.60.68.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7955757488; Tue, 12 Apr 2022 06:53:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1649771588; x=1681307588; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=jupemliQ8dJWnscgwhDk1djkO0V1yNDM+5JWRzk83NE=; b=AsPkKyqRtkZeyL7JAWRqNjITpIQwd2aRv3sIsgEO3000zpSp1w7RwlHG 9iaNT6vCNeCQdXD+dAmx3OKQbEGaag9JLgIMG3QITu4CDDSo8t+4MiUrt sv1UOvMIO7W+b+/BaG9G9Ji/uyncRR7ExGGmXLYCZkem/zHYpWLqyYdqF cMLDu36juukh721NzCbP/+J7U0AFr1oLzI8UUjoNqQ9ZVAJ/9Qe93ovld VVDqHlyZKvS/E7+NvXwJHB7NnUO9UGCn4WNiCect5HZmBrb4orkf3sWRq v/Wi1Ik27HultEwH27w2Sq7i68Jq11RFgt1Z0XWO8QGn8bM5Ea63DG5r7 A==; From: Vincent Whitchurch To: , , , CC: , Vincent Whitchurch , , , , , , Subject: [PATCH v3 2/4] dt-bindings: reserved-memory: Support MTD/block device Date: Tue, 12 Apr 2022 15:53:00 +0200 Message-ID: <20220412135302.1682890-3-vincent.whitchurch@axis.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220412135302.1682890-1-vincent.whitchurch@axis.com> References: <20220412135302.1682890-1-vincent.whitchurch@axis.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 used in reserved-memory regions using the "phram" (MTD in PHysical RAM) driver. This allows things like partitioning to be specified via the existing devicetree bindings. Signed-off-by: Vincent Whitchurch --- Notes: v3: - Reword description. v2: - Add note on what "phram" means. - Use /schemas/mtd/mtd.yaml instead of relative pathUse /schemas/mtd/mtd.yaml instead of relative path. .../bindings/reserved-memory/phram.yaml | 47 +++++++++++++++++++ 1 file changed, 47 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..6c4db28015f1 --- /dev/null +++ b/Documentation/devicetree/bindings/reserved-memory/phram.yaml @@ -0,0 +1,47 @@ +# 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 + +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>; + }; + }; -- 2.34.1