From patchwork Wed Oct 25 21:06:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 158301 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:d641:0:b0:403:3b70:6f57 with SMTP id cy1csp238701vqb; Wed, 25 Oct 2023 14:07:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEoXbbSeBJJNaxMSkoGgnnhqwPCHp8Kguq93Do08WB26VatEGy7W0+Ye+zCG70GwK7SSdT4 X-Received: by 2002:a25:d30e:0:b0:d9a:ce05:37b with SMTP id e14-20020a25d30e000000b00d9ace05037bmr16205381ybf.56.1698268027157; Wed, 25 Oct 2023 14:07:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698268027; cv=none; d=google.com; s=arc-20160816; b=rG8dqeQxNd/hCy4pB4ZrPedlvg+FHjAZL8vNu/xfuyOBrxCpJMPLTVJBePYGmPnZXK RfAWSDswtIl36nOgrV52Rg+w0WyWfWY3XY0ksaJln4YbAWBsYHjuEOOf21NbioXExM0b xI44CD55gkx+8pMz83hAOISJ65cidriaWYw2+wDaGWH61jhBappILC0EGpnBArIY+eYG hoL4YFTUKE15LtO++HQsdPtPZerxIvXKSGjbIFu0Ry+YtnOPDVR/BetwB1goWlcN9hZw 3UCeqPYv4JjiX8+aVUVCW3iSfGUOtDQB0J9ZYO2gbiDbqO5wSc63i2hx2Zez3noMJyuq Md0Q== 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 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id v131-20020a252f89000000b00da04e945ab2si4962406ybv.378.2023.10.25.14.07.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 14:07:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; 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 2620:137:e000::3:7 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 0C49481A3367; Wed, 25 Oct 2023 14:07:05 -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 S230106AbjJYVHC (ORCPT + 25 others); Wed, 25 Oct 2023 17:07:02 -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 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_NONE, 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 (snail.vger.email [0.0.0.0]); Wed, 25 Oct 2023 14:07:05 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780763094745074650 X-GMAIL-MSGID: 1780763094745074650 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>; + }; + };