Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1032349rdh; Fri, 27 Oct 2023 02:47:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH9eHJgmMzG9Nz+VFlaMF/eMzegTFtr4LIqmanF7Q39/ji/wbLaW7a0pJDcqm+sJwzBuu4K X-Received: by 2002:a25:cb01:0:b0:da0:5787:ef1b with SMTP id b1-20020a25cb01000000b00da05787ef1bmr2295212ybg.14.1698400024496; Fri, 27 Oct 2023 02:47:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698400024; cv=none; d=google.com; s=arc-20160816; b=reIhpJHAJibWuogBI6dCkFwzU1T0HH6Reu4UNSEZtcaRxHB7pjeSEx4OYfqIU9Dt8x 2ZDVt3kxUob3CaxR6pSt9hOLAGhRXX4gANIYuB2n45PqZKSuJ+RIVmBGjpLgzmgueDwD 8dUnG6hx+IOIZKKWyYpjqM7sgoN/6cHnnQ2gCBShAEK/giIGeVbi0q6gVX8ekgNoVA2x CopR94E6znqnR4iUFlm/sehe7K5jlLFzWnY2AajqqbEn+st1i4Tm3wkUq05tGViRhBTX o1E9aEDK7/CYs6zYJIYIm43k0zivbOluTQbxJmZEVcrz2lZxlzilrmmdxcQzYdqIUUrj Bu8g== 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=xEvvoEL4f860fQB8Vn0Gm+/MxWApzTrF9OV/p2f3Xxs=; fh=Kq9b/J1mwVh6tlELICS5y4CJRfo+SrzMxk7bCnGGdWg=; b=ES+PmL3ZOqgGbDNaZnifzLV8f1qRZQwZ9QSivMAo+9Ylxlbi+MRpZXIzFPXsmWQeuE AY3HqpyMSg962EFH717bdPschxMAiBHvL1f37G0oP5AbOyg2ugvbanNWzRZ0HfJbIkDF 6xPeu+5RILhiqIZLxoDIn8L0RgF6t+9G0PGMAen63MQw2ncG7T6gakO0TwQtKuuGHNLp HTzxAev2Sc9LpECxwliS4y0Dj5Rhj6SfPo1yR4Z53G9ReQjZedrNfjqzu5hmqK13QZhC lTOKdUV3EZcdgL4UVIeKb3Wn9cqkVipDAtRULwohkoxC1sYQ4Lz7W5YFzSI3xe9R2pMk EMcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@openmail.cc header.s=2018 header.b="CH+Qd/Qb"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id g125-20020a252083000000b00d7c7dce765fsi1990569ybg.669.2023.10.27.02.47.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 02:47:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=fail header.i=@openmail.cc header.s=2018 header.b="CH+Qd/Qb"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 8297F8083B08; Fri, 27 Oct 2023 02:47:01 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345617AbjJ0Jqw (ORCPT + 99 others); Fri, 27 Oct 2023 05:46:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235036AbjJ0Jqs (ORCPT ); Fri, 27 Oct 2023 05:46:48 -0400 Received: from smtp161.vfemail.net (smtp161.vfemail.net [146.59.185.161]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BB7EFA for ; Fri, 27 Oct 2023 02:46:45 -0700 (PDT) Received: (qmail 28683 invoked from network); 27 Oct 2023 09:46:43 +0000 Received: from localhost (HELO nl101-3.vfemail.net) () by smtpout.vfemail.net with ESMTPS (ECDHE-RSA-AES256-GCM-SHA384 encrypted); 27 Oct 2023 09:46:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=openmail.cc; h=from:to:cc :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; s=2018; bh=hle8SC8oQYe3hUk/lyn2FO0kf 0Ff2mlV8GXo803pPyU=; b=CH+Qd/QbAiCVWAvHMIvg/wNRYBwWAp5uusKkg2Eko Qm7GaUKdRAfSsevWXfe75Uh8T9l4tWpSGafnqyRnGwz/07zNhAmWWwo3jI9e87EW TmbArOkT0y6Ws7j890m/aa6cogqoL3ArOzwqBgUXnuF/le8ci795ovexrLMhb6/d Uc= Received: (qmail 19515 invoked from network); 27 Oct 2023 09:46:43 -0000 Received: by simscan 1.4.0 ppid: 19049, pid: 19509, t: 0.3358s scanners:none Received: from unknown (HELO bmwxMDEudmZlbWFpbC5uZXQ=) (ZXF1dUBvcGVubWFpbC5jYw==@MTkyLjE2OC4xLjE5Mg==) by nl101.vfemail.net with ESMTPA; 27 Oct 2023 09:46:42 -0000 From: Edward Chow To: Rob Herring , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Krzysztof Kozlowski Cc: linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Lech Perczak , Edward Chow Subject: [PATCH v2 2/2] dt-bindings: mtd: partitions: Document special values Date: Fri, 27 Oct 2023 17:46:10 +0800 Message-ID: <20231027094610.1022114-3-equu@openmail.cc> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231027094610.1022114-1-equu@openmail.cc> References: <20231025052937.830813-1-equu@openmail.cc> <20231027094610.1022114-1-equu@openmail.cc> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.3 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Fri, 27 Oct 2023 02:47:01 -0700 (PDT) Add examples for special values in linux/mtd/partitions.h. Signed-off-by: Edward Chow --- .../mtd/partitions/fixed-partitions.yaml | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/Documentation/devicetree/bindings/mtd/partitions/fixed-partitions.yaml b/Documentation/devicetree/bindings/mtd/partitions/fixed-partitions.yaml index 331e564f29dc..e7bf466c395f 100644 --- a/Documentation/devicetree/bindings/mtd/partitions/fixed-partitions.yaml +++ b/Documentation/devicetree/bindings/mtd/partitions/fixed-partitions.yaml @@ -164,3 +164,33 @@ examples: read-only; }; }; + + - | + #include + partitions { + compatible = "fixed-partitions"; + #address-cells = <2>; + #size-cells = <1>; + + partition@0 { + label = "bootloader"; + reg = <0 0x000000 0x020000>; + read-only; + }; + + firmware@1 { + label = "firmware"; + /* From the end of the last partition, occupying as mush + * as possible, retaining 0x010000 after it, + * "MTDPART_OFS_SPECIAL MTDPART_OFS_NXTBLK" similar to + * this, but always beginning at erase block boundary. */ + reg = ; + }; + + calibration@2 { + compatible = "fixed-partitions"; + label = "calibration"; + /* Appending to the last partition, occupying 0x010000 */ + reg = ; + }; + }; -- 2.42.0