From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 67B16C4338F for ; Wed, 28 Jul 2021 23:38:37 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F21936101B for ; Wed, 28 Jul 2021 23:38:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org F21936101B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4GZqqH52C5z3bYY for ; Thu, 29 Jul 2021 09:38:35 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=I1042sBW; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::633; helo=mail-pl1-x633.google.com; envelope-from=rentao.bupt@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=I1042sBW; dkim-atps=neutral Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4GZqpn4FwJz309T; Thu, 29 Jul 2021 09:38:09 +1000 (AEST) Received: by mail-pl1-x633.google.com with SMTP id n10so4694088plf.4; Wed, 28 Jul 2021 16:38:09 -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=TM1oWFJiQ55sCFQ7wpGHeNKBl5+PgVPl+xUxtGHeuDA=; b=I1042sBWKb+QVDCGOEqGBiFnCM3hVK/1s4yYAMaLBBxqae36UPOw+4Jb07vYE6R2dY uSDKJLjYAryvvfkAFzo2/Ah9h1X/VkKULWXFySS/2ZWA8xvU+SyNMZsnArfcHvjxhnDq V3J+sj4WAS7Gab7twrSEfc6cYAmZExoGPldDWMygvSF/Z704yUK8HHsirr3gUkVeST+N KBEltaVshKEf8x/hXIAYvrXFc6senSs5HB+42Hl6jaWckU9rZDD6mlNYh0Yp1vj5p5iW vwweQD9S25RgBxLStHcxDvcyeQZEVqE31Z0LZbR7pqEtLQrPY6tXrIpIsuv1LSMnJso9 ALUw== 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=TM1oWFJiQ55sCFQ7wpGHeNKBl5+PgVPl+xUxtGHeuDA=; b=Wq1LxBLVj7cL3NeC1z4sMifqe6sdja+6kYpgxHNLcdowNU9nfnDb5NU67Yfjh8IElu K4NTxZimH/3SE6vIcJrTSNvazFMQKQAahgP7mrrSJQW1iCdnEHfOOwiJsknzO5d9lr6R taxcg7+nQp+ZP+CHvTCD3tvKk8+068Owb+RobF1obt+Kkry5eDue8GqNDRfh/0ZVe6P5 zmgfQeZPi9x7j8WANqOuM6knBtXi9lYhGoYMCavJRasfpfnWPnaQusL0+Uq5cyurdGQ+ gOoHv36bXOYpIsNEto1+b0qiG9sWDoMuwJVE89M8HxRmNFCnUoy8/feKcEKAKvoZrPsU rXPw== X-Gm-Message-State: AOAM533fRs6faKbyxtl/k1YzOijvYxrk1o+mBGoJcnjSkzQ/davo/gnb 4yJETewschb1kNb1CF0woU8= X-Google-Smtp-Source: ABdhPJyUkypAjII61agd3+GcR+1EIgkC9yRJLVJ4SSY6U5CP784rDEdPD6XPamhPhWKFzVf/N20poQ== X-Received: by 2002:a17:90a:ce07:: with SMTP id f7mr2139372pju.81.1627515486795; Wed, 28 Jul 2021 16:38:06 -0700 (PDT) Received: from taoren-ubuntu-R90MNF91.thefacebook.com (c-73-252-146-110.hsd1.ca.comcast.net. [73.252.146.110]) by smtp.gmail.com with ESMTPSA id k37sm1038671pgm.84.2021.07.28.16.38.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Jul 2021 16:38:06 -0700 (PDT) From: rentao.bupt@gmail.com To: Rob Herring , Joel Stanley , Andrew Jeffery , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, taoren@fb.com Subject: [PATCH 1/6] ARM: dts: Add Facebook BMC 128MB flash layout Date: Wed, 28 Jul 2021 16:37:50 -0700 Message-Id: <20210728233755.17963-2-rentao.bupt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210728233755.17963-1-rentao.bupt@gmail.com> References: <20210728233755.17963-1-rentao.bupt@gmail.com> X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tao Ren Errors-To: openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Sender: "openbmc" From: Tao Ren This is the layout used by Facebook BMC systems. It describes the fixed flash layout of a 128MB mtd device. Signed-off-by: Tao Ren --- .../dts/facebook-bmc-flash-layout-128.dtsi | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 arch/arm/boot/dts/facebook-bmc-flash-layout-128.dtsi diff --git a/arch/arm/boot/dts/facebook-bmc-flash-layout-128.dtsi b/arch/arm/boot/dts/facebook-bmc-flash-layout-128.dtsi new file mode 100644 index 000000000000..7f3652dea550 --- /dev/null +++ b/arch/arm/boot/dts/facebook-bmc-flash-layout-128.dtsi @@ -0,0 +1,60 @@ +// SPDX-License-Identifier: GPL-2.0+ +// Copyright (c) 2020 Facebook Inc. + +partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + /* + * u-boot partition: 896KB. + */ + u-boot@0 { + reg = <0x0 0xe0000>; + label = "u-boot"; + }; + + /* + * u-boot environment variables: 64KB. + */ + u-boot-env@e0000 { + reg = <0xe0000 0x10000>; + label = "env"; + }; + + /* + * image metadata partition (64KB), used by Facebook internal + * tools. + */ + image-meta@f0000 { + reg = <0xf0000 0x10000>; + label = "meta"; + }; + + /* + * FIT image: 119 MB. + */ + fit@100000 { + reg = <0x100000 0x7700000>; + label = "fit"; + }; + + /* + * "data0" partition (8MB) is used by Facebook BMC platforms as + * persistent data store. + */ + data0@7800000 { + reg = <0x7800000 0x800000>; + 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 0x8000000>; + label = "flash0"; + }; +}; -- 2.17.1