From patchwork Wed Sep 27 20:20:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 145613 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp2926742vqu; Wed, 27 Sep 2023 15:06:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHN+47d6c/OasVHh2R2uCuxnqRzIhAf65EqeVkDhOdKQ74tawkm+/zx9/Qewd6iJFBHzTiy X-Received: by 2002:a05:6871:689:b0:1b0:408a:1d14 with SMTP id l9-20020a056871068900b001b0408a1d14mr3827380oao.44.1695852413267; Wed, 27 Sep 2023 15:06:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695852413; cv=none; d=google.com; s=arc-20160816; b=hoO0Jm1jER7nwxWjtEg6S/Zd0SLX1N282fTnLe7z2TyA8or2iB4ijGCDCusROF22ay MMuRX2MKITLb8Lfy+HEQE5mY/MeRkmAEk20mb5YB8IOf7KfCukUzbQCWMP0z/1ugrXPg 3A5LSZNpHpBzb6dy8javcSNRarYgFFIZNsDoFQE0vCdyXAcJCJ5B7RcID5YSsXo/Iopw j50CTv5ezyp/fXASqH2ZXn3BYhL11R5UOLbzkiml/Dv7GLZgDC+Nln4R7NewG2ptjNjC 3+6b5uTWQTQfEPKEx66bEC4EOHHVGu3rbImCbd8YJXj0jHwYBYK0PqsXVosvbZ3QvmKx QsOw== 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.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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id m19-20020a637113000000b00584e731e7fbsi4870399pgc.280.2023.09.27.15.06.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 15:06:53 -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=f8G63bW0; 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 8C77282224FB; Wed, 27 Sep 2023 13:21:19 -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 S229796AbjI0UVO (ORCPT + 20 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 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 (snail.vger.email [0.0.0.0]); Wed, 27 Sep 2023 13:21:19 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778230139784651484 X-GMAIL-MSGID: 1778230139784651484 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>; + }; + };