Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3330217rdh; Thu, 28 Sep 2023 08:38:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHDmKHjDtSmkgdoWzATe7nnq1MNUNFnjBw1cPplMRpyOv8y/8IzplZdlFKTEiZJCbz4Gtuo X-Received: by 2002:a05:6830:15:b0:6b2:9bdb:a84a with SMTP id c21-20020a056830001500b006b29bdba84amr1651841otp.32.1695915539504; Thu, 28 Sep 2023 08:38:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695915539; cv=none; d=google.com; s=arc-20160816; b=Vya0+0KUs2NMM7cYOLtZywqwu7YxzV1ekrzRVu8bIkG41e/MQdXygjp9R2mzESf0U+ Otrerhen5i2fM1I8YPjRG72dOV/8JTfrU2CUZAjBSXMVXkFI3cYjQmIGgLGcOqwfGW3r e0ggzcrwceOFDkKvCBA8g/CshhCAFcpVIbCbVQSI/S/SYcophq9Tnft/30cwCG0fah64 N3rRrc711fg49/9PR4+8d6zrnPwCIYDpZ393ICUAWWGKjmIbyLpF1et1S6MtKH3wI5Lo tPb4rqNnVfGmb3cWtI78Ht/lkd1QXsgpSok6+d6MSowXEgNP/kCJTimcIiXsMYTOdJYP hlEQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=IIjs+rwErzRuI8OpZgfCnKlE1NGemok/NR/4pjhGmqU=; fh=kINqmPZpvP8PQ+TKNJVeF/MUBhzh40DYTsdZg8LHqCc=; b=0Kgk+RUaw1vI5HJPmqWWJhfov7O+g+uA5y/hUyCf58Kn3gsC05X5ODuyq4kWmXCjHn m1Em8Aws6BzSFmNTV4+zxO2BUoW0BfaU3HEyJXjEXNZtQit4+iRYDFyC+puxzI5JG2Wh 10HGFByO2cGTap/a8UPtARjdZnniGDv1SjycuYIONIkly0nno4s5FRNHFKYCjG+KWOit Tx83n1VZPQ77gLkUCJVNE6xBIhESB35rSWChK5KZGeQj6G8hrVUwKMZaRJ70qLKmWGAm 9jO2dXdvqGc7RPtbuTczLmkiWmF5Ucxe40YqcJjZITsxK3nI/NkrRlV9MyYlNdPeDK10 sF5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="Y/iVW9V7"; 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 Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id r9-20020a634409000000b005694492c259si18648627pga.282.2023.09.28.08.38.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 08:38:59 -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="Y/iVW9V7"; 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 4E3AF82224FC; Wed, 27 Sep 2023 13:21:17 -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 S229671AbjI0UVL (ORCPT + 99 others); Wed, 27 Sep 2023 16:21:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbjI0UVK (ORCPT ); Wed, 27 Sep 2023 16:21:10 -0400 Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9615A10E for ; Wed, 27 Sep 2023 13:21:08 -0700 (PDT) Received: by mail-io1-xd2e.google.com with SMTP id ca18e2360f4ac-79fe6da0049so127134339f.1 for ; Wed, 27 Sep 2023 13:21:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1695846068; x=1696450868; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=IIjs+rwErzRuI8OpZgfCnKlE1NGemok/NR/4pjhGmqU=; b=Y/iVW9V7jGTlHL2EpgLQKoiRlIlWiatJ87pARD7bNAKZCshdOcRNxJtxnIkwJfkjXF Pb+mOknWCvtMBEnboet0aVlw6uC58WRRvOfKH9FtzNgEff9TvWBkA7hHWQ0BLL33pVkV P7BBAjX7QDEsds7p3Y5DCjS2IA4F0el5oXjhU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695846068; x=1696450868; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=IIjs+rwErzRuI8OpZgfCnKlE1NGemok/NR/4pjhGmqU=; b=XHnhCitIduwhdFW32Eo83NF8gp0nYjVMMKw67spEvG42gAtOYiMbLuESbEhkuN+lCL RKRyKRIqS8dVV9HB6QUpvb781QwSO7p7TBhrLbSYnTMJE48J8plVj/9ggSSV8xd7VWFb TCD9qyQC3gW/QNLe0OpY8QyPV+Tie4gEdnd31vkbaimdk+uWbImNSaZnNBni4LSew3d1 PjkQQEl/dMWX39sPM7Mz9tvF04CIjJ7YpKRSpJaLgaeaXVEGjO8W0CXnbxHbYjJt7Sgw kq4kD1QRqssvmu32G6l+GqFR7TTsLOsyCBh1G8vdrptnhY31wViYkQrjsY8Dw7KkzPTg Irkw== X-Gm-Message-State: AOJu0YyZjwPyTshSVz99S29EudeLfcr+1jnWOvHUARSSuuUXDkiagXUQ c7zQ5TeFSXqqFvzdARXWlU6Lrg== X-Received: by 2002:a5e:dd02:0:b0:79a:b526:2f1c with SMTP id t2-20020a5edd02000000b0079ab5262f1cmr3230494iop.21.1695846067982; Wed, 27 Sep 2023 13:21:07 -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.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 13:21:07 -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 , Dhruva Gole , Krzysztof Kozlowski , Miquel Raynal , Pratyush Yadav , =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , Richard Weinberger , Rob Herring , Vignesh Raghavendra , linux-kernel@vger.kernel.org Subject: [PATCH 1/3] dt-bindings: mtd: fixed-partitions: Add binman compatible Date: Wed, 27 Sep 2023 14:20:51 -0600 Message-ID: <20230927202057.3676497-1-sjg@chromium.org> X-Mailer: git-send-email 2.42.0.515.g380fc7ccd1-goog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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, 27 Sep 2023 13:21:17 -0700 (PDT) Add a compatible string for binman, so we can extend fixed-partitions in various ways. Signed-off-by: Simon Glass --- .../bindings/mtd/partitions/binman.yaml | 49 +++++++++++++++++++ .../mtd/partitions/fixed-partitions.yaml | 6 +++ .../bindings/mtd/partitions/partitions.yaml | 1 + MAINTAINERS | 5 ++ 4 files changed, 61 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..34fd10c1a318 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/partitions/binman.yaml @@ -0,0 +1,49 @@ +# 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.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Binman firmware layout + +maintainers: + - Simon Glass + +select: false + +description: | + The binman node provides a layout for firmware, used when packaging firmware + from multiple projects. It is based on fixed-partitions, with some + extensions. + + Documentation for Binman is available at: + + https://u-boot.readthedocs.io/en/latest/develop/package/binman.html + + with the current image-description format at: + + https://u-boot.readthedocs.io/en/latest/develop/package/binman.html#image-description-format + +allOf: + - $ref: /schemas/mtd/partitions/fixed-partitions.yaml# + +properties: + compatible: + const: binman + +additionalProperties: false + +examples: + - | + partitions { + compatible = "binman", "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition-u-boot@100000 { + label = "u-boot"; + reg = <0x100000 0xf00000>; + }; + }; diff --git a/Documentation/devicetree/bindings/mtd/partitions/fixed-partitions.yaml b/Documentation/devicetree/bindings/mtd/partitions/fixed-partitions.yaml index 331e564f29dc..1c04bc2b95af 100644 --- a/Documentation/devicetree/bindings/mtd/partitions/fixed-partitions.yaml +++ b/Documentation/devicetree/bindings/mtd/partitions/fixed-partitions.yaml @@ -14,6 +14,9 @@ description: | The partition table should be a node named "partitions". Partitions are then defined as subnodes. + The Binman tool provides some enhanced features, so provides a compatible + string to indicate that these are permitted. + maintainers: - Rafał Miłecki @@ -24,6 +27,9 @@ properties: - items: - const: sercomm,sc-partitions - const: fixed-partitions + - items: + - const: binman + - const: fixed-partitions "#address-cells": true diff --git a/Documentation/devicetree/bindings/mtd/partitions/partitions.yaml b/Documentation/devicetree/bindings/mtd/partitions/partitions.yaml index 1dda2c80747b..849fd15d085c 100644 --- a/Documentation/devicetree/bindings/mtd/partitions/partitions.yaml +++ b/Documentation/devicetree/bindings/mtd/partitions/partitions.yaml @@ -15,6 +15,7 @@ maintainers: oneOf: - $ref: arm,arm-firmware-suite.yaml + - $ref: binman.yaml - $ref: brcm,bcm4908-partitions.yaml - $ref: brcm,bcm947xx-cfe-partitions.yaml - $ref: fixed-partitions.yaml diff --git a/MAINTAINERS b/MAINTAINERS index 5f18c6ba3c3c..367c843ec348 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3517,6 +3517,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: Andy Shevchenko -- 2.42.0.515.g380fc7ccd1-goog