Received: by 2002:ab2:f03:0:b0:1ef:ffd0:ce49 with SMTP id i3csp25481lqf; Tue, 26 Mar 2024 13:07:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXXcom6NMyrvSXpIbKPqbiGEKdzer76VGzouiqtbSXDt9n1610eGn8t3cjrvyFhdtXOkr0qAClYIOW/X9ipBuSIH+T2Tn5dwkUDVbM46g== X-Google-Smtp-Source: AGHT+IE1EurRO2qX57m642p+MofA+KyWbU5aNE8Fk25ohfk5Mcu4H7VoyhSkoX2TTn/2iEC20WUS X-Received: by 2002:ac8:7c41:0:b0:431:32e0:1723 with SMTP id o1-20020ac87c41000000b0043132e01723mr11766202qtv.67.1711483640231; Tue, 26 Mar 2024 13:07:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711483640; cv=pass; d=google.com; s=arc-20160816; b=ewiwC8qPf7C4zVaoRPwZB79miFZwnSdYA7u+de8NXHcXnLxbcXT0KHEL213Kt/rrdG Cbv141I6IFCeCCL3xNpEWvsN267NmZs2AMTjRtQ2ktsCTvresWToKWJQ3PULaWIAg0ls kx5x0n3Zbpkkm9yIepjGjtO9W1Mj6br6qM4bnJdEbsaCXxH1+dDggrTkxSk3TibecTxo YzN4elhH3sjG7zIRbyfiZx3PrKK+NuUGwZ1x+piDlzHtDkf4+ExIDckhlRjuReacZ5go 5C4du0e5tjTGfSG3STojAjpBU3By+cTmCHuhRR/sqR2mzKT6OTErP48knQsTb+30DUi2 GSQg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=t8EEc3adyFE7Wxfe+nLm4ZchWJV+nLrr+8hBvhQE2L0=; fh=Hl9PoZ0kIS1b0T8KaQrg+NNhygiUEFR03dPIqId3LDI=; b=e1rKO3FDwsjrl4JxFQu/lP5M2XY5Czq6P2zf/m6kOg0/dZupQQCmS3vrvuIXnh+P3P 44al4lpfKte3/ZSp+a7D1KpXZVpsIc1FzFrLB2XzCv/oMx3BdBFefvdRbYMCdgdQxN0K aj+EzpGvhLpI6igyPj4mkE3LRiDkNESO3GbG6RIizQn6bEYvTXY3ntJc0UV6KojHQNTz 2Hzo+KaY2W+XPd02iFBgXQgbN/bfmgCBt1bMAAEiRnqorMSrs3eGM1OvZtj9RmR4DRLi P0bWyY/ucyHuJVGXuzfYQTILH1rHu/dpi7Z1hs1LRbZmQC7QOf8nhi4yEjNZufzXeIpZ 9saw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=P+L2nwDA; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-119859-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119859-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id fz10-20020a05622a5a8a00b0042f4db1ba40si8643863qtb.608.2024.03.26.13.07.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 13:07:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-119859-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=P+L2nwDA; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-119859-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119859-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 5F0B31C65D56 for ; Tue, 26 Mar 2024 20:07:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D00D913D510; Tue, 26 Mar 2024 20:06:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="P+L2nwDA" Received: from mail-il1-f174.google.com (mail-il1-f174.google.com [209.85.166.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 06E6313D296 for ; Tue, 26 Mar 2024 20:06:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711483616; cv=none; b=e9++jJx5x46YQS6D1fKhW+kVupz7wHYkqzorG09qDa77ip6rhh2YsCqvTK4uh6MuY+9QB7vKKsS9ztrcAV5pJJ0kIos464nPaIzpYLNEYK0RkS2EHLOFBfA6vuq3KdYhYWy+81r8ZTPHZ7HRy0/mq/rEun60lH+qFXTjXhExsog= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711483616; c=relaxed/simple; bh=FGyi8jCeLG9+F63Cjvg4FXEcck4eJUhApsEhbStA0C0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=aUSuzUTkNNLZRPqHCE1L5FkjqkCJN12XJJbHbqQEkR6EOiAO5YaaJm2wO2kNmp465rW79FNA3/0do+QCrLW6RU9xxTsKMfZbHk9hwQ5Dn+me6zjql1RxzMZ7GmfCmfUkyJEU/ZvWUQh13mkyrEgB1rA72zhwq2SdZ2OIH7lRMUU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=P+L2nwDA; arc=none smtp.client-ip=209.85.166.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-il1-f174.google.com with SMTP id e9e14a558f8ab-366a4bcb2a8so27881485ab.3 for ; Tue, 26 Mar 2024 13:06:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1711483614; x=1712088414; 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=t8EEc3adyFE7Wxfe+nLm4ZchWJV+nLrr+8hBvhQE2L0=; b=P+L2nwDAgA1uo63C8/iMbXAfcV8u74pVGz6ZS5mxOp9GyD51+aUYJIGAPg1s9anKde Iusq7lJSTmqtCj+yDDiFmdzurI4Cr0Bmj37DBLxWVS5Vs78UdG9gYwFw/z9lhGpVC0Kt yswFmNcVIwiBuW9NUDecA3e5sTgMCRndr8Vzk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711483614; x=1712088414; 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=t8EEc3adyFE7Wxfe+nLm4ZchWJV+nLrr+8hBvhQE2L0=; b=MrXrDASVAdkgrEJUTRcMuuFiijEfqHjnDc8jXoh8YzYGziFqvZZd4XAj33ZrKLynmX MBO9LN1m71aDm1L12LNnk4xlILPMeXohHw1x3XkKpBSuX8REEkp0nCddwlQHA34CzD84 AFvEZw3LDUDXlKoBfjt1BZGnMxNfBkgtTCaSRrfdiflg7SDtG6Nj95xm0oiT/naxi7xO 4Bmv+R6MoUJCRpSQM+cvxui+QaPW97uFF6LV73LHqJUYQITXZxk4HUFhjdCIvtZYBWro C5I2p6qTOS01jfe1aM0Gkko/GFfZ43UsIvKQStxtrysqcwc39QUodGAvNC+4cqLJ4vhP Mbzw== X-Forwarded-Encrypted: i=1; AJvYcCXwBadjWlKulhS9Abt+bALj7I0CrOm8oFauWvIp8PQsIv2mFkXj6Wlm1/FyaQE66hQS5MayJqYf5POxpLhHwJegmflaf5PHcKOk0ofb X-Gm-Message-State: AOJu0YxqMHQNGja/Odbi7+IUcZp5hgFoIrR3c9rGrEcy/yyI+IL13uZb miS1TDiEkGujJ7nRGDcpzgOKdVk0qI4MAp3WBpiTHWIDSCVkFXOx0p8o8qPcsg== X-Received: by 2002:a05:6e02:1a8f:b0:368:8d20:b18a with SMTP id k15-20020a056e021a8f00b003688d20b18amr10568423ilv.29.1711483613849; Tue, 26 Mar 2024 13:06:53 -0700 (PDT) Received: from chromium.org (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id f4-20020a92cb44000000b0036896f76593sm1002343ilq.85.2024.03.26.13.06.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 13:06:53 -0700 (PDT) From: Simon Glass To: devicetree@vger.kernel.org Cc: Michael Walle , U-Boot Mailing List , Miquel Raynal , Tom Rini , Rob Herring , linux-mtd@lists.infradead.org, Simon Glass , Conor Dooley , Krzysztof Kozlowski , =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , Richard Weinberger , Vignesh Raghavendra , linux-kernel@vger.kernel.org Subject: [PATCH v10 2/2] dt-bindings: mtd: fixed-partition: Add binman compatibles Date: Tue, 26 Mar 2024 14:06:45 -0600 Message-Id: <20240326200645.1182803-2-sjg@chromium.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240326200645.1182803-1-sjg@chromium.org> References: <20240326200645.1182803-1-sjg@chromium.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add two compatibles 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. Note also that, after discussion on v6, we decided to use the same 'fixed-partition' schema for the binman features, so this version adds a new 'binman.yaml' file providing the new compatibles to the existing partition.yaml binding. Signed-off-by: Simon Glass --- Changes in v10: - Drop binman,entry since it is likely not necessary - Put the description back Changes in v8: - Switch the patch ordering so the partition change comes first Changes in v7: - Adjust MAINTAINERS entry - Put compatible strings into the 'fixed-partition' binding 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 .../bindings/mtd/partitions/binman.yaml | 53 +++++++++++++++++++ .../bindings/mtd/partitions/partition.yaml | 21 ++++++++ MAINTAINERS | 5 ++ 3 files changed, 79 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/partitions/binman.yaml diff --git a/Documentation/devicetree/bindings/mtd/partitions/binman.yaml b/Documentation/devicetree/bindings/mtd/partitions/binman.yaml new file mode 100644 index 000000000000..bb4b08546184 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/partitions/binman.yaml @@ -0,0 +1,53 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mtd/partitions/binman.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Binman entries + +description: | + This corresponds to a binman 'entry'. It is a single partition which holds + data of a defined type. + + Binman uses the type to indicate what data file / type to place in the + partition. There are quite a number of binman-specific entry types, such as + section, fill and files, to be added later. + +maintainers: + - Simon Glass + +allOf: + - $ref: /schemas/mtd/partitions/partition.yaml# + +properties: + compatible: + enum: + - u-boot # u-boot.bin from U-Boot project + - tfa-bl31 # bl31.bin or bl31.elf from TF-A project + +required: + - compatible + +unevaluatedProperties: false + +examples: + - | + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@100000 { + compatible = "u-boot"; + reg = <0x100000 0xf00000>; + align-size = <0x1000>; + align-end = <0x10000>; + }; + + partition@200000 { + compatible = "tfa-bl31"; + reg = <0x200000 0x100000>; + align = <0x4000>; + }; + }; diff --git a/Documentation/devicetree/bindings/mtd/partitions/partition.yaml b/Documentation/devicetree/bindings/mtd/partitions/partition.yaml index 656ca3db1762..bb3c326c6588 100644 --- a/Documentation/devicetree/bindings/mtd/partitions/partition.yaml +++ b/Documentation/devicetree/bindings/mtd/partitions/partition.yaml @@ -118,3 +118,24 @@ then: # This is a generic file other binding inherit from and extend additionalProperties: true + +examples: + - | + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@100000 { + compatible = "u-boot"; + reg = <0x100000 0xf00000>; + align-size = <0x1000>; + align-end = <0x10000>; + }; + + partition@200000 { + compatible = "tfa-bl31"; + reg = <0x200000 0x100000>; + align = <0x4000>; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index a848d6ca67e4..1eeb6ebde21f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3639,6 +3639,11 @@ F: Documentation/filesystems/bfs.rst F: fs/bfs/ F: include/uapi/linux/bfs_fs.h +BINMAN +M: Simon Glass +S: Supported +F: Documentation/devicetree/bindings/mtd/partitions/binman* + BITMAP API M: Yury Norov R: Rasmus Villemoes -- 2.34.1