From patchwork Tue May 2 16:48:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Golle X-Patchwork-Id: 89424 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp765583vqo; Tue, 2 May 2023 10:03:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7rI+Aoq+yzF7TUadgjVxBGmrEFpWKsElMmMULi6IMEfTIzcKdtTIvhrc5RlNIJ1nfokaOw X-Received: by 2002:a9d:77c6:0:b0:697:bfe5:93a0 with SMTP id w6-20020a9d77c6000000b00697bfe593a0mr9229947otl.10.1683047009838; Tue, 02 May 2023 10:03:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683047009; cv=none; d=google.com; s=arc-20160816; b=vBezDdbLTtTJvhJ6uWj+9St8WBu6wTJ0r3y7Yok+8EiEIlgbUlIgJ7zMmVcvqNNu3c j+fOY7AJKQ0TsaMNU2FSvhtNRHTOpdPfy4Jc5c4FT4Ffz7TuXBiwnWPYFNoPasGIP7ow sBqIh9wjOg5DbL2i2i/XoE+vds2PQCl09kmtU/eKKOffYuj/ck2Xbgga1VyA0r2rKE4a 6XRcoxKvbb2RP336XXmqiYwVmIzB8N5Xb3F5m4oAyReOwZIGkfg8nOlz1UBQtYpGZrWd nScHavH9KXzW4fElXLE6muEHrodDDSWEkhF/Klm9m6GgqwwZlw+6uxy21zMR0cFDoACS jUxA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x93-20020a9d37e6000000b006a60a317134si19910830otb.190.2023.05.02.10.02.53; Tue, 02 May 2023 10:03:29 -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 S233854AbjEBQtJ (ORCPT + 99 others); Tue, 2 May 2023 12:49:09 -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-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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764802701634145073?= X-GMAIL-MSGID: =?utf-8?q?1764802701634145073?= 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>; + }; + };