Received: by 2002:ab2:5c0e:0:b0:1ef:a325:1205 with SMTP id i14csp118366lqk; Wed, 13 Mar 2024 19:18:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVBZSKXw6/UxHFNE54GNSsHpYCzoivoxB12uoaY78GuYPL9Uv3Fn27J9DCEmA5kvU3Y8oW6Oa8aJLzQLF/3N/LFvQ0v0FWkkqHzrG2BiQ== X-Google-Smtp-Source: AGHT+IFb8bGJcr+DxRH2ln2epf3OXLZacS88Jw+gaIOlJwK8rNIexAv7dZKiuHXAKI7Kg0jLJB9E X-Received: by 2002:a05:6402:4494:b0:568:3362:cccf with SMTP id er20-20020a056402449400b005683362cccfmr191256edb.7.1710382698935; Wed, 13 Mar 2024 19:18:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710382698; cv=pass; d=google.com; s=arc-20160816; b=VUENSzyMOK9zGqOUUsXGqN6ArxpHS6epK9rKE6fAGB4tR/X/KV0xUl3rcK85V4Mdwo 4A12GvByuBjZMjU980akzJDfv7n7a5JcOEHu6wk0PQv/ksDcGpyv7Ayax03GUeLhlJcL kt2Aq4MsBgGk1lrCksORHBhZtm+rXdKQddkGbS3m1Fc6Y8vX7vq8UiQxVL5eMrjewCl5 0yIlWnX0G+KQ9IuzcCnqdvaCtTkp1sKH4J+L8v+CJfqu5LJTArvisFSBFsijj4ETwFum 4n02Qkc+8OrAprba4Li+OzGSBjBqqihfH2QQsiyyt+8u7hUAGaE65E87vM6m1h2fEVCP w5qQ== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=bw/+Z7r/txSTQl3/VBt2dWxefijuFQx/eWY4cCx1Vxc=; fh=+tyxyUKFvnqdQI0ad1F1nvWABhUmWHXuea0UhJk94Ks=; b=AvR/onQUN6LMRzX0+xYYt84IVTIT3ZLQ8SaadIeitUy1IeJkl3+Og3SqGLtuAB50FA GTXjn9miFM6QndOAQ9C52lkAXkFZEZO1NEO5a8nBIGBuOmlBtCOyBieOCiwybjFg9Z45 bbNIRl7ex4Qm/FyDKbpSMneyv1/MgbH0B/pFjdWdnPajcpAEA0wXtp9TFIcLCgkfl03B XWEg+F3wT9X2sbHaN0yLDbuaGz5X1T/BnO5Nil+HF+FE+siTcFX5R1SNnmooHFyBzePp g/hv/Vvnk2Q/kuT9EhIjJF7P7ssf+Aae9NJGwpEqUR2tywoCdlkfcyhiDMJHA2vkRrnG Wm6g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=SYt5dr7Y; 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-102711-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102711-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ev10-20020a056402540a00b00567d425a99esi244566edb.673.2024.03.13.19.18.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 19:18:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-102711-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=SYt5dr7Y; 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-102711-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102711-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 7D2ED1F232E5 for ; Thu, 14 Mar 2024 02:18:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 897EA4A1B; Thu, 14 Mar 2024 02:18:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="SYt5dr7Y" Received: from mail-pg1-f171.google.com (mail-pg1-f171.google.com [209.85.215.171]) (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 3EF511FB4 for ; Thu, 14 Mar 2024 02:18:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710382690; cv=none; b=arOT2BY5+fDqg/Zq4EwA+N+x5rmxRBZir3FyCXxhYxkGugRRvGXQ1xbSxjXIwNPijpQRKTApwNdaK45rd6KBWpVN6K/EOxTHHplJQ19ZbOuaVBSHJuWaV7BsL/KCmvEqnWQ/84mMp8mh7PBOymI13qcGiUT9Yaq9CFMVMGh2I8s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710382690; c=relaxed/simple; bh=FFT+kshlP8IvZkSDJMUj66oZlx/qU05+9qLGQo4+SB8=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=VenS3O8qtYt54z2+g5W30Cgp+m+zNBxZyS+tYHKBmywxRlAbjJPK7Z9DT/bVjfGbq/O2z3wn+AL+X4jmSlbfQ0WtDSjqSuPkYysqDXQSjesSRNnYtiGdwx8HitBjRdJt59Y0GlZJGJvn/UF6EKmoWJ1LZz9UAmNcKGqmKOFTdis= 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=SYt5dr7Y; arc=none smtp.client-ip=209.85.215.171 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-pg1-f171.google.com with SMTP id 41be03b00d2f7-5ce2aada130so403489a12.1 for ; Wed, 13 Mar 2024 19:18:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1710382688; x=1710987488; 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=bw/+Z7r/txSTQl3/VBt2dWxefijuFQx/eWY4cCx1Vxc=; b=SYt5dr7YU0VcWwf9ggzT+1KHRVbaS4WeI4Pl0SheyBk0FtAVvg6TmlWpG6Q3kLInpj sUteD750Hvx3ziXK3+S6HmXTe8129s4IZguBKUNdEGPkIssFyUNUVHwZkZJJsHaRSlG8 IUG8chQ2ny/T5W1wg1vuGpubg7wxCZqZ/EjU0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710382688; x=1710987488; 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=bw/+Z7r/txSTQl3/VBt2dWxefijuFQx/eWY4cCx1Vxc=; b=Y/Ga00UFs6jnfiQDVPVN4ZLrVws2H4TtEz9HOa/aIx4C9glhgNwFPfl5EIBCRUjnSS L2/1kviUoioEG5ELhpJRpAE3fHNhud0jStYgRosKhGxoaphaivzohtlmSlqEDGBqFH+K bNSVliZWazZOVToxkSOGCz9mFiwimXhlSA2mZ0nsmJvA/FL4T+kjTZrLNjdZki23kzaD 2ro1+w7y73fZoop76+1zZ8l9BZTAmky1p0qLsQrkawx7tAnbInNo+mWm360Vylikjf79 +64Qfk2pgNDi4FLZWdn/gQclnSB8FEcLL2InrTjaGj+dyHQ/j3wBUyNhzv6O9U6KpS5v KMPQ== X-Forwarded-Encrypted: i=1; AJvYcCWuAOYGEB0EI7+oYa1irNxpHS/V47fR6siZ3RCAqPUJQ9/KVfwpsLp/LLiICH6IqFL3vm7KiX7QIO2ZXLpyoBKvlWNtTlBPC+dSNMMB X-Gm-Message-State: AOJu0YxCOAuHJajia+E9iKnuU5lCH/3FRM48IlYgve9Xpcbw96AtIVJX mDqBnRvUnGJVyhrkaqR9Q/BFkh6hyR+GgAvoutHnygoT1Nr5s1QXKuIgd7L9Bg== X-Received: by 2002:a17:90a:d18e:b0:29c:289b:1eb3 with SMTP id fu14-20020a17090ad18e00b0029c289b1eb3mr452033pjb.6.1710382688593; Wed, 13 Mar 2024 19:18:08 -0700 (PDT) Received: from chromium.org ([118.149.82.233]) by smtp.gmail.com with ESMTPSA id o1-20020a17090aac0100b0029bc25f7181sm1993937pjq.54.2024.03.13.19.18.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 19:18:08 -0700 (PDT) From: Simon Glass To: devicetree@vger.kernel.org Cc: Miquel Raynal , Michael Walle , Rob Herring , linux-mtd@lists.infradead.org, Simon Glass , Conor Dooley , Krzysztof Kozlowski , Richard Weinberger , Rob Herring , Vignesh Raghavendra , linux-kernel@vger.kernel.org Subject: [PATCH v7 1/2] dt-bindings: mtd: fixed-partition: Add binman compatibles Date: Thu, 14 Mar 2024 15:17:53 +1300 Message-Id: <20240314021754.84557-1-sjg@chromium.org> X-Mailer: git-send-email 2.34.1 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 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 +++++++++++++++++++ MAINTAINERS | 5 ++ 2 files changed, 54 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/MAINTAINERS b/MAINTAINERS index 1aabf1c15bb3..66f5e09e2d70 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3576,6 +3576,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.34.1