Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp7134004rwr; Tue, 2 May 2023 09:55:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ71HDpn6RtEDFSN7GROncvcjYwQ/Vdfz5S7629U4N2KTKJC5+RaP4SQn44WspnkaE5Oc9Sg X-Received: by 2002:a05:6a20:914f:b0:ef:8de0:6a5 with SMTP id x15-20020a056a20914f00b000ef8de006a5mr21850339pzc.3.1683046517295; Tue, 02 May 2023 09:55:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683046517; cv=none; d=google.com; s=arc-20160816; b=hHcsRQgKpom7AQMNgdrf9VdXi+A7Vl/3JiLNOJVUvE5aV5f+VZx3BbZXUP0K3F9OlJ /XpZPYEar8n+JQoUwbZdk0JyZXFPYt6RJnuQawhxtThQdQQjYVsy6vGf6U9QI2sxuNxd C30qlFc80ACG6AiS9/wZciaLHqGAYDGM2OB+povTtX6Dz6mGRCkD7aMrHGduLBFPkBzJ snFE1mAP3GFAz6BGng1DpqDXaq8Ziq+gQNLSO9sXTmxPiuwQ9EaA9h1pSRgJDwW0KVW1 4mS/FG6kqib8eBfFakg+sWlz666Vs/kchZE/R2rR4vCY9uqfNN7MDZKWiSu5c5F75a5X 8IMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:to:from:date; bh=S6QUnYJSAYr66Ud0rab5qBlK1fE/deuL2bPmBPZ2GT4=; b=V5XCpKCuJfTG13WudJT7YHFN3jrs+ZbnJkh5SiaNMWd8JWN3q8QuZCufwXFB/9vUIX eYsvjSx151kU7cdKHXx+RnRedQtPTB9PzYZ7B0zJQLz9evc9a8k8qI45l/v7HvNPdjjI KkOp+pnDeCbGt6Y6juqY3xcnyIjtDpWPNSx21iSVmt3AwPlXbMHRPII2nIaRLe0IZc9S n18C2RCzJ99slNsfDSYNp9dbop3LumoHsN+1Fs9m8FCjiFW6AmuNy8UKBeOEhCDEBaed qwrp6wdHilvD+rps14vvLIVexj5DT29XRZ4twChttcf0tO1y0rLkj1hpcRfsv7/aua0R 9sEQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y191-20020a638ac8000000b005138e3da7e7si861040pgd.467.2023.05.02.09.55.03; Tue, 02 May 2023 09:55:17 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234343AbjEBQtI (ORCPT + 99 others); Tue, 2 May 2023 12:49:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234144AbjEBQtC (ORCPT ); Tue, 2 May 2023 12:49:02 -0400 Received: from fudo.makrotopia.org (fudo.makrotopia.org [IPv6:2a07:2ec0:3002::71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2D1E3C14; Tue, 2 May 2023 09:48:48 -0700 (PDT) Received: from local by fudo.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96) (envelope-from ) id 1pttBH-0000VJ-06; Tue, 02 May 2023 18:48:47 +0200 Date: Tue, 2 May 2023 17:48:39 +0100 From: Daniel Golle To: linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Rob Herring , Krzysztof Kozlowski , Zhihao Cheng , =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= Subject: [PATCH 3/4] dt-bindings: mtd: partitions: add linux,ubi compatible Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, 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 for MTD partitions to be attached as UBI devices. Signed-off-by: Daniel Golle --- .../bindings/mtd/partitions/ubi.yaml | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/partitions/ubi.yaml diff --git a/Documentation/devicetree/bindings/mtd/partitions/ubi.yaml b/Documentation/devicetree/bindings/mtd/partitions/ubi.yaml new file mode 100644 index 0000000000000..aa02fbbd50716 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/partitions/ubi.yaml @@ -0,0 +1,49 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mtd/partitions/ubi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Unsorted Block Images (UBI) + +description: | + Unsorted Block Images (UBI) is a volume management system typically + used on NAND flash providing bad block management as well as + wear-leveling. + Any partition containing the compatible "linux,ubi" will be attached + as UBI device. + +maintainers: + - Daniel Golle + +allOf: + - $ref: /schemas/mtd/partitions/partition.yaml# + +properties: + compatible: + const: linux,ubi + +required: + - compatible + +unevaluatedProperties: false + +examples: + - | + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "bootloader"; + reg = <0x000000 0x100000>; + read-only; + }; + + ubi@100000 { + compatible = "linux,ubi"; + label = "ubi"; + reg = <0x100000 0x7f00000>; + }; + }; -- 2.40.1