Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1310692lqt; Tue, 19 Mar 2024 22:25:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXM5OoQgOrp/rm9MmpAzSCvAzlJrvDNJgEmk4h8JcXw7bWvcsDAVMc0vGAeFF//7Xv7oJL3Q2yG3W4fZ5/f/XRS1IyDrT46PLOI15jBkw== X-Google-Smtp-Source: AGHT+IFHeC1CK0+sPpvmaDbL0hOR/HPAH1TI95nqTe/A2tlbJZsA9TEx0OxTw6dv04C6jswBTJzj X-Received: by 2002:a05:6871:2b23:b0:221:84f8:24ef with SMTP id dr35-20020a0568712b2300b0022184f824efmr19350497oac.4.1710912340068; Tue, 19 Mar 2024 22:25:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710912340; cv=pass; d=google.com; s=arc-20160816; b=Yb/X2eDNOthyvSIHJG7Fji4wpAmiGlceRfKtGJVkCxwN9lyaSCc11y6dliAwELem2A yfs/wAuz3XHaKRSRVCdQ7f1ennGSvtPWM/dfchNoSNvJ9MaU7oat3Ck1Fh3qmqpNrhQc eTBwOPGTlQl6rgUfbwirnHCNmCBZv34maFQ4HUdx2Ehe9XrySXIGCkC9R1wb1PWli+xJ r5rLuNpk7yw7Wr9/H9GLHoO+mHbSaTCOEsi8IjHMPyh0luCoLvb8fpFMQTt2ulq3k9eB eK909DY8yqpSbsjypSpwPthkzMhLt81p45qpekQjkLl7xPfzHZSqvQtB9ZDQtYGySTAj WKSA== 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=QcuWLpfpwEQlI3/YVSySFA4Fv1Tx8PQOGU1A54pTOVc=; fh=o7Wu9PIvngwOKX+Jy/errZyr1Q8KS0EV2yD5V+XdI88=; b=JeK2z25/Ic2Sr4HH0xE7NlEDjQ84Mt3Nc5d8MU4U0WZOrICNXDFKj5qTKUGcfKrVW2 UIAqxf96BqmRVaON0+CYhPYez2PNs5RlipGkg0vm1IgCLOspAOR0IXjfXuhSxduWJZdr DtdJ9G9hudbom/D0+d9n7Bxv9M9P3PGjysNETWHuYLrtjkmKgOfuFhhmYT2tmCaKqxaE MczAgS0gpBA9X7P1tPjhJ8w+QEWVAr1SiE1E17PqQYNmGFXx2BYCTsYcL0l5LSf1T9Z9 Hizpmhq+vcgwqo4OeKO38LGkdrpiTbaExxEuPz+Gkx+Li+00xMbYXB4OT3yVdyKsWXyb nKCQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=VxivA3og; 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-108446-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108446-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 6-20020a630c46000000b005dcbba892cdsi11507507pgm.327.2024.03.19.22.25.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 22:25:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-108446-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=VxivA3og; 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-108446-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108446-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 0C4CAB222BA for ; Wed, 20 Mar 2024 05:25:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 816CD182A1; Wed, 20 Mar 2024 05:25:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="VxivA3og" Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) (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 03E3417BD9 for ; Wed, 20 Mar 2024 05:25:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710912308; cv=none; b=UCqmIfl0edhee8Cklw2O8tvqP690WQkdeTlSfcw6z4MhBhxqx4xDGN/iIRyaW1UwgVaUxZ6sKO43yfwXU4DrnhGegXe4yagUYKs+tGsZuHIhCaPz6swvg1GTpMfPOd4ZdcqJjH94zSFx+B8O9RpPeZUMxfd/s8jJezXXYyedKOU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710912308; c=relaxed/simple; bh=L+fDUJJrUavzHVpxVuN9H89qVhOCPqZqCUY/1bq4E+8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=YJfS8dB5SzKr9SIaa7W9UAI3PzC38x1Zcy8I0aN5rSRyfELMdQgId4Rdj0lsbMlZedPpUio0Ll6Eell7wEwDEzLWnZ7zxp/QFciG7bPg87XJ/aeXj6+PfuU0qMeYqpu51Ju2oDa3ssPbN2acBCyWr79vkrJxen6SJl+fTgOkmdk= 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=VxivA3og; arc=none smtp.client-ip=209.85.210.180 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-pf1-f180.google.com with SMTP id d2e1a72fcca58-6e6aa5c5a6fso6024490b3a.0 for ; Tue, 19 Mar 2024 22:25:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1710912306; x=1711517106; 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=QcuWLpfpwEQlI3/YVSySFA4Fv1Tx8PQOGU1A54pTOVc=; b=VxivA3ogBvCaVUQ/ZjeRvGHrRaO8LXeX+229pvcVwsBo7LznnvR2tqk50LCE5AQcNX 66L4hf4wWYWPTsj3EQq3TpGzzOzvlvradCgXAf8xLPc8hbYzhyBFNWe6NJ4UAIl9yGby jDEjS1dvsyYflVoRZwDxOVE5jdJSMNXBFiCEA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710912306; x=1711517106; 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=QcuWLpfpwEQlI3/YVSySFA4Fv1Tx8PQOGU1A54pTOVc=; b=tr8hU0gZD/XQwZcqjw8Ytupu4WEW6MVtyArpWA7UhxeIbb7SAYMsP0ZQw9G7FpH6kv ncFhAiIrrapvzG8+421mWtfXSh3CVcv5uLiHidWinoFWogVedkS2D2Q/CHaiyW8NsRn4 zeW8I4baWkng2DqL2HM0INx+65ECOrP6rq7GM7sONv/d14ps/7mL0EBttJ8dY9vX/bYL CM2QL2hlqLGZn6qUT7x2dJlQUQ6yo7F65DMas3Kdnmd6P1vXV0DIHSnsEOmcFkqfA8qf 8qyExjCMVn2O5A5csafxVQ7NOrR0LOuuJoA2cTx5TVJnFhgQoBwhxhTrcN1GNEc5qMfT QTxA== X-Forwarded-Encrypted: i=1; AJvYcCUG1r8ZZ8bxXnEVDanNzcebjjURuYq1LU/3Jk1E9BEiTrRB+iFlXE/laYkMWZrun0gp4JkTnxBTvdS320h24G7pAa121+Qc8FdFZl4I X-Gm-Message-State: AOJu0Yxyc4RGv6sv5QBGqNrlgjn2ce7IVXNSmIBkBaFI95SJuV4kZDVp NRTsxo8oPxaCdyth/Sibq+52tp0m39Uz2FdNYXLa9J4nnXE9WW0OFfO7T9fkow== X-Received: by 2002:a05:6a21:999a:b0:1a3:55d2:1483 with SMTP id ve26-20020a056a21999a00b001a355d21483mr10628115pzb.5.1710912306340; Tue, 19 Mar 2024 22:25:06 -0700 (PDT) Received: from chromium.org ([202.144.206.254]) by smtp.gmail.com with ESMTPSA id sb14-20020a17090b50ce00b0029ffba4bf0esm572355pjb.19.2024.03.19.22.25.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 22:25:05 -0700 (PDT) From: Simon Glass To: devicetree@vger.kernel.org Cc: linux-mtd@lists.infradead.org, Rob Herring , Michael Walle , Miquel Raynal , 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 v9 2/2] dt-bindings: mtd: fixed-partition: Add binman compatibles Date: Wed, 20 Mar 2024 18:24:49 +1300 Message-Id: <20240320052449.175786-2-sjg@chromium.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240320052449.175786-1-sjg@chromium.org> References: <20240320052449.175786-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 --- (no changes since v8) 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 | 49 +++++++++++++++++++ .../bindings/mtd/partitions/partition.yaml | 21 ++++++++ MAINTAINERS | 5 ++ 3 files changed, 75 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..83417ad5cee9 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/partitions/binman.yaml @@ -0,0 +1,49 @@ +# 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: | + TBD + +maintainers: + - Simon Glass + +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 + +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 39c7d7672783..3df12df06116 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 b43102ca365d..5b08ee363140 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3610,6 +3610,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