Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp3440923rdb; Thu, 16 Nov 2023 09:29:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IHhrQg2X5QuwVHMbDphAb1BuWBz3FgtHo4W7VSstPKA/9IjT675IsB9Z8/AB4DX4fIpJZca X-Received: by 2002:a05:6a20:54a4:b0:187:fe09:272a with SMTP id i36-20020a056a2054a400b00187fe09272amr154064pzk.49.1700155756314; Thu, 16 Nov 2023 09:29:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700155756; cv=none; d=google.com; s=arc-20160816; b=0Qs2u+lLS+KyHa2T9A6n/YwtwJje2yhHg0Nx3bMVIR6frBlxpUmkDr0LqEwzlgvmWg q3veW5+SZMaxQoDFAbXxBmsrq4T+71+vMtbfgc2CYGgp0JI+mheapAGpYKjHhPzzXfp9 jyg4/C1VsirjvH4wsg60+BNGZf2yNqCEU+Cwy5ayTn7BecARX5yAJ/tofbiPyRABogpy 59ZnrzPeoEq54yZ2RUYnrLZwGXOCPmp3PlMFqNFu9wokQOAFpGCjV/GIwNDBKm8H2XP2 2NLBFKZcoxH4hWBD55LaxmQBHPgp9BFNr9Ri6aC3zW7V2A5Gm7o5CwEw64O0uFNJPrb0 d37Q== 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 Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id g129-20020a636b87000000b005ab45ee3e7esi12428682pgc.299.2023.11.16.09.29.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 09:29:16 -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 BE30E81D7A6D; Thu, 16 Nov 2023 09:29:14 -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 S1345295AbjKPR3L (ORCPT + 99 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 Content-Transfer-Encoding: 8bit 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:15 -0800 (PST) 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>; + }; + }; -- 2.43.0.rc0.421.g78406f8d94-goog