Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp324rdh; Wed, 25 Oct 2023 14:07:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEqVcl0dZN3Fox/6B4+fQ+Kxq9O9yqTRxgsZLmD1IdRGEpYGnOKsmkXahU6O5DsJXeG2zoe X-Received: by 2002:a05:6808:a86:b0:3a8:432a:ea13 with SMTP id q6-20020a0568080a8600b003a8432aea13mr17560517oij.46.1698268038311; Wed, 25 Oct 2023 14:07:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698268038; cv=none; d=google.com; s=arc-20160816; b=S3TkUewDGmvnNfYw/5uagnF3wkSiuCxXfYXtR4AEZM21Ny/KZlNtHpmAPaaOCDKwH9 tGhdyHC2t8nBxzTCISEOu/MO+oVRwJt86gkep7YSXPoRhCWKCP1SeUrDE3ZymEWRm7Ro v7f/s2scB53Zs+kqt9Uq/uftZp+A29gZEnSn+tZuQiHW++uQhbhvl3E7/mUbDFMA0b7B jIHOYpXHQxa+Tlxl8f6pGS5M0RQPfMzAKUnPQPpBoKLW4WbNSWB0v/+urvzyNBhPhW9X ow8yXSfbzS7I5D1W6DV5X5Qmj11vb8Jb3ENlXyU/u3ipmQJTXrotdjuBys5CYd7l1qUz Ya0w== 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=pF/ordmyMYgWe1Uu/l3iCAlozeYeU+RXukpZaUtD30Y=; fh=EE9G7yTU9fmnBslOkyu4jIX5ZdJt76O0kpIuimnBg80=; b=KJzyTYejDetfE0d4BqsvSd5HmVSAhb6uC47OhCBF8nIxmJFgcAc9uLIGcgI0LsSe5Q 3JSH8gVREyShko41Mzp+DroUYP0u0X4G0pMF+160boYyWLyiVMQgnoQ/U2xQBFjYotpE dky1Bfb9AsU38YbyR8tKxGqYEjr5scwQV//Jf956BvzDePVzMN77JEkgfY7977jsTrVx pT/Y10FVNOGcNy3AW2VQQ2Tsk6dXsFyKVNX8IrkyTaSmevKO6ct76JJxB1WrQ6ahyXKV vO4OLxXvCsm6XuUl9IDWnWnth+GKNScVgpRfgCD/DQPsMm4uYC3odWMriTFa9gabJDnu uMRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=acVpp8kY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id x14-20020a25ac8e000000b00da03d801d69si5674766ybi.630.2023.10.25.14.07.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 14:07:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=acVpp8kY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 71A7F817C8BB; Wed, 25 Oct 2023 14:07:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229682AbjJYVHB (ORCPT + 99 others); Wed, 25 Oct 2023 17:07:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230046AbjJYVG4 (ORCPT ); Wed, 25 Oct 2023 17:06:56 -0400 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13DE513D for ; Wed, 25 Oct 2023 14:06:54 -0700 (PDT) Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-1cacde97002so988455ad.2 for ; Wed, 25 Oct 2023 14:06:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1698268013; x=1698872813; 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=pF/ordmyMYgWe1Uu/l3iCAlozeYeU+RXukpZaUtD30Y=; b=acVpp8kYwUMLCAZN7hRnOvpNvz85M3O4Ea+8dpWsqmFFe3Xyy581p9UbqzcsMl980K nR8udgeSMdxPBrZ4pD1rxXCesSy6RobyPHnLkdz++hAdcAjy+OC+gD+G7LDVKEwO7qD7 uFqoXZf8Wi2+7qWXT9wkA1SmYQlVtW3JGFFiU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698268013; x=1698872813; 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=pF/ordmyMYgWe1Uu/l3iCAlozeYeU+RXukpZaUtD30Y=; b=Fd1aFP6C2Aqf/t1LDoLUgYEa4FGfAcyts3u04o70n/+OuUaWY0wcV5tNWrMHv9Boxh 2X44C26lNJlTJljhxORQzIqQQITE6zCssgjVP5SHQJM9nuDPeKE+yv0qPqLN82sptJo8 EcM1fHwuAChZJsxZ0lv20L4VeKN8TLeorhtMqtvXphL1tQYtjAJnnJRqnGly3SFCoPVJ gcXjSzD9RZKlEywMqTCJfkb5NiX9ZZIJ4JM3/MloJQVhn4MQz81IbLwHR+p287sjgHnJ AeL7nS3WPXBRhAp4A2vLNIPeg6ZG9lhzL1mQCfDafZpGaDVT5iG7PpZeej+HX+BTPHLn v1pA== X-Gm-Message-State: AOJu0YxaSPxWLtyNd/Sa5Ccn2CWc2BL5v3ROBC561wycmBjLZXXkrbXV GPY4GQqfrr7ft5Bt4rHcKn4++Q== X-Received: by 2002:a17:903:2342:b0:1c9:dff6:58f2 with SMTP id c2-20020a170903234200b001c9dff658f2mr16108624plh.59.1698268013528; Wed, 25 Oct 2023 14:06:53 -0700 (PDT) Received: from sjg1.roam.corp.google.com ([202.144.206.130]) by smtp.gmail.com with ESMTPSA id ix4-20020a170902f80400b001bc5dc0cd75sm9689447plb.180.2023.10.25.14.06.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 14:06:53 -0700 (PDT) From: Simon Glass To: devicetree@vger.kernel.org Cc: Michael Walle , U-Boot Mailing List , Tom Rini , Rob Herring , linux-mtd@lists.infradead.org, Miquel Raynal , Simon Glass , Conor Dooley , Krzysztof Kozlowski , Richard Weinberger , Rob Herring , Vignesh Raghavendra , linux-kernel@vger.kernel.org Subject: [PATCH v6 2/3] dt-bindings: mtd: binman-partition: Add binman compatibles Date: Thu, 26 Oct 2023 10:06:11 +1300 Message-ID: <20231025210616.3201502-2-sjg@chromium.org> X-Mailer: git-send-email 2.42.0.758.gaed0368e0e-goog In-Reply-To: <20231025210616.3201502-1-sjg@chromium.org> References: <20231025210616.3201502-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Wed, 25 Oct 2023 14:07:14 -0700 (PDT) Add two compatible for binman entries, as a starting point for the schema. Note that, after discussion on v2, we decided to keep the existing meaning of label so as not to require changes to existing userspace software when moving to use binman nodes to specify the firmware layout. Signed-off-by: Simon Glass --- (no changes since v5) Changes in v5: - Add mention of why 'binman' is the vendor - Drop 'select: false' - Tidy up the compatible setings - Use 'tfa-bl31' instead of 'atf-bl31' Changes in v4: - Correct selection of multiple compatible strings Changes in v3: - Drop fixed-partitions from the example - Use compatible instead of label Changes in v2: - Use plain partition@xxx for the node name .../mtd/partitions/binman-partition.yaml | 54 +++++++++++++++++++ 1 file changed, 54 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..83222ac9aa78 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/partitions/binman-partition.yaml @@ -0,0 +1,54 @@ +# 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 + +description: | + This corresponds to a binman 'entry'. It is a single partition which holds + data of a defined type. + + The vendor is specified as binman since there are quite a number + of binman-specific entry types, such as section, fill and files, + to be added later. + +allOf: + - $ref: /schemas/mtd/partitions/partition.yaml# + +properties: + compatible: + enum: + - binman,entry # generic binman entry + - u-boot # u-boot.bin from U-Boot project + - tfa-bl31 # bl31.bin or bl31.elf from TF-A project + + reg: + minItems: 1 + maxItems: 2 + +additionalProperties: false + +examples: + - | + partitions { + compatible = "binman"; + #address-cells = <1>; + #size-cells = <1>; + + partition@100000 { + compatible = "u-boot"; + reg = <0x100000 0xf00000>; + }; + + partition@200000 { + compatible = "tfa-bl31"; + reg = <0x200000 0x100000>; + }; + }; -- 2.42.0.758.gaed0368e0e-goog