From patchwork Tue Jun 6 15:43:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Golle X-Patchwork-Id: 103957 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3493659vqr; Tue, 6 Jun 2023 08:50:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5V1xGIwvOs3UreMfo+JIfDkpWPY8zCKKQOwILPrQqsRtHeoH157UlkHCR6oHexxGtvqOnA X-Received: by 2002:a92:c94a:0:b0:335:70ad:4695 with SMTP id i10-20020a92c94a000000b0033570ad4695mr3551011ilq.18.1686066639160; Tue, 06 Jun 2023 08:50:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686066639; cv=none; d=google.com; s=arc-20160816; b=ZAi5yQYKTlDYGvHrkd3koA+fO5EHM30mCEAibOaEX5lUHoueg3j3n2wOFWi4PdZzBw EkdCE0lTjRLH8VSw3BNyg5X+4kPRrKfqeDqzFN301xOWe8iICDIEuRhUDbQFg5TUAv/i 8IlH2CrmJBw5VijVihgsFgconfs5gaATP9h1qZUQv36WjhrNVWOX7fHAGW9Te1Qd0x1N rxdCqocoecZ/Ce21YME3tqNcN43Z+OYrHiNOX3CRECYwk76jPyvep2dF0oHdjyjZQFmJ Vvx9fu+QgbpBDmdDVnZ4fIqJTtY6BwG1T+vmNKx9tyr8byxOCRIZEO6uP9iUREZSOJg5 rbsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:to:from:date; bh=vJ5Psndi1HWL+ACKG5dHUOldjenXjNyb8YQUS4AnZfE=; b=hrvCmslaCCFZ9YpSfn5Ov7mDAebReIMyt/6LKplv0URGgQnvQ3H+FIQ4my+jH0Fine 1OtTDziVYopgRPRck4Z4EG6A7dRXd+bAGtlLFycyflbZNi/foLWjT+z+8N7Wm5HysDba duFX8vo1rh0pvx88W3XdQJxMKlhWsVte6RXo/VOaYTPI+XGjI7c5psz23Hj0X71ylICS fa6aqXnf+SmS1ysfKUj8l68ZHBWc+/JkOvWsJJJwl0t54HI0dYf0w478N2EYYOa/hgH9 cOAc1ax6Q0IAQD9gm0CcLuOhs65TUNWEV3PBpk5elN6NjBehR82PaAhp+FH+xX+Pdy1O Xa2w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bs4-20020a632804000000b0053fbb3f1581si7417594pgb.701.2023.06.06.08.50.26; Tue, 06 Jun 2023 08:50:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232466AbjFFPnj (ORCPT + 99 others); Tue, 6 Jun 2023 11:43:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229827AbjFFPni (ORCPT ); Tue, 6 Jun 2023 11:43:38 -0400 Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8E54100; Tue, 6 Jun 2023 08:43:36 -0700 (PDT) Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96) (envelope-from ) id 1q6YqK-0004lq-1R; Tue, 06 Jun 2023 15:43:32 +0000 Date: Tue, 6 Jun 2023 16:43:20 +0100 From: Daniel Golle To: devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Frank Wunderlich , AngeloGioacchino Del Regno , Matthias Brugger , Conor Dooley , Krzysztof Kozlowski , Rob Herring , Weijie Gao Subject: [PATCH] arm64: dts: mt7986: increase bl2 partition on NAND of Bananapi R3 Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767969011964683878?= X-GMAIL-MSGID: =?utf-8?q?1767969011964683878?= The bootrom burned into the MT7986 SoC will try multiple locations on the SPI-NAND flash to load bl2 in case the bl2 image located at the the previously attempted offset is corrupt. Use 0x100000 instead of 0x80000 as partition size for bl2 on SPI-NAND, allowing for up to four redundant copies of bl2 (typically sized a bit less than 0x40000). Fixes: 8e01fb15b8157 ("arm64: dts: mt7986: add Bananapi R3") Signed-off-by: Daniel Golle --- .../boot/dts/mediatek/mt7986a-bananapi-bpi-r3-nand.dtso | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3-nand.dtso b/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3-nand.dtso index 15ee8c568f3c3..543c13385d6e3 100644 --- a/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3-nand.dtso +++ b/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3-nand.dtso @@ -29,13 +29,13 @@ partitions { partition@0 { label = "bl2"; - reg = <0x0 0x80000>; + reg = <0x0 0x100000>; read-only; }; - partition@80000 { + partition@100000 { label = "reserved"; - reg = <0x80000 0x300000>; + reg = <0x100000 0x280000>; }; partition@380000 {