Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1500404rwr; Fri, 5 May 2023 15:24:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5wb+86GqAY9emcxnNgsqCO64JsUQFswSYTjHY4XkbMGF3HM2fkOZ4idzIItb5EbBZUJIk5 X-Received: by 2002:a05:6a20:918a:b0:f2:9918:eb73 with SMTP id v10-20020a056a20918a00b000f29918eb73mr3785836pzd.46.1683325489194; Fri, 05 May 2023 15:24:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683325489; cv=none; d=google.com; s=arc-20160816; b=nn9dopXYOjcqHplBbtFkLFpQPaG88jtNNLcSoOt0v7KOD25mMOW1XCzKzYgdS383Wb bD0Gfd4xP2tf0VIxtsVdeyEYcyAL7P0krJpv2lkejXEgLmZnavvs9nfGchrWbwg/Zxxt 9g25oap2skwnK/2vSLe2HjzAJWQrzNAR1EDp1kJHWtsUCMg6zHS1t7UUUimN4wcLcdQr g+wHBUJHpdllHuQm3gQI6JBuJ21PetDNQsATE3t2uS2RGa/wE6GQAocsNfncIxSWal19 T6qzuc5QIzHyHr88AcNOMPK2NscWGPEa7cVR46FkuLIr2OMgAIE+arsZQ0hzR5BE89Ig sI8w== 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:cc:to:from:date; bh=WNSzvzZVt7UhzIY8EoLz5e+V2L8esY8YLcJw3l2ZqdI=; b=ydfZ9oM8VIgZhRkd0Jl0+HujUowtJQnVEmbPtUi9pKIE6kz8EpeMjdOvPh0UGIf4fR 5DSlI61yLBzwe8Yprt12WoKXMeToiDT3A9UoKcs4NOnhbWEeC+YZ8I1B2bA/ns7Ld5Mb /FfsXFzgp2qcH3K6ThUNZzSiZ9NImt8RImLkJvaOVQpHWeuCRo8mK8SQdC8Rz7BmNB8h ol5UNP0YBMKgjgKFflggOjPriiCw1SPpmQwsihs+QIxawMsP36TyBhXrqeslo5FVusX8 BDi9mFd5t0Z+2eLxj8heAU9vRa9CZAcEMQKDZTqn/CWnaKt1UU0a2jIs3qv+2mVwE+D8 fFXw== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y21-20020a63b515000000b0051b631334f1si2842114pge.764.2023.05.05.15.24.34; Fri, 05 May 2023 15:24:49 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233456AbjEEV4Q (ORCPT + 99 others); Fri, 5 May 2023 17:56:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229994AbjEEV4P (ORCPT ); Fri, 5 May 2023 17:56:15 -0400 Received: from mail-ot1-f41.google.com (mail-ot1-f41.google.com [209.85.210.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4C214C29; Fri, 5 May 2023 14:56:11 -0700 (PDT) Received: by mail-ot1-f41.google.com with SMTP id 46e09a7af769-6a5f21a0604so1609576a34.2; Fri, 05 May 2023 14:56:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683323771; x=1685915771; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=WNSzvzZVt7UhzIY8EoLz5e+V2L8esY8YLcJw3l2ZqdI=; b=A9hBqqh3VMwLW6IOMrKzKW8ksgaJQhRzpiPI6+OsTRufVvrgLpNKXfgjnnsuvUkZnP LiR1rQivO0MQTMFNyQ8J8pJ7DUXA3ER7Ow/iM54CbvZ/BY9pIVPCiIRDXAtn+DuhlxOB HlMiYp57qRHssYHht5N1aleZdUsg7qhIpwuGmMdlF2xxHC+hISZAV1WeWHPyyIw243b7 euaAU94MrCjidAFGmCHvMj7pO6S7zPNmllESuEsQx0H935n3o/1NVBTbYW8oAiBrMS8p SeVM7V1ESH6QTUcx33W2TkJBiUJJBbHhnEDWxExikAQiVgfeaWk0UFafRPeY5bhLDRm/ EBBg== X-Gm-Message-State: AC+VfDxew7SEDe1wIuClR/+eT9hhAT8RFmtwjGtar0zAU2ir101swZ4k 8+5xQYJJFHqK+9V1U7Azxw== X-Received: by 2002:a9d:5909:0:b0:6a6:23eb:728e with SMTP id t9-20020a9d5909000000b006a623eb728emr1298665oth.29.1683323770900; Fri, 05 May 2023 14:56:10 -0700 (PDT) Received: from robh_at_kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id n4-20020a0568301e8400b0069f0a85fa36sm1348780otr.57.2023.05.05.14.56.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 May 2023 14:56:10 -0700 (PDT) Received: (nullmailer pid 3630402 invoked by uid 1000); Fri, 05 May 2023 21:56:09 -0000 Date: Fri, 5 May 2023 16:56:09 -0500 From: Rob Herring To: Daniel Golle Cc: linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Krzysztof Kozlowski , Zhihao Cheng , =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= Subject: Re: [PATCH 3/4] dt-bindings: mtd: partitions: add linux,ubi compatible Message-ID: <20230505215609.GA3620855-robh@kernel.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,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 On Tue, May 02, 2023 at 05:48:39PM +0100, Daniel Golle wrote: > Add bindings for MTD partitions to be attached as UBI devices. > > Signed-off-by: Daniel Golle > --- > .../bindings/mtd/partitions/ubi.yaml | 49 +++++++++++++++++++ linux,ubi.yaml > 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 >