From patchwork Sun Nov 1 20:08:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Unune X-Patchwork-Id: 11872523 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=-12.5 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 AFB23C2D0A3 for ; Sun, 1 Nov 2020 20:09:05 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 343E6208B6 for ; Sun, 1 Nov 2020 20:09:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="qrk6Fpmm"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gTwXMlWr" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 343E6208B6 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version: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=hmh1sbByzGlAD37VfsBB3FaLf2YvmKQR9HLEXkic388=; b=qrk6FpmmaeG+FY5+6SF0QIYCR cXu04kc2txbx+3iOsGOAIgvxtGH6BbAaqdNjmuoyiFXIkg3/4bZUMjZ6Oa9l966CmzB0PlfzT6JHa O2qrv0BpYIELaHez6uM03g3HFdkCnbuKEh3zqS4Vw8kNwz5KSXcDrDwFyDWfSOK1NfpFzhc2jGRkv MfpGkGTfHxKuaEwI+NYIEPQOr79SHKbuvFY3WhyUdJI/5nzjMVLNQ5YMPOB8Bed3X7/q/ooScz/44 cjJQux+OaHkPo1553PLEfNiykZF3lI+1Ec2zjXniWJYW1cxbXcIeWIAud6XSr4Dj4IW/AOR54W9ub TYHNNvxtw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kZJeK-0002nZ-K1; Sun, 01 Nov 2020 20:08:24 +0000 Received: from mail-qt1-x844.google.com ([2607:f8b0:4864:20::844]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kZJeI-0002n6-GS for linux-arm-kernel@lists.infradead.org; Sun, 01 Nov 2020 20:08:23 +0000 Received: by mail-qt1-x844.google.com with SMTP id m14so7898588qtc.12 for ; Sun, 01 Nov 2020 12:08:20 -0800 (PST) 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 :mime-version:content-transfer-encoding; bh=dvVA6gJ7KOUrL6fUd23pqvXnztHm0oyioDDQWl4BAQQ=; b=gTwXMlWrggROudSV3s7R/3ux9AxsT2XgsNLRPfGJ5eEkv3uWqALu2Dl3r4fhN5BSlu iGAFnVQPOHHyL9MOh3U1TFQrDXDiWsBgapw62NJlJOHH5hLCR0Z0KuaRxioLvVj2Q0KR kiLZkqS0OyMhmQhBmUF8rxFOh5As/0HLSklXPCNniOHUr0Cyf9zhYaHdecKSe5q8rU/u rqHmqffa1t2JrUTk1L881tk+iP+chb/lT3Seu7jUAHlLHyev9fe5VOg/Ek6hyiIlaovR 5rXtbTwOXF/l9u2mQdC/606Pw2imsW/GtqO5iRPrkPhbhaYDFkrm4vrgaofLR0dxq8KL 8k7Q== 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:mime-version:content-transfer-encoding; bh=dvVA6gJ7KOUrL6fUd23pqvXnztHm0oyioDDQWl4BAQQ=; b=sL8iOQJMIpd+sXPDBm9GZaQItdVRLrAf1/06d+99Wk9nlgRCw9ehJIN1qg7KIz0fSW tBFGy2ccBYAytz/CXHT0Ip4g5tKVWwH/BKxpUgbULvhCxhf8xMoWw3NkNOM0J7wtvA9Q RetoR5otrzRA2cMcGriSAB8EeZtgsQo2lo7ebXAIna/l3tWoYAwkjIAqiXsi6hwsu2QD XzcU9rimKm7eyaHruVoGmmfFF1+BLSXF/eTXVmMy3VMNLHVkVlL+aMatLxwo91L8lcIt d1yJc6qom6db6yzIFFeK/CxcLho/l+GB7uLoEFZDlK/bsdXYaZ1T/VveGZHUlt6n7LBC VD3g== X-Gm-Message-State: AOAM533iJzNPBG+yvIJzKAo22MXix3c6RpqUoV5Ft7dKN2ePfBS00Q3+ Iyt+u7e1Gv8o3rP+m8OUMGs= X-Google-Smtp-Source: ABdhPJyGVh1O8s4DBhP7k6UVZLQ0DgS3fzpHcID2c71ukOTmFzz5xq7CF2qH0W3KLIZioeJ5DrIfrA== X-Received: by 2002:aed:2ba6:: with SMTP id e35mr11806520qtd.251.1604261299551; Sun, 01 Nov 2020 12:08:19 -0800 (PST) Received: from ubuntu.localdomain (ool-45785633.dyn.optonline.net. [69.120.86.51]) by smtp.googlemail.com with ESMTPSA id z134sm6607386qka.21.2020.11.01.12.08.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Nov 2020 12:08:19 -0800 (PST) From: Vivek Unune To: Subject: [PATCH v2] ARM: dts: BCM5301X: Linksys EA9500 add fixed partitions Date: Sun, 1 Nov 2020 15:08:03 -0500 Message-Id: <20201101200804.2460-1-npcomplete13@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201101_150822_566867_6EB9633A X-CRM114-Status: GOOD ( 14.63 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, florian.fainelli@broadcom.com, Hauke Mehrtens , =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , linux-kernel@vger.kernel.org, Rob Herring , bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org, Vivek Unune Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This router has dual paritions to store trx firmware image and dual partitions for nvram. The second one in each of these cases acts as a backup store. When tested with OpenWrt, the default partition parser causes two issues: 1. It labels both nvram partitions as nvram. In factory, second one is labeled devinfo. 2. It parses second trx image and tries to create second 'linux' partition and fails with - cannot create duplicate 'linux' partition The following patch works around both of these issues. Signed-off-by: Vivek Unune --- V2: - Removed 0x before partition offset - Renamed brcmnand to system --- .../boot/dts/bcm47094-linksys-panamera.dts | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/arch/arm/boot/dts/bcm47094-linksys-panamera.dts b/arch/arm/boot/dts/bcm47094-linksys-panamera.dts index 5d5930edfb9d..13da16c5de68 100644 --- a/arch/arm/boot/dts/bcm47094-linksys-panamera.dts +++ b/arch/arm/boot/dts/bcm47094-linksys-panamera.dts @@ -292,3 +292,44 @@ fixed-link { &usb3_phy { status = "okay"; }; + +&nandcs { + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "boot"; + reg = <0x0000000 0x0080000>; + read-only; + }; + + partition@80000 { + label = "nvram"; + reg = <0x080000 0x0100000>; + }; + + partition@180000{ + label = "devinfo"; + reg = <0x0180000 0x080000>; + }; + + partition@200000 { + label = "firmware"; + reg = <0x0200000 0x01D00000>; + compatible = "brcm,trx"; + }; + + partition@1F00000 { + label = "failsafe"; + reg = <0x01F00000 0x01D00000>; + read-only; + }; + + partition@5200000 { + label = "system"; + reg = <0x05200000 0x02E00000>; + }; + }; +};