From patchwork Fri Nov 9 00:50:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tao Ren X-Patchwork-Id: 10675185 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D1FFD1057 for ; Fri, 9 Nov 2018 00:51:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C0BA42E4F4 for ; Fri, 9 Nov 2018 00:51:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B1E5F2E953; Fri, 9 Nov 2018 00:51:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6EC7D2E4F4 for ; Fri, 9 Nov 2018 00:51:08 +0000 (UTC) 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References: List-Owner; bh=9KreTd3wF2t+kqF2CQhaA8ulUSyWMeKVAbhF6NpM2Ns=; b=Hh8pJ7c7ny/l3E upH9feUhKzRqcN1Dcj+EpFXHOJKX+S5BlQB+pzvWT/AkUL7O6DB42v2+w1HQvPYw+0144qOdtRlHD Hk3bOIlcNSGu6RWbZ4hPAYMiNn9zyxG/nq2mTIRhJSmb7ixn8pnxNrfPdmDFvB8BsRv/bMOWPHyBY gwH+MSaX40RoenHz4ijKoLRJRbuSScyHgNmPrmq5S6lmwr6PvkbZVwLwBS3WPPW8heMGB2EuKP4+Q UfBf+VtvASejgo9VHLoXf8iOR380PRDcBHm62wpPDm9un63KyAw/Ow3kdDKqXWIUYHLjIVXewvaPI /DZLR1M0+TGcb/X5uDEQ==; 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 1gKv0r-0002MJ-OC; Fri, 09 Nov 2018 00:51:05 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gKv0q-0002Lq-40 for linux-arm-kernel@bombadil.infradead.org; Fri, 09 Nov 2018 00:51:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Type:MIME-Version:Message-ID: Date:Subject:CC:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ljTeKdEeCx3bbJTRDWGLsNnzI10JrvLf5mAQgwqaUuo=; b=PDkuDfESniBG+aoLOCxIV5a4bB c9gicNLQd/Ap9Vro1tbAGC5wdmBWuDUl3F7j1kZ75p2qku6EqZEkCkiMKPZ9AfJMZxEzYDjSH+ggj 7L6hvghsu6bdRBEgtFbNHNVvDEVnAF+96zQbcPkYsSDHEDRFCcbzF3CxqQ89rtmLwuTou8Sh7eVjg /EVx4lfKGWWvYNTeUqOmDbUr0fViFSO27ODcq3LMnuRkkhA9lFrWXohnnVGAWxeY9ERqMPQw0vjiz 6eqT/bTIjEhF9KfF/IEqjkv6UcBNcrw+iJzD+a73iOReSTYQZrJP0uCNYVj3FUN29AQeNJVlJ2xsz 0VnUYIKw==; Received: from mx0b-00082601.pphosted.com ([67.231.153.30] helo=mx0a-00082601.pphosted.com) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gKv0m-00080O-L8 for linux-arm-kernel@lists.infradead.org; Fri, 09 Nov 2018 00:51:02 +0000 Received: from pps.filterd (m0089730.ppops.net [127.0.0.1]) by m0089730.ppops.net (8.16.0.22/8.16.0.22) with SMTP id wA90mk8I025329 for ; Thu, 8 Nov 2018 16:50:45 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=facebook; bh=ljTeKdEeCx3bbJTRDWGLsNnzI10JrvLf5mAQgwqaUuo=; b=lBVBgiYRHnjr/gYT/dmpgCDvNYlCjs+DTOU3yigEkH74D1ol9PR7ltGPBRcNUKc8Gfc1 CmTmA1Qf4EO4fjQph6XKwmJjRI5/YkNh2LSLH24/ONbtfutL3CR3RepiNAqc5bu4n8tA YUhfsTEgxUQjQPoHythphWxkMER8aFp6T/E= Received: from mail.thefacebook.com ([199.201.64.23]) by m0089730.ppops.net with ESMTP id 2nmvsa8kh1-8 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Thu, 08 Nov 2018 16:50:44 -0800 Received: from mx-out.facebook.com (2620:10d:c081:10::13) by mail.thefacebook.com (2620:10d:c081:35::125) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.1.1531.3; Thu, 8 Nov 2018 16:50:38 -0800 Received: by devvm24792.prn1.facebook.com (Postfix, from userid 150176) id 200F67D68273; Thu, 8 Nov 2018 16:50:37 -0800 (PST) Smtp-Origin-Hostprefix: devvm From: Tao Ren Smtp-Origin-Hostname: devvm24792.prn1.facebook.com To: Joel Stanley , Andrew Jeffery , , , Smtp-Origin-Cluster: prn1c35 Subject: [PATCH v3 1/2] ARM: dts: Add Facebook BMC flash layout Date: Thu, 8 Nov 2018 16:50:34 -0800 Message-ID: <20181109005034.210138-1-taoren@fb.com> X-Mailer: git-send-email 2.17.1 X-FB-Internal: Safe MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-11-08_13:, , signatures=0 X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181108_195100_765738_5F4E0B9E X-CRM114-Status: GOOD ( 17.99 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tao Ren Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This is the layout used by Facebook BMC systems. It describes the fixed flash layout of a 32MB mtd device. Signed-off-by: Tao Ren --- Changes in v3: - adding comments explaining why "data0" and "flash0" partitions are needed. Changes in v2: - adding facebook copyright. .../boot/dts/facebook-bmc-flash-layout.dtsi | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 arch/arm/boot/dts/facebook-bmc-flash-layout.dtsi diff --git a/arch/arm/boot/dts/facebook-bmc-flash-layout.dtsi b/arch/arm/boot/dts/facebook-bmc-flash-layout.dtsi new file mode 100644 index 000000000000..87bb8b576250 --- /dev/null +++ b/arch/arm/boot/dts/facebook-bmc-flash-layout.dtsi @@ -0,0 +1,42 @@ +// SPDX-License-Identifier: GPL-2.0+ +// Copyright (c) 2018 Facebook Inc. + +partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + u-boot@0 { + reg = <0x0 0x60000>; + label = "u-boot"; + }; + + u-boot-env@60000 { + reg = <0x60000 0x20000>; + label = "env"; + }; + + fit@80000 { + reg = <0x80000 0x1b80000>; + label = "fit"; + }; + + /* + * "data0" partition is used by several Facebook BMC platforms + * as persistent data store. + */ + data0@1c00000 { + reg = <0x1c00000 0x400000>; + label = "data0"; + }; + + /* + * Although the master partition can be created by enabling + * MTD_PARTITIONED_MASTER option, below "flash0" partition is + * explicitly created to avoid breaking legacy applications. + */ + flash0@0 { + reg = <0x0 0x2000000>; + label = "flash0"; + }; +};