From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.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 1C69C17BDA for ; Wed, 20 Mar 2024 05:25:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710912308; cv=none; b=AfQC0ftJotcTgtlJ+u4mkH3TxaGFXwZWf/jav8BCe7x9bIiPECsDZcopBQUixeWFpazJ0QI8ZZ64ms4/b0z7ocJhg2u5DdQX1xhx0XCiUQmgMovvEpGa80+BKoWz3bwuxukUgc4OFf4jmo+6qpGYUwY3quU1yMiXqV+at/mM3t8= 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.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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="VxivA3og" Received: by mail-pf1-f174.google.com with SMTP id d2e1a72fcca58-6e88e4c8500so110575b3a.2 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=T5Jmf2rslK/1UxoUM5Q6hhC/ny+jF4u7eETm9AYtDsbqsqu9ipvuBqyOmuvww4LYQc Nxq8qoaBe5xJTwKWrAdZyv9DIYwCunLoRYkU97+li65V2wt173EQNEZpleptqc2VvDO7 3FejPJAb3HTyDA3wDkiooZhIzQzu6GS7WTllkdQKNZn7gWnp9BxzOMNjvygVSrvHTZ1x gpY1O3Voog6au4gmtpnCcZEn3jn0ibiYctVVBWR7oVaqm5FI05FFcfmBCP6ljazb5us0 QLBJ9krmb72lVaYV3IlIEHLH/jQwHojFm1rc/G8cDgDogJxGyIkQl4CqgH1mt4nRxLic MFKA== X-Gm-Message-State: AOJu0Yxy9MDXFK7RyKsIxVgmFEOP7fCBpTSAD9mQpd0hL4Zc0rPJiPlA eGSv8ZPbcDgAbD/hidRYoRIzr85yHFVsTCQ2Yj7TAHUq54TLp+m09XBLhcOrf8O/jPio5bIio+k = X-Google-Smtp-Source: AGHT+IEExdv2ILwyCgyYcA4XcseoU8HlmCfQWxTr6g04DTIjaLHXQo6TTQWZ0bxCnwHWDSnJWZ6SoA== 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: devicetree@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