From patchwork Tue Aug 28 11:19:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonas Gorski X-Patchwork-Id: 962855 X-Patchwork-Delegate: boris.brezillon@free-electrons.com 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="b7FEKBY9"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="qEAopsPE"; 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 4205tm2pGmz9rvt for ; Tue, 28 Aug 2018 21:21:52 +1000 (AEST) 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=VniNpTLc3pZyH2BUikNLySR7kfKcVogQ3S9+cGiX8ZQ=; b=b7FEKBY9Pfch+SzfRMQ2crcnSf 61nZwYs7ku42BtaQTWcH7642fCAm/L5/HK/M8ULJaWIMALo/uSVoWs3Z/7sYqNTC1aE+jVkv3HmCz 1z/Lzx7LpKV/I7Ny9zbg56yjx9mFTJpmJHIy0bFwflp2gjPjHAF6bKS1TwU5KO6gksVJXycXZy3E6 OMLdvpGi1Ygtfer5DLaV+VFv0pNDvUGguvOq7GZO6Lxcl1pCzN22AQ9+R1G1fT+D5ETUeUU6T2Kbh bFMJv7cB1OoeN0N8SVIU4V2S1xPlPyVOzBXH3+U/L/gmTYjJtI9VQMlM43VHKWsnPXUx3TW/657yb Fyur42mg==; 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 1fuc45-0005hN-FI; Tue, 28 Aug 2018 11:21:41 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fuc2f-00045a-Cn for linux-mtd@lists.infradead.org; Tue, 28 Aug 2018 11:20:16 +0000 Received: by mail-wr1-x441.google.com with SMTP id z96-v6so1209398wrb.8 for ; Tue, 28 Aug 2018 04:20:07 -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=Sp7tdRbq7xHl3fmuesQSXf3FVzLU0TAectp9Ieuy97o=; b=qEAopsPEORNrH7fhdzgZwVqAnYrMfER3h8IHk7I5uqMVJDzVtg2NVqyNJq0sI/O7gD b7pTNeuILuKDfaTn1na0i+vMrQuowsST1WtyxRtooIB4aWyTXMPNiVfwKR4VTJhKNEte QOrqkSCd+ZkNleY+nte6sghTd/x4LZc3RwD61X16Ncuc5UoFeljL6ucM51x+2nVJ+WSM XBouShUjNqTe6YsRNv/Qoye5dfI/OVMoNSNk6AxrV8qMp4I6PVjtfM+UrpS6vp9Iewys /uCzOhBdBix7tVM5XJTmGbtHYb1dgB/AUnaND7pp2bvKok0WpElNaOhwu7m8pUHo+5ew Fx5w== 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=Sp7tdRbq7xHl3fmuesQSXf3FVzLU0TAectp9Ieuy97o=; b=mjZUohDXldDxsP75o9PHDymKo7FuLBZQrLnLv2mbxLhm2qyplreNQuljrvVz1Ai6eQ J/5YbLn7Z6Wbjktikz7MXIVsrhYrKagbtR4yrE9MwFyReIQACLGsf8UOZj8io0hgdcXe z7BFtybtRXhnHVXy1iWrMl6BA/qYvwuaMmNjOujt5z0g7HYXzH/6OyEes3UoRJb88oq9 S0TSnaGM6QKrLmcOqDpQBAYjyOkIHNL2FHfEkdbesDIC7R4Sa/8zG3Gde6yMGepXgjQK zcXb7/wLGlxE3KDDWjZIDeV0uTzZ0+FCO096G96NXcSRLnXDAwfx2NdZM3QjRSAyT6vi M3QQ== X-Gm-Message-State: APzg51DGi0jzU3kAQmaaRme9vPKloHf1X3GVhJBKKOs38Y/ErYFQsM6w XrDcUywKrYF6WwSCh0I+RNkCnb/O X-Google-Smtp-Source: ANB0VdZ2AuZKwYhavww/9Wv5azz8WNvxQZowriSxD1UMU7WiQUR5Zi7MPLxx1sKNuhliE9bGCN6Y8Q== X-Received: by 2002:a5d:6347:: with SMTP id b7-v6mr781517wrw.163.1535455205753; Tue, 28 Aug 2018 04:20:05 -0700 (PDT) Received: from localhost.localdomain ([2001:470:9e39::64]) by smtp.gmail.com with ESMTPSA id e141-v6sm1520282wmd.32.2018.08.28.04.20.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Aug 2018 04:20:05 -0700 (PDT) From: Jonas Gorski To: linux-mtd@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH 4/5] dt-bindings: mtd: describe BCM963XX ImageTag format and usage Date: Tue, 28 Aug 2018 13:19:43 +0200 Message-Id: <20180828111944.5956-5-jonas.gorski@gmail.com> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20180828111944.5956-1-jonas.gorski@gmail.com> References: <20180828111944.5956-1-jonas.gorski@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180828_042013_451159_EF31FE06 X-CRM114-Status: GOOD ( 17.28 ) X-Spam-Score: -0.1 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:441 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_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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 , Marek Vasut , Richard Weinberger , Boris Brezillon , Rob Herring , 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. Signed-off-by: Jonas Gorski --- .../mtd/partitions/brcm,bcm963xx-imagetag.txt | 78 ++++++++++++++++++++++ 1 file changed, 78 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..f4a444d69d9a --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/partitions/brcm,bcm963xx-imagetag.txt @@ -0,0 +1,78 @@ +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" + +Examples: + +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>; + }; + }; +}; + + +flash@1e000000 { + compatible = "cfi-flash"; + reg = <0x1e000000 0x2000000>; + bank-width = <2>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + /* + * Some devices use a flash chip with 64k erase blocks, some + * use one with 128k erase blocks, so the vendor decided to + * always use 128k as the firmware offset. + */ + + cfe@0 { + reg = <0x0 0x20000>; + read-only; + }; + + firmware@20000 { + reg = <0x20000 0x7c0000>; + compatible = "brcm,bcm963xx-imagetag"; + }; + + nvram@7e0000 { + reg = <0x7e0000 0x20000>; + }; + }; +};