From patchwork Thu Nov 16 17:28:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 165903 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp3369743vqg; Thu, 16 Nov 2023 09:29:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IFl4WYbojxZhuwVqI8ywdpZXkw99ETkEMraSQZGYIQ8rO+OjimGjNBz6rEOyaV3UXn/IsrQ X-Received: by 2002:a17:90b:4b8d:b0:280:215e:7ae2 with SMTP id lr13-20020a17090b4b8d00b00280215e7ae2mr17550994pjb.2.1700155759725; Thu, 16 Nov 2023 09:29:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700155759; cv=none; d=google.com; s=arc-20160816; b=dskgdTYdueyyQ1KuE9rJ7TFTyPzWSgOM95mU3DyVQF+9BfQoPVA7Oi0miyvqpizrhO 2BuJ9YZHjlyOzBFDPZLPLWiz4Wh25Q89I8q+L5oogm3lmu5wR70Jh+GUkB9k3bbESQ1E N8OkXtlyyvePSW1u1R8FPbz9tdcY0aHheGLd7GwfjLTvn/M5SOFV5lvBrJS4vxs8G5jH 7YXT0UIr7Y8v02O3kehU0p1wWKDGb5rnmfnPAUmGGM95+WWN9kqKQhcxWIK0+ys6YQ1B Kt97xHiGSON86ZbcJ2bJi5OegyZa9CztsCbBqoOj27zA3Nxb/VPVDSBmD1nA19krYsBb mFfw== 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=5SiGKNWTogg5s8I4hI4hsWN1in2XeMZfNUWjSe8vt1c=; fh=d3lsfQ0a7J9xedzK6BJn7RtDOG1vmUF6URDbb6+k7p8=; b=NrDgAhkGn1DmLZKfqG8YJ/HY+AKwbcyRn/gg2VLDCz7bnKTVzzd5IgMgv4sgPYweKA JpznWipPfVxIZKXE1W//JQz53KDVAW/bYRuW0ToB79IC+0E00nbfnlN3ZHjZNZXgWxPD nKySjMj/2AHDwvjuglCYDWjwGsblq6LObWaFrgw0ZMup7yvojSZcJ1DVZcJPrnQI0xk7 DbdBs6uI0ykynZsarpMR0o3AsMIY2Y5l4TaaOu1ssRizwI0Xiv3zuIAzBz7Sgl47fy3d /iN8FON+PdcOB292P77e2z4CWH3Ln4wmQfDJ9YmWIsFyQlrDlZeDnzGEYFXBHA08WTyE 1ZSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=jIFRM3qw; 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 lp17-20020a17090b4a9100b00280479459f7si2615796pjb.50.2023.11.16.09.29.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 09:29:19 -0800 (PST) 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=jIFRM3qw; 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 3B8B181D7A73; Thu, 16 Nov 2023 09:29:17 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345303AbjKPR3L (ORCPT + 30 others); Thu, 16 Nov 2023 12:29:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229468AbjKPR3J (ORCPT ); Thu, 16 Nov 2023 12:29:09 -0500 Received: from mail-il1-x130.google.com (mail-il1-x130.google.com [IPv6:2607:f8b0:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF4AA8F for ; Thu, 16 Nov 2023 09:29:05 -0800 (PST) Received: by mail-il1-x130.google.com with SMTP id e9e14a558f8ab-3594cb642beso3998125ab.3 for ; Thu, 16 Nov 2023 09:29:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1700155745; x=1700760545; 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=5SiGKNWTogg5s8I4hI4hsWN1in2XeMZfNUWjSe8vt1c=; b=jIFRM3qwDoyoo3N1LoVtfOKJsz1vDTCy5a0/CPK80hdJT93q1xBuB58DRx9yogNppD RSqSYolEiEBeQ/VjDBsJ6LmiFULs46xJ+zA2Npw0ml7TlgzY5v2EoJ2DLypiEKiYTjix h2tSPtylu5/AejIFQIygOAA8UR/zhYjFoTiCo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700155745; x=1700760545; 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=5SiGKNWTogg5s8I4hI4hsWN1in2XeMZfNUWjSe8vt1c=; b=AtFB6Lv0PJ9u6l3EX0fp8vHNJQ+GTDJYII1JbYuEXgyfJfzrJXCKsCaseVtdFAWiRv y6EM+HjHefkv6sfvLuaRZVzxN6sNL/ATWGYKuwtz3OzhKuuT0HqTP+BoUzN6DZNbLfK4 GPVfInmLH2Hy1l8RindXo2K9TwwYg9qPDwS8Ay7DA3Y7I50AAmGOE+T1O0jsT4wCEMns psxMG7YHGnSvtJjU5ZXisA3ZFkEjaSDDvzjlELNW3mEfuJj5xEtwb7wfcLLMSkND4WLA 4LPPpa+RVGxjysTjpx2/lQBzVTzrYBf/5Fp+NFsA4tl64KybWST+LwW5SHnaQk4Gt0zU AE6Q== X-Gm-Message-State: AOJu0YwWQJpl5s00gvZ6ITzH+r1C5x2X6A8OoxGHipRdu6YL9i5MpMbZ p2SDp3f50uKPvjFrpsru+uJSug== X-Received: by 2002:a05:6e02:1c07:b0:359:5b5c:9ce4 with SMTP id l7-20020a056e021c0700b003595b5c9ce4mr22860439ilh.19.1700155745274; Thu, 16 Nov 2023 09:29:05 -0800 (PST) Received: from sjg1.lan (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id o8-20020a056e02092800b0035ab8cc4a4bsm1914348ilt.17.2023.11.16.09.29.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 09:29:05 -0800 (PST) From: Simon Glass To: devicetree@vger.kernel.org Cc: Miquel Raynal , linux-mtd@lists.infradead.org, Tom Rini , Rob Herring , Michael Walle , U-Boot Mailing List , 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, 16 Nov 2023 10:28:51 -0700 Message-ID: <20231116172859.393744-2-sjg@chromium.org> X-Mailer: git-send-email 2.43.0.rc0.421.g78406f8d94-goog In-Reply-To: <20231116172859.393744-1-sjg@chromium.org> References: <20231116172859.393744-1-sjg@chromium.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.2 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,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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]); Thu, 16 Nov 2023 09:29:17 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782742526269071050 X-GMAIL-MSGID: 1782742526269071050 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>; + }; + };