Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3988038pxf; Tue, 16 Mar 2021 02:57:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKH0GWOW+KfEeHoO7o/H2A8M1YU4+j/0b0VIhbQTsEpchbEzatIBjeWyuMh84kiX3CyrDx X-Received: by 2002:a17:907:16a8:: with SMTP id hc40mr27924648ejc.40.1615888658212; Tue, 16 Mar 2021 02:57:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615888658; cv=none; d=google.com; s=arc-20160816; b=SEPslUfcPruZR5f13XdVRZLKxKij+YSH1chnlEXgXiIVJ3f+p3pvo2f6IJD1EJeuvQ NsPEPxUBcDAXVQQT/BU3FpLWWCcf7lFQj/MQkTD+u0t7+9gOghWvPbDk7qf5ykdMiVRA NQ2mggSMfsPw4rh/HiyDwcf4DLHRKPLHula4bjENoUhRI26QwxGUpYxg5Evo9d5xV4X1 ectUjjoBkso4Ju6EpLT5vdUQ54wKoWrhNGTRHPTH8kxHEp2om3jiIloqYDAMSc6E5Izh RohfupKC7GdKnQgtF+/0EatQkyloRZrL0V2SMmEK30c9Pc7qw9xrk9BEwBY0KGSXherl vfkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=lRI5HWTXtCOoh+eRpWb7feHGH0hROLt3HmP4AOr0l3M=; b=YpyiYpNmSxoKRMzgS4J8wVVybeKcE5v9Ppv8Gm8SpRP9D3f0y+YIKMv3iU160ISL4u fL3HHPcIw9XGhXmfsn0d8ar6cm+dlWsg0bJWGzWdX9TPH3/3QVJ9Lk1t/s3RFdEVKFa4 KThKNbX2iPj7fe7+09fXhbMwezT9ORmTOJ3dJmDsGXBROcKxBLrriRegkPrwTE2+g2xL ze23Em6Bl40zIuMCbZzaPchiqcievoCHAarXhTLShKUnRRER49KrYn0+La44lBjg+9/l LUOn8WwsYbmGHh18DsYo2JMifQcpluBqcje/mqCT2RY++8f0aLukVr4DbCl0C0L+k37C o4Mg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s21si13050436ejq.101.2021.03.16.02.57.15; Tue, 16 Mar 2021 02:57:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236023AbhCPJW2 (ORCPT + 99 others); Tue, 16 Mar 2021 05:22:28 -0400 Received: from twspam01.aspeedtech.com ([211.20.114.71]:25824 "EHLO twspam01.aspeedtech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235977AbhCPJVz (ORCPT ); Tue, 16 Mar 2021 05:21:55 -0400 X-Greylist: delayed 1264 seconds by postgrey-1.27 at vger.kernel.org; Tue, 16 Mar 2021 05:21:55 EDT Received: from twspam01.aspeedtech.com (localhost [127.0.0.2] (may be forged)) by twspam01.aspeedtech.com with ESMTP id 12G8q8H0007629 for ; Tue, 16 Mar 2021 16:52:08 +0800 (GMT-8) (envelope-from troy_lee@aspeedtech.com) Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 12G8oqqZ007507; Tue, 16 Mar 2021 16:50:52 +0800 (GMT-8) (envelope-from troy_lee@aspeedtech.com) Received: from localhost.localdomain (192.168.100.253) by TWMBX02.aspeed.com (192.168.0.24) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 16 Mar 2021 16:59:37 +0800 From: Troy Lee To: , , Rob Herring , Joel Stanley , Andrew Jeffery , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM/ASPEED MACHINE SUPPORT" , "moderated list:ARM/ASPEED MACHINE SUPPORT" , open list CC: Subject: [PATCH v1] ARM: dts: Fix 64MiB OpenBMC flash layout and aspeed-ast2600-evb.dts Date: Tue, 16 Mar 2021 08:59:32 +0000 Message-ID: <20210316085932.2601-1-troy_lee@aspeedtech.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [192.168.100.253] X-ClientProxiedBy: TWMBX02.aspeed.com (192.168.0.24) To TWMBX02.aspeed.com (192.168.0.24) X-DNSRBL: X-MAIL: twspam01.aspeedtech.com 12G8oqqZ007507 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Aspeed AST2600 u-boot requires 600KiB+ flash space. Sharing the same openbmc-flash-layout-64.dtsi requires to resize the flash partition. The updated flash layout as follows: - u-boot: 896 KiB - u-boot-env: 128 KiB - kernel: 9MiB - rofs: 32 MiB - rwfs: 22 MiB Signed-off-by: Troy Lee --- arch/arm/boot/dts/aspeed-ast2600-evb.dts | 32 +------------------ .../arm/boot/dts/openbmc-flash-layout-64.dtsi | 18 +++++------ 2 files changed, 10 insertions(+), 40 deletions(-) diff --git a/arch/arm/boot/dts/aspeed-ast2600-evb.dts b/arch/arm/boot/dts/aspeed-ast2600-evb.dts index 89be13197780..2cfae9cfed3a 100644 --- a/arch/arm/boot/dts/aspeed-ast2600-evb.dts +++ b/arch/arm/boot/dts/aspeed-ast2600-evb.dts @@ -121,37 +121,7 @@ flash@0 { m25p,fast-read; label = "bmc"; spi-max-frequency = <50000000>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - u-boot@0 { - reg = <0x0 0xe0000>; // 896KB - label = "u-boot"; - }; - - u-boot-env@e0000 { - reg = <0xe0000 0x20000>; // 128KB - label = "u-boot-env"; - }; - - kernel@100000 { - reg = <0x100000 0x900000>; // 9MB - label = "kernel"; - }; - - rofs@a00000 { - reg = <0xa00000 0x2000000>; // 32MB - label = "rofs"; - }; - - rwfs@6000000 { - reg = <0x2a00000 0x1600000>; // 22MB - label = "rwfs"; - }; - }; +#include "openbmc-flash-layout-64.dtsi" }; }; diff --git a/arch/arm/boot/dts/openbmc-flash-layout-64.dtsi b/arch/arm/boot/dts/openbmc-flash-layout-64.dtsi index 91163867be34..31f59de5190b 100644 --- a/arch/arm/boot/dts/openbmc-flash-layout-64.dtsi +++ b/arch/arm/boot/dts/openbmc-flash-layout-64.dtsi @@ -9,27 +9,27 @@ partitions { #size-cells = <1>; u-boot@0 { - reg = <0x0 0x60000>; // 384KB + reg = <0x0 0xe0000>; // 896KB label = "u-boot"; }; - u-boot-env@60000 { - reg = <0x60000 0x20000>; // 128KB + u-boot-env@e0000 { + reg = <0xe0000 0x20000>; // 128KB label = "u-boot-env"; }; - kernel@80000 { - reg = <0x80000 0x500000>; // 5MB + kernel@100000 { + reg = <0x100000 0x900000>; // 9MB label = "kernel"; }; - rofs@580000 { - reg = <0x580000 0x2a80000>; // 42.5MB + rofs@a00000 { + reg = <0xa00000 0x2000000>; // 32MB label = "rofs"; }; - rwfs@3000000 { - reg = <0x3000000 0x1000000>; // 16MB + rwfs@6000000 { + reg = <0x2a00000 0x1600000>; // 22MB label = "rwfs"; }; }; -- 2.25.1