Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2836399rdh; Wed, 27 Sep 2023 14:28:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFwysUAR5jiQQUdQdcvhkq3PHUh7Q6thJmSnfJ/uG60Woh46FVIZAcLpMBIu11q2+VxS2Lo X-Received: by 2002:a25:a503:0:b0:d7a:c572:f8e with SMTP id h3-20020a25a503000000b00d7ac5720f8emr2831554ybi.64.1695850087660; Wed, 27 Sep 2023 14:28:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695850087; cv=none; d=google.com; s=arc-20160816; b=f3A6fl9iP/9cKuhQ3G9JLmt0UnjOE59uXYUSjxHbkIkKw5q91Vuix+CTf6qBRU8npu PfRoojaSyAFjZdQvW3zxWRiUVLGlEnDZ+eXn3oO/K23VqeR5jJhICE/P+nFVNLka117c mNyx9ZkteLEVqPx5lsrSmygaJD/d3xScObStq3lVvTn5D7lH7vV7FTs1AEpRsrAZgnVT rCAoCPaKSfik39orYNN7cfYSe/UcDZOH7pLCqbYxnS6xW7Pe6iV7sZXLFOpaHZ8cjNHW ksWLJ45WDsNH90fNBWEzG7Ra3M9FFME+8/R2KXV1jnDlZl8x4siObS+FsaH9IwxksFSh 9JUg== 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=1kq9WoSgqEviF42jhwFTI980vH31ePAvDcikVyQPxtc=; fh=YNbY7hirlEqbuzE6BAFKYb5HbQhO8eCJw1uEp6+i2Ds=; b=JAXL3zNXervqEPE7+qlr4zbqeGXK7axHe2D30+5QZwGpfvS9LBFV3O2xxqQYRhXi0a AdvB0RWLDz9nL6r1sBc4igC67sQ9YjKvuVlcRScVsm6Qfdb2OUk/nicWZfIdU4yslex0 YZQ1KEqHobWEKvnlcVVge7kxkQ6qBeECiuZ28ibvGkEtL0dE2ti1glrGe9KlaxrUE67n eQNkPPMXc+KIALX7DUFzoySsBmwB5l3AadbuPVLgJEgH1w+8GpeGjtVx1f+klUiLiuLc xvEaRjgMVyA8cumSZn0taSOSoYmlGOxr/HWx8DFGRvfWt40Sf4Zdm184KLQ3N/dL2oeW c2VA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=f8G63bW0; 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 Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id u11-20020a6540cb000000b00577680ccf1bsi13666154pgp.709.2023.09.27.14.28.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 14:28:07 -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=f8G63bW0; 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 3612B80A144D; Wed, 27 Sep 2023 13:21:35 -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 S229771AbjI0UVO (ORCPT + 99 others); Wed, 27 Sep 2023 16:21:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229664AbjI0UVL (ORCPT ); Wed, 27 Sep 2023 16:21:11 -0400 Received: from mail-io1-xd2d.google.com (mail-io1-xd2d.google.com [IPv6:2607:f8b0:4864:20::d2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5469C10E for ; Wed, 27 Sep 2023 13:21:10 -0700 (PDT) Received: by mail-io1-xd2d.google.com with SMTP id ca18e2360f4ac-79fa416b7ffso367363139f.2 for ; Wed, 27 Sep 2023 13:21:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1695846069; x=1696450869; 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=1kq9WoSgqEviF42jhwFTI980vH31ePAvDcikVyQPxtc=; b=f8G63bW0U7k/6Ocv1LYU381gT0auO5VWNBu+Q78y1TcTXuaT7TS+5kRzrKlWDr5TOs Hs98Gr0iD2V9OOjmsSOc9zqlfTNVNQ1jMyHCL4Bt7P3m1WhByHNEFV4+1yF2Ovy8t0Cz +iZDNiZUi3Ibm7jrS7Ny2ND7aaxEOgNxNJTDk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695846069; x=1696450869; 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=1kq9WoSgqEviF42jhwFTI980vH31ePAvDcikVyQPxtc=; b=av/pqw2CgAiXs3s7Sg/jqp39k4SA1OegPm6Cqy1RV7rb2zZbD98xCCLxWq7gh4dW20 QP9xNysvHEvJ4aXq8rHdqsGnimsy978M//dU6lTgPoCzzg+jm2xh80/ZLwHYVrLYR9UF r/frPcOEf8WR9axTy3UjVB12kQxc5GXDwHBOHHrOntGB306aYGnLwLg+zWKWbVLd4Z4j WDfb9DBFK4yYG+7si9VOzfMXMW/ZGPTg6Vm90w6cKGq5Qdm0hHpCaRqLEOnVkOAskcGK OsJINbZ33DrqcLQMyN4BXX67a9qDprHIiRWSm5viysY9HRDqCbgGnrQcr8mNUPEAiLyE HMqg== X-Gm-Message-State: AOJu0Yxac4Hlaxnc2nYg1DkWrCvnAqd+ePXsCrljfl7xVPnFvK1I9ufv HvAs5mp//4WLmObUSOX/WZa/Jg== X-Received: by 2002:a5e:a610:0:b0:795:16b8:85fc with SMTP id q16-20020a5ea610000000b0079516b885fcmr2995614ioi.0.1695846069701; Wed, 27 Sep 2023 13:21:09 -0700 (PDT) Received: from kea.bld.corp.google.com ([2620:15c:183:200:5d4f:fe51:5575:6f76]) by smtp.gmail.com with ESMTPSA id ei15-20020a05663829af00b0042fec8620e4sm4113299jab.57.2023.09.27.13.21.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 13:21:09 -0700 (PDT) From: Simon Glass To: devicetree@vger.kernel.org Cc: linux-mtd@lists.infradead.org, U-Boot Mailing List , Tom Rini , Rob Herring , Simon Glass , Conor Dooley , Krzysztof Kozlowski , Miquel Raynal , Richard Weinberger , Rob Herring , Vignesh Raghavendra , linux-kernel@vger.kernel.org Subject: [PATCH 2/3] dt-bindings: mtd: binman-partition: Add binman labels Date: Wed, 27 Sep 2023 14:20:52 -0600 Message-ID: <20230927202057.3676497-2-sjg@chromium.org> X-Mailer: git-send-email 2.42.0.515.g380fc7ccd1-goog In-Reply-To: <20230927202057.3676497-1-sjg@chromium.org> References: <20230927202057.3676497-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=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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 27 Sep 2023 13:21:36 -0700 (PDT) Add two labels for binman entries, as a starting point for the schema. Signed-off-by: Simon Glass --- .../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..6ee832cb4c4c --- /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-u-boot@100000 { + label = "u-boot"; + reg = <0x100000 0xf00000>; + }; + + partition-atf-bl31t@200000 { + label = "atf-bl31"; + reg = <0x200000 0x100000>; + }; + }; -- 2.42.0.515.g380fc7ccd1-goog