From patchwork Mon Oct 2 17:49:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 147503 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2a8e:b0:403:3b70:6f57 with SMTP id in14csp1714009vqb; Mon, 2 Oct 2023 15:01:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHoJ+1VhSje4akylmA4nTkhwiATR3XO31euc+bGLcNcgq0VlZH44V2cbD2WmaKMTNHpa4ii X-Received: by 2002:a05:6a00:2442:b0:690:449f:5e96 with SMTP id d2-20020a056a00244200b00690449f5e96mr11196352pfj.33.1696284079650; Mon, 02 Oct 2023 15:01:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696284079; cv=none; d=google.com; s=arc-20160816; b=w+eVBdy/QMjWcCJ6tugCZIY09vR0HNVAu3ZPe2L25joIlSN6RRniasbk3WlB85g4iZ p7GAH+v0npEBj5khuEeuiQ0SsV+aM0zPfXciyFiNHMGsVTSwI3XIpWsur4MdigwGuxYm DDLV/pEymNgDNziyw3TpSiQo+YpYVOnED9C2AQZqmowaIM6Y0nZlSIYsd0QA6XWPHjkf cOyQyDKlA/M/SA6oqGes3mL70hF2jIbzQjD57fWWZth+I871/+0OMNLzjQtWxJ9SzxRT qrafPPdX+sCKGnDoi809yw9kwbwCo8Fahpsx8cpJhJgHhAZQEABlTXUd6vKdctT6eLae pckQ== 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=F2OIh/G3vvfH8cT1f+jhivcT+xHStCXj54HHC5DhSlw=; fh=Qv8OsorF1ClzIIlobsfS2QPEBCIkSYqmDz6uYikQsNA=; b=02wsd9mwBWtfq9xmbYs/+bc+zp1JZPywMTx9cn3lNWsG8IqoukLwVPx3t3moELZ1I0 +GRL9x3pD80Id8otw0j/5mzEHVzAgHhqWB+COiagPupy7CRjgo6H7LtyL9isH/RlAtND oMryYJLy05KVcQmHXA3SAiJoY2ALhVKQFXa4XsVNctMmByxUdXXsb7GmRHf/SZdpnldt p0XO19FXuYrcX2OnnFJegQZqOy+DbSwusDnuX7CIQGumaSrHbrcTNmodvR+rb5dGP/8B +wFWDJQ6XrYhxQxf6kS2zZzxa2b7jYqr2tZFwIW5SNL4mR1cQdgkGQWWorpCJ8MbrB9s ACnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=AWo5QFqi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id t24-20020aa79398000000b00690228b1d45si25928150pfe.342.2023.10.02.15.01.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 15:01:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=AWo5QFqi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 6079D8083B67; Mon, 2 Oct 2023 10:50:44 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237951AbjJBRuk (ORCPT + 18 others); Mon, 2 Oct 2023 13:50:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237853AbjJBRuj (ORCPT ); Mon, 2 Oct 2023 13:50:39 -0400 Received: from mail-io1-xd36.google.com (mail-io1-xd36.google.com [IPv6:2607:f8b0:4864:20::d36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83895C6 for ; Mon, 2 Oct 2023 10:50:35 -0700 (PDT) Received: by mail-io1-xd36.google.com with SMTP id ca18e2360f4ac-76c64da0e46so810139f.0 for ; Mon, 02 Oct 2023 10:50:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1696269035; x=1696873835; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=F2OIh/G3vvfH8cT1f+jhivcT+xHStCXj54HHC5DhSlw=; b=AWo5QFqi3vDLNgXtRAXU3v3ejAKlGFEYneI+WL/VuF3O37bI7rgOhwwfIddbR8TBDZ b9+DOJuI0NYMxPztTllcC5SGi5IQg5w7T772e9ZMNOcmwPmjtG2nz9WfFxrIOiHEQuEC Q3ebbxjgqIpHFCeYrZ/RRXtP4Q7yVaF1LV3ZE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696269035; x=1696873835; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=F2OIh/G3vvfH8cT1f+jhivcT+xHStCXj54HHC5DhSlw=; b=RVoGXuM1FmwimujD4oRU4SPhhZ4EPmY//cHP0LRX6g/EbijMBWkUd6/Tp29JXA6XSZ lJG40ddl7FWzDbO4C8UzSrdhA8rD76cidGsV3+t/JyzB8nmqtLBAGhfOuNik27nJJc1K Nz65nXUIycdZFHBQs/rYejQjq/y25bRmIOeHUom88wmJYl19y3l6gRqaMrIydLmGoPPq zoVnrCI3Mya2S+QGpo4vHUwKg8NHmfcAKQEIPNWHKuXIzuUjqYv/ZwNd4WsTOhjaQCR4 mxEMp/nTJeCEctz/R/tjH2h1azm20/MkummvYfXwRLbYgQJGcd3H+KMT3/4OzHi2RVFJ GFdQ== X-Gm-Message-State: AOJu0YxtU9UifcUrXZ5Z41IubBWZBjSTz0SpJBSjgaRBBIBzxF/TrCCC uYPP5Y8TIn3SNXgWJfedPAHeHg== X-Received: by 2002:a5d:9cd5:0:b0:799:36c2:fa49 with SMTP id w21-20020a5d9cd5000000b0079936c2fa49mr12850092iow.15.1696269034885; Mon, 02 Oct 2023 10:50:34 -0700 (PDT) Received: from kea.bld.corp.google.com ([2620:15c:183:200:63cd:2673:520:2e9]) by smtp.gmail.com with ESMTPSA id s23-20020a02c517000000b0042b2e309f97sm6919562jam.177.2023.10.02.10.50.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 10:50:34 -0700 (PDT) From: Simon Glass To: devicetree@vger.kernel.org Cc: Rob Herring , Tom Rini , U-Boot Mailing List , linux-mtd@lists.infradead.org, Simon Glass , Conor Dooley , Krzysztof Kozlowski , Miquel Raynal , Richard Weinberger , Rob Herring , Vignesh Raghavendra , linux-kernel@vger.kernel.org Subject: [PATCH v2 2/3] dt-bindings: mtd: binman-partition: Add binman labels Date: Mon, 2 Oct 2023 11:49:41 -0600 Message-ID: <20231002174948.1015223-2-sjg@chromium.org> X-Mailer: git-send-email 2.42.0.582.g8ccd20d70d-goog In-Reply-To: <20231002174948.1015223-1-sjg@chromium.org> References: <20231002174948.1015223-1-sjg@chromium.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 02 Oct 2023 10:50:44 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778682775091296633 X-GMAIL-MSGID: 1778682775091296633 Add two labels for binman entries, as a starting point for the schema. Signed-off-by: Simon Glass --- Changes in v2: - Use plain partition@xxx for the node name .../mtd/partitions/binman-partition.yaml | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/partitions/binman-partition.yaml diff --git a/Documentation/devicetree/bindings/mtd/partitions/binman-partition.yaml b/Documentation/devicetree/bindings/mtd/partitions/binman-partition.yaml new file mode 100644 index 000000000000..406a8997d3e4 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/partitions/binman-partition.yaml @@ -0,0 +1,48 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright 2023 Google LLC + +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mtd/partitions/binman-partition.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Binman partition + +maintainers: + - Simon Glass + +select: false + +description: | + This corresponds to a binman 'entry'. It is a single partition which holds + data of a defined type. + +allOf: + - $ref: /schemas/mtd/partitions/partition.yaml# + +properties: + label: + items: + enum: + - u-boot # u-boot.bin from U-Boot projec6t + - atf-bl31 # bl31.bin or bl31.elf from TF-A project + +additionalProperties: false + +examples: + - | + partitions { + compatible = "binman", "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@100000 { + label = "u-boot"; + reg = <0x100000 0xf00000>; + }; + + partition@200000 { + label = "atf-bl31"; + reg = <0x200000 0x100000>; + }; + };