From patchwork Fri Jan 15 15:39:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 1427129 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=2GNgE7tn; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=qbSvhrRl; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DHQNr59Q3z9sWm for ; Sat, 16 Jan 2021 02:40:12 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=0Jk9BGWeUP4NJZ96zW6JqbFWY+M1zIMd8puBgEPGpJ4=; b=2GNgE7tniqaEUSDIfHkPAl+NG /zxA8pkYEsoz7KzpbIPTRNpNij/zzxAqqL/I45M+gxlutC3eJpDH1bNqrkKf99ulSTdPEWH+/xDxh IXVrCrWXBCV5gyMRSydp3HtBqbyt5nCTcX5mpGdXEp4GSJXF9SAAfkUIxyhNmssrzamRGS1+YVzcv pekmmDbmGFvY8AZaLTcsi1YxH10MVGKpxmyU6GeXFBDNwsblPRSBZe1Aggbij9NNN0SFpIqSzNEJC Q/bTclIR8OtGn9KAfpCHJSnOjhGE3ybDczqMxCp/paVe/SCKiKJVeVpDMZdfrBiPckXcDKyOId9Pe V690EAfpg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l0RCB-0005XG-G1; Fri, 15 Jan 2021 15:39:27 +0000 Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l0RC7-0005Ut-FD for linux-mtd@lists.infradead.org; Fri, 15 Jan 2021 15:39:24 +0000 Received: by mail-lf1-x129.google.com with SMTP id o19so13760380lfo.1 for ; Fri, 15 Jan 2021 07:39:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=7im1QXvoU9pnwhNU516Up7aImtiZpLV/k+KA0KsbcAE=; b=qbSvhrRlFFWplAJZXDw8nkCVTFgkNpvW+CyQHlqom83lOcBI6lP1ZUAnLA1RwqKiY4 qots7YAfLkvtJkf9rHTne2G2A+dNqeyMUowh3mIVK7zIGxIOoSz59mfTRn37SiX0z1li acO8itK70B+ig9uU27eL9844ScY9NF/rj6Ps6C3YzjwYWjCYPy2CfoEZiQN6/HXomN5j 7fWKASDPDdbLGFc7lEpd2Dc4rK/zUId06Zlqw3MtFOgn9ebyse4YDzOTmT0er5p3br2B quiDC3Zk20fvOrP62KKt9hYM63iuyyOgWDn8Rzk1AQkyxhYUPeF7p6yixV0DSENtNqIs k4sQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7im1QXvoU9pnwhNU516Up7aImtiZpLV/k+KA0KsbcAE=; b=hvty2Lt6BUiC8Wm/Zj9hlKq07+moa5tZFI6RPq6Iwxs7u1b1fYee+VGhacAWragJKt updTSLLtII/Ac4PawqS/GHFk6Uvvo7y0ooV5TbzchuJHMZyE1do+Kg3a03YhuzZgoDaf yewXNsgAOYpJWIzayWZTP4jBs1kT8W82JN+igt41f3qwZPwv4HW1t08vyk5XekrjNDpu MfsLqEvEuM2gCwhPOyD1c6acLNIIhO4w9+sOfUKmO3PtK2Y90YWFMrjBg8Lzqtc3q9FE cybjX14AEKy0Y4lAFF+I385871s+jE7JxL7VeuoPruzlIQkCqAW4JllSviZPYxV++5v+ tIYw== X-Gm-Message-State: AOAM532ycv46FBGQgT0D2dwCkYpOmjAG5xs6OQEE0+aow1qM+go1qHXj F0jpi++6iPjRe3S4ta0U5Aw= X-Google-Smtp-Source: ABdhPJzGH6aFky/BcP4EsxiG2NISHHzisLOpSgA1WLSUZmC8Spq6xttOYv7Ularabh36qAmG5jLxXw== X-Received: by 2002:a19:9d3:: with SMTP id 202mr5640760lfj.388.1610725160638; Fri, 15 Jan 2021 07:39:20 -0800 (PST) Received: from localhost.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id j2sm931567lfe.134.2021.01.15.07.39.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Jan 2021 07:39:20 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Rob Herring Subject: [PATCH 2/3] dt-bindings: mtd: add binding from BCM4908 partitions Date: Fri, 15 Jan 2021 16:39:00 +0100 Message-Id: <20210115153901.31052-2-zajec5@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210115153901.31052-1-zajec5@gmail.com> References: <20210115153901.31052-1-zajec5@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210115_103923_656923_4ADEEC07 X-CRM114-Status: GOOD ( 15.28 ) X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:129 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [zajec5[at]gmail.com] 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [zajec5[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , devicetree@vger.kernel.org, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, Boris Brezillon Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Rafał Miłecki BCM4908 uses fixed partitions layout but function of some partitions may vary. Some devices use multiple firmware partitions and those should be marked to let system discover their purpose. Signed-off-by: Rafał Miłecki --- .../partitions/brcm,bcm4908-partitions.yaml | 68 +++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/partitions/brcm,bcm4908-partitions.yaml diff --git a/Documentation/devicetree/bindings/mtd/partitions/brcm,bcm4908-partitions.yaml b/Documentation/devicetree/bindings/mtd/partitions/brcm,bcm4908-partitions.yaml new file mode 100644 index 000000000000..4090b61a3da7 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/partitions/brcm,bcm4908-partitions.yaml @@ -0,0 +1,68 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mtd/partitions/brcm,bcm4908-partitions.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom BCM4908 partitioning + +description: | + Broadcom BCM4908 CFE bootloader supports two firmware partitions. One is used + for regular booting, the other is treated as fallback. + + This binding allows defining all fixed partitions and marking those containing + firmware. System can use that information e.g. for booting or flashing + purposes. + +maintainers: + - Rafał Miłecki + +properties: + compatible: + const: brcm,bcm4908-partitions + + "#address-cells": true + + "#size-cells": true + +patternProperties: + "@[0-9a-f]+$": + allOf: + - $ref: "partition.yaml#" + - properties: + compatible: + const: brcm,bcm4908-firmware + +required: + - "#address-cells" + - "#size-cells" + +additionalProperties: false + +examples: + - | + partitions { + compatible = "brcm,bcm4908-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "cferom"; + reg = <0x0 0x100000>; + }; + + partition@100000 { + compatible = "brcm,bcm4908-firmware"; + reg = <0x100000 0xf00000>; + }; + + partition@1000000 { + compatible = "brcm,bcm4908-firmware"; + reg = <0x1000000 0xf00000>; + }; + + partition@1f00000 { + label = "calibration"; + reg = <0x1f00000 0x100000>; + }; + };