From patchwork Thu Mar 28 14:19:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonas Gorski X-Patchwork-Id: 1068251 X-Patchwork-Delegate: richard@nod.at Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.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; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="IQ1xeLpH"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Gvs+l9wn"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44VRpJ4Vtjz9sRR for ; Fri, 29 Mar 2019 01:19:52 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=3IPU0ECFOqUnNiWf+u+KOaeubY9oSRf6PNQdV4H24Xo=; b=IQ1xeLpHK3IuU/Rt1junJ4FSd8 giAYxDINejaD1VodOvTCBpUZjwvvmS6811iWdEg07Mukh8XP9lXRccD9InE9dpvzegccDyLDas/dD rSycwAelPKbgBWBah9NRUoPtx/xmFba7qvEw92J+0+gKnglNP8X8SJ+YSxsYJFsLUaMMwnDZzwRiV VnhfH+2QtUkBZdmYhX6R6JDBifPUq0Dkpy10bq7ASmLyRssTWF+8k6lXKLBwOKBg/dJTrNvBHrQ5v Z0T1n8yCShNQreuK92PdeY1oVGDqHcepuaB4e3h6QdSnB/Mb/17zd1k5+MRdl5HhemjgH8IM55LBz oiUO0ccg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h9Vsd-0002UZ-PY; Thu, 28 Mar 2019 14:19:43 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h9VsE-0001uN-SG for linux-mtd@lists.infradead.org; Thu, 28 Mar 2019 14:19:22 +0000 Received: by mail-wm1-x344.google.com with SMTP id q16so3771067wmj.3 for ; Thu, 28 Mar 2019 07:19:18 -0700 (PDT) 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; bh=I4NBnrPcBLSmBLDLCMVl3UePqPRGaV+p6WB2tvNcQqI=; b=Gvs+l9wnTKifah4+ommEMdCF3VyDMDjGXizrqqKCOYZK/7aEwDCAXuUu4qPgMCdAZE hpaOAf4eYDuFj9bfpAR2rHQy5NACX+B8QHwfWqLVVZ++hcl/l8WKsQW4tzP7cb5OYrMx jzkqiSXDXLQWEdYetcyTmd7c0Md4usPnC/WLFS/Y2Qyel+uRhM+Lgs31gkseKsMnL8WX mu0ysgSNuzu6O6FAgzwn0ZDAqzrkIGD+V/xQcBRBR4rUp7s3486FhHxg0ufbG57U2h1r hWwZLycAgb/c4+YALbuH37rMlWIXcDj0TDm7SrGUUQCSwWcYCRCpy7wNpjWGuTg9ksJ+ bpnA== 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; bh=I4NBnrPcBLSmBLDLCMVl3UePqPRGaV+p6WB2tvNcQqI=; b=sqHgZH3FDcEsw2Oif2r2OOaPkitblrMwT6knZ8CdP0+kGnvxVXNsM5HgfsfX1Gb4iT jgtAJQ/glOyNH8a8OcTRKRlCbbN10CjbL7D+tp9e0SlwcQ1ayDHnn6npuRRZIXvmWDNA rkAOKfSd++srgaoHLgjM9M4SloNiqroiDWuwIOtGLH2i5LrgRKRQexkfdFScvVenNDAV 3V3OOz/5fm784zf80bF/T8vDXB5y/tB96pL5UkhJFgWJrGk+uIyG1gTPrF0HuGV97QhM Z8lik58YTjRTYEMCC+loFWYcmth04/TE/kidy/506czKUztVeSbvT/+nccb1L5lyJ9fK dnkg== X-Gm-Message-State: APjAAAV8mT42479lJNKQrh2ediBn2nUDIM+WpjMq5LGimg7Qymkuhnyt uPnjibtCiqKdUuuL8Nno1rY= X-Google-Smtp-Source: APXvYqxj4yMMTwGZN3jZrKa2nblQ2yJaLcEzHuCyH5j8jBTWePtOYkl+bCKoeKihHUVa8ZZqop8AiA== X-Received: by 2002:a1c:7dcc:: with SMTP id y195mr156864wmc.13.1553782756991; Thu, 28 Mar 2019 07:19:16 -0700 (PDT) Received: from localhost.localdomain ([2001:470:9e39::64]) by smtp.gmail.com with ESMTPSA id t2sm51802879wra.9.2019.03.28.07.19.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Mar 2019 07:19:16 -0700 (PDT) From: Jonas Gorski To: devicetree@vger.kernel.org, linux-mtd@lists.infradead.org Subject: [PATCH V2 4/5] dt-bindings: mtd: describe BCM963XX ImageTag format and usage Date: Thu, 28 Mar 2019 15:19:09 +0100 Message-Id: <20190328141910.5723-5-jonas.gorski@gmail.com> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20190328141910.5723-1-jonas.gorski@gmail.com> References: <20190328141910.5723-1-jonas.gorski@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190328_071919_289876_79D9B7AF X-CRM114-Status: GOOD ( 16.94 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 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:344 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (jonas.gorski[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -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_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Florian Fainelli , Boris Brezillon , Richard Weinberger , Marek Vasut , Rob Herring , bcm-kernel-feedback-list@broadcom.com, Brian Norris , David Woodhouse MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Describe how to use the BCM963XX ImageTag format in a mixed flash layout environment. Reviewed-by: Rob Herring Signed-off-by: Jonas Gorski Reviewed-by: Florian Fainelli --- .../mtd/partitions/brcm,bcm963xx-imagetag.txt | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/partitions/brcm,bcm963xx-imagetag.txt diff --git a/Documentation/devicetree/bindings/mtd/partitions/brcm,bcm963xx-imagetag.txt b/Documentation/devicetree/bindings/mtd/partitions/brcm,bcm963xx-imagetag.txt new file mode 100644 index 000000000000..f8b7418ed817 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/partitions/brcm,bcm963xx-imagetag.txt @@ -0,0 +1,45 @@ +Broadcom BCM963XX ImageTag Partition Container +============================================== + +Some Broadcom BCM63XX SoC based devices contain additional, non discoverable +partitions or non standard bootloader partition sizes. For these a mixed layout +needs to be used with an explicit firmware partition. + +The BCM963XX ImageTag is a simple firmware header describing the offsets and +sizes of the rootfs and kernel parts contained in the firmware. + +Required properties: +- compatible : must be "brcm,bcm963xx-imagetag" + +Example: + +flash@1e000000 { + compatible = "cfi-flash"; + reg = <0x1e000000 0x2000000>; + bank-width = <2>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + cfe@0 { + reg = <0x0 0x10000>; + read-only; + }; + + firmware@10000 { + reg = <0x10000 0x7d0000>; + compatible = "brcm,bcm963xx-imagetag"; + }; + + caldata@7e0000 { + reg = <0x7e0000 0x10000>; + read-only; + }; + + nvram@7f0000 { + reg = <0x7f0000 0x10000>; + }; + }; +};