Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1599150rdb; Mon, 2 Oct 2023 15:01:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHBEe7XraL/+TXuoX1sCmQ2y9R0rjIvquP6GMVVN1RslZM0mBs4+iAwyn9niZ6B2PS7hZMf X-Received: by 2002:a25:3620:0:b0:d80:14a0:6b0 with SMTP id d32-20020a253620000000b00d8014a006b0mr11515255yba.19.1696284084541; Mon, 02 Oct 2023 15:01:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696284084; cv=none; d=google.com; s=arc-20160816; b=JfcE177ebqHk9vAYgSQZI4Sx5pQDZLDktMcH7wUPxfFRn5WQFPVDet0/I/jEgA+oVt KEUZGILoKyHR68XTHSoxvKQj9R1EOo63UWx+6O5fvaGaqhHKgtE1y/LyrMrU/I6Nshrw AqdpvSfzKkS5Ka/gzc1rC6ZNtFLru1l4T5X3R9tlKvueSXha/V+qkpCljwVehaMbGmqN KsR50OissEgcCP0Kp5plFMjvEvizYIscsNVFZ1pT82GQx/u+TGKRUtBgSwLRIDcxPSf/ 9li6wQNkf+Xj3N84Kuzpy2WaDaZmLSSIGYlZNHuP0ocj6BCMTSvuUGx55HUws53TvF+L YuZA== 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.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id o5-20020a6548c5000000b00578cb0ce623si28465405pgs.739.2023.10.02.15.01.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 15:01:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; 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.37 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 snail.vger.email (Postfix) with ESMTP id 32260804E448; Mon, 2 Oct 2023 10:50:41 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237928AbjJBRuk (ORCPT + 99 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 Content-Transfer-Encoding: 8bit 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 (snail.vger.email [0.0.0.0]); Mon, 02 Oct 2023 10:50:41 -0700 (PDT) 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>; + }; + }; -- 2.42.0.582.g8ccd20d70d-goog