From patchwork Wed Oct 7 19:01:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Unune X-Patchwork-Id: 11821619 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 34617109B for ; Wed, 7 Oct 2020 19:03:42 +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 E7BAB2168B for ; Wed, 7 Oct 2020 19:03:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="AVLNCCBt"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="QQmFGTNm" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E7BAB2168B 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+patchwork-linux-arm=patchwork.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=pI1faaoSE2sPiNl0O9T+BcIHM+r10+HLiqPX+EA8xN8=; b=AVLNCCBtDSsyoFzc/SQEieO05 fWl1W1m+bBxQEwKIXfX+qLmbvmxTWB538Z1xT8OdMZdutzjhu0iv0QqAid1K4b4Km9zIMptVyt+GP NiPpOWUMpkfq0TsADDzhfyLeR4xvtXqcJzfAsV7skryArNq/Uj7J+HDrOtaYyVXt3vBKEnocpOuEl yJ1o0uz60UlkX+Yd5YahaqUcQEMR1KScR3Zot+X1VQXF1YCfNRQj4chbSgaUKIk/ikuV+PZlHVixv nbd35P76u510RJDs8B9pqXbH9dQfabOKfr6nV2giVNgrLDJqJs+WorRRqFzr++wSx6VGGH2v2BXj3 HFmfsAx0Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kQEhb-0000hI-UN; Wed, 07 Oct 2020 19:02:15 +0000 Received: from mail-qt1-x82f.google.com ([2607:f8b0:4864:20::82f]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kQEhU-0000eH-CA for linux-arm-kernel@lists.infradead.org; Wed, 07 Oct 2020 19:02:09 +0000 Received: by mail-qt1-x82f.google.com with SMTP id j22so2905910qtj.8 for ; Wed, 07 Oct 2020 12:02:06 -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 :mime-version:content-transfer-encoding; bh=J3VG7MJ7Wsvu/VADxjYStuh9g6YebZQZ+YS6/5hPptA=; b=QQmFGTNmCX1NGBO/hNS8LszE1BVy7iA3ztMK27ybGDywPuMJ5ltGXU/1A0etuBuUVq fbszLgDpYNt72L1ItfUCxEyVhftGaMpzL5Im5IkXVgePnBBOhmDX4/+QVEkq60x3C/0Q 6xBOMo3+M58K9rXGA1Tvt7hFQeOnTgg66rn2lFKMZ8Q+rKLpvMzB99azyVYtgP9BdhZf crFFnPend5yAOrElWYhNJYb/BVg2aaQ5eUkRjoiX06qH+njv6x2/2ts5IX1iQgQxlXQU tbqPuAH99v+xOOlRHy0PwmqlXIa+FQ2bkKW4D0oHlELY4VHjNA8CMhp/8S+Ge9hXbWls Hvmg== 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=J3VG7MJ7Wsvu/VADxjYStuh9g6YebZQZ+YS6/5hPptA=; b=sXEBpjVo25PkyIbRb8M/ok97Bkw2vtjnkad7g7TCq8uyuoqa/F3RJoloaiS5f+acVr uO1g9qEyNyzjFZ21aggpLc8m5OwQl5VtwM6g6vhTV/1erOlp+Mm+EVgHJ0F58x3EIpXf wAwsvpULgEUU56zHKFIXwBkCZTJRklOzrflLvgsaQgRROIuVtKnzWsQYztG9nTE/9edd DDIw+IrAm78tFqShXPFhzD93skp585GnK2j1ZEZ4zjnXZdmPdGOWz72d8zqo9uDaj1cJ rYSK1Z1LyajG8QLjAtAgluKvglBRYwg8e6JDRsUtFSbnI/I2FiHuR2PW09Zjf5bm7kU8 4n+w== X-Gm-Message-State: AOAM5330PnE+drUeIdAVoH0NinzM//H98yAcALTsP2DD65DuZCct3z8k TcsWLSL3XsUz2zzjL5Px/JioKxXxoftyQQ== X-Google-Smtp-Source: ABdhPJyWE2fl4bpuo5qgJr8ZJn0I8P3qX0q6Bgh0IXAAbnA/WFqJMxEJKB5DvYoQAXHC8G4huSz5Kg== X-Received: by 2002:ac8:588d:: with SMTP id t13mr4757344qta.380.1602097324929; Wed, 07 Oct 2020 12:02:04 -0700 (PDT) Received: from ubuntu.localdomain (ool-45785633.dyn.optonline.net. [69.120.86.51]) by smtp.googlemail.com with ESMTPSA id j16sm2087078qkg.26.2020.10.07.12.02.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Oct 2020 12:02:04 -0700 (PDT) From: Vivek Unune To: Subject: [PATCH 1/3] ARM: dts: BCM5301X: Linksys EA9500 make use of pinctrl Date: Wed, 7 Oct 2020 15:01:50 -0400 Message-Id: <6687de05226dd055ee362933d4841a12b038792d.1601655904.git.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-20201007_150208_423274_1216EEC5 X-CRM114-Status: GOOD ( 15.51 ) X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [npcomplete13[at]gmail.com] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [npcomplete13[at]gmail.com] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:82f listed in] [list.dnswl.org] -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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, Hauke Mehrtens , =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , linux-kernel@vger.kernel.org, Rob Herring , bcm-kernel-feedback-list@broadcom.com, Vivek Unune , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Forgo the use of mmioreg mdio mux infavor of the pinctrl Signed-off-by: Vivek Unune --- .../boot/dts/bcm47094-linksys-panamera.dts | 153 +++++++++--------- arch/arm/boot/dts/bcm5301x.dtsi | 4 +- 2 files changed, 74 insertions(+), 83 deletions(-) diff --git a/arch/arm/boot/dts/bcm47094-linksys-panamera.dts b/arch/arm/boot/dts/bcm47094-linksys-panamera.dts index 0faae8950375..f8443d9f86b7 100644 --- a/arch/arm/boot/dts/bcm47094-linksys-panamera.dts +++ b/arch/arm/boot/dts/bcm47094-linksys-panamera.dts @@ -122,87 +122,6 @@ bluebar8 { gpios = <&chipcommon 8 GPIO_ACTIVE_HIGH>; }; }; - - mdio-bus-mux { - #address-cells = <1>; - #size-cells = <0>; - - /* BIT(9) = 1 => external mdio */ - mdio_ext: mdio@200 { - reg = <0x200>; - #address-cells = <1>; - #size-cells = <0>; - }; - }; - - mdio-mii-mux { - compatible = "mdio-mux-mmioreg"; - mdio-parent-bus = <&mdio_ext>; - #address-cells = <1>; - #size-cells = <0>; - reg = <0x1800c1c0 0x4>; - - /* BIT(6) = mdc, BIT(7) = mdio */ - mux-mask = <0xc0>; - - mdio-mii@0 { - /* Enable MII function */ - reg = <0x0>; - #address-cells = <1>; - #size-cells = <0>; - - switch@0 { - compatible = "brcm,bcm53125"; - #address-cells = <1>; - #size-cells = <0>; - reset-gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>; - reset-names = "robo_reset"; - reg = <0>; - dsa,member = <1 0>; - - ports { - #address-cells = <1>; - #size-cells = <0>; - - port@0 { - reg = <0>; - label = "lan1"; - }; - - port@1 { - reg = <1>; - label = "lan5"; - }; - - port@2 { - reg = <2>; - label = "lan2"; - }; - - port@3 { - reg = <3>; - label = "lan6"; - }; - - port@4 { - reg = <4>; - label = "lan3"; - }; - - sw1_p8: port@8 { - reg = <8>; - ethernet = <&sw0_p0>; - label = "cpu"; - - fixed-link { - speed = <1000>; - full-duplex; - }; - }; - }; - }; - }; - }; }; &usb2 { @@ -265,6 +184,78 @@ fixed-link { }; }; +&pinctrl { + compatible = "brcm,bcm4709-pinmux"; + + pinmux_mdio: mdio { + groups = "mdio_grp"; + function = "mdio"; + }; +}; + +&mdio_bus_mux { + + /* BIT(9) = 1 => external mdio */ + mdio@200 { + reg = <0x200>; + #address-cells = <1>; + #size-cells = <0>; + + switch@0 { + compatible = "brcm,bcm53125"; + #address-cells = <1>; + #size-cells = <0>; + reset-gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>; + reset-names = "robo_reset"; + reg = <0>; + dsa,member = <1 0>; + pinctrl-names = "default"; + pinctrl-0 = <&pinmux_mdio>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + label = "lan1"; + }; + + port@1 { + reg = <1>; + label = "lan5"; + }; + + port@2 { + reg = <2>; + label = "lan2"; + }; + + port@3 { + reg = <3>; + label = "lan6"; + }; + + port@4 { + reg = <4>; + label = "lan3"; + }; + + sw1_p8: port@8 { + reg = <8>; + ethernet = <&sw0_p0>; + label = "cpu"; + + fixed-link { + speed = <1000>; + full-duplex; + }; + }; + }; + }; + }; +}; + &usb3_phy { status = "okay"; }; diff --git a/arch/arm/boot/dts/bcm5301x.dtsi b/arch/arm/boot/dts/bcm5301x.dtsi index 9d9e8fe3f6ae..1476375f88bb 100644 --- a/arch/arm/boot/dts/bcm5301x.dtsi +++ b/arch/arm/boot/dts/bcm5301x.dtsi @@ -369,7 +369,7 @@ mdio: mdio@18003000 { #address-cells = <1>; }; - mdio-bus-mux@18003000 { + mdio_bus_mux: mdio-bus-mux@18003000 { compatible = "mdio-mux-mmioreg"; mdio-parent-bus = <&mdio>; #address-cells = <1>; @@ -428,7 +428,7 @@ cru@100 { #address-cells = <1>; #size-cells = <1>; - pin-controller@1c0 { + pinctrl: pin-controller@1c0 { compatible = "brcm,bcm4708-pinmux"; reg = <0x1c0 0x24>; reg-names = "cru_gpio_control"; From patchwork Wed Oct 7 19:01:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Unune X-Patchwork-Id: 11821615 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D2C4D1752 for ; Wed, 7 Oct 2020 19:02:21 +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 91EDD2168B for ; Wed, 7 Oct 2020 19:02:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="1D6szCMd"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ZOIJ8j4w" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 91EDD2168B 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+patchwork-linux-arm=patchwork.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=cJgGtHVn2riydXw2KT4yDKPwvL3KebglnwShkMNvZy0=; b=1D6szCMdtTaW7odSofwCBwlZT 2cpLH4DTEZWn+2GAJABvnf8iJ9GwcHIBFVA3TJ5pg+IyoB1K218SlMIeYKg6UkCESpbcgNyHvTkKp vAynPzOzmZp7pJc5I6we3umyCfTw/RQJSrHW8e+MiOYoonWNLKAz/zX15Mb3x93t+31Nga5VCwkww Ot76OuUMeDh01u+snaowaxYGfzBuOUK6PCG68e2oFe24zL0nqm35KcOG+JmYH0p2YhA/kWPbtURa1 8DeBz517wPXkmtg3ZRpLw4yULvyDFoRulKQGJSblWml3H6qXjjNV0K+Cb1C8MHuWcPPtgJTmR7BLj +P6zgxphw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kQEhY-0000gX-6N; Wed, 07 Oct 2020 19:02:12 +0000 Received: from mail-qt1-x82c.google.com ([2607:f8b0:4864:20::82c]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kQEhT-0000eJ-T6 for linux-arm-kernel@lists.infradead.org; Wed, 07 Oct 2020 19:02:08 +0000 Received: by mail-qt1-x82c.google.com with SMTP id o21so2931415qtp.2 for ; Wed, 07 Oct 2020 12:02:07 -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 :mime-version:content-transfer-encoding; bh=FEl01U0O4q1Wh5acZAMNLtX3OV2kFE+fvUvj0p58OWc=; b=ZOIJ8j4wn7/ZIbygqbn+zPxpWp96Dd/JFoJSsXP+0Jc+OVM2nt1NzPMxGMD6Srqo5e IK2Op88lBz8ucs9cmugYfAK2ldHi9qWlPQ9yigtHwSS5SKAW8HzQB+zL3lB37+e2e9OH F5CadzRUkD4OH/AhX/QGorxuNCTSj7SiTexiFlYz6fFctrc7Ka9wEyM5N2eJ3pcsiE3c 8ERdSgFHXYj2MQkzz7n0rhrhjS/NT/lZNsol15cQZhfOmk1yYMnBhZ/EEMTEvbK2iqI6 tZvdJEReO8m6jTalTHRsOkfw1vKp89Ra/OfPR/8PyaU94p6zv3ZSUuntXYBlTycbNxzy fN2g== 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=FEl01U0O4q1Wh5acZAMNLtX3OV2kFE+fvUvj0p58OWc=; b=dYLUiHc+NiiGDlCCAoF4LGw+o9QSxf6OSkAFmWx0M8YFuiGTY081a+yXJ6DI65OlS/ FAxQNfPU/JoWfnylanjfw5aOXb/BLjcx3CgXOFgsYSZIpbsujqx6xfifFBYxCFAtYHLO w9exDQ12B12PtHIJgLgho8mFwy9icI4/5nIRPt8snJw4IEBTfyau824SQizGC935vZqb Ay6ycYe6TyGHCaWWA1cI7osQuWPWFA7/koWn56AlB5/Td/+kO8ZQ7BQigNhD7/XTJGc6 uq/Wh+y5YfjQpmtZUUoV2RGHxYDtFI6AnysI3hTqu9KlR8J6/6NTZs6iGHouyMqk23DF V6oA== X-Gm-Message-State: AOAM532rC0hOGziGkOSBbD76KKrzay6yd8HlfC5yG1sNNtVvTXFy4oTZ 82VL2XdZ90wFQqd8NRwA+z0Lwh9HjP4HIw== X-Google-Smtp-Source: ABdhPJw43qZa0AFvk3gQx2GGHVG0qqHBOJmpcOK+e0O9FK8qvssu7uMLossAnkrEWn2VWiaE1T9Z7w== X-Received: by 2002:ac8:760f:: with SMTP id t15mr4917593qtq.35.1602097326163; Wed, 07 Oct 2020 12:02:06 -0700 (PDT) Received: from ubuntu.localdomain (ool-45785633.dyn.optonline.net. [69.120.86.51]) by smtp.googlemail.com with ESMTPSA id j16sm2087078qkg.26.2020.10.07.12.02.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Oct 2020 12:02:05 -0700 (PDT) From: Vivek Unune To: Subject: [PATCH 2/3] ARM: dts: BCM5301X: Linksys EA9500 add port 5 and port 7 Date: Wed, 7 Oct 2020 15:01:51 -0400 Message-Id: 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-20201007_150207_969105_7FC5ADC9 X-CRM114-Status: GOOD ( 12.42 ) X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [npcomplete13[at]gmail.com] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [npcomplete13[at]gmail.com] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:82c listed in] [list.dnswl.org] -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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, Hauke Mehrtens , =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , linux-kernel@vger.kernel.org, Rob Herring , bcm-kernel-feedback-list@broadcom.com, Vivek Unune , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Add port 5 and port 7 which are connected to gmac0 & 1 respectively DSA driver will use port 5 as cpu port and this works as well. Signed-off-by: Vivek Unune --- .../boot/dts/bcm47094-linksys-panamera.dts | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/boot/dts/bcm47094-linksys-panamera.dts b/arch/arm/boot/dts/bcm47094-linksys-panamera.dts index f8443d9f86b7..b36ed0ead733 100644 --- a/arch/arm/boot/dts/bcm47094-linksys-panamera.dts +++ b/arch/arm/boot/dts/bcm47094-linksys-panamera.dts @@ -161,6 +161,28 @@ port@4 { label = "wan"; }; + port@5 { + reg = <5>; + ethernet = <&gmac0>; + label = "cpu"; + + fixed-link { + speed = <1000>; + full-duplex; + }; + }; + + port@7 { + reg = <7>; + ethernet = <&gmac1>; + label = "cpu"; + + fixed-link { + speed = <1000>; + full-duplex; + }; + }; + port@8 { reg = <8>; ethernet = <&gmac2>; From patchwork Wed Oct 7 19:01:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Unune X-Patchwork-Id: 11821617 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8FDA6109B for ; Wed, 7 Oct 2020 19:02:29 +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 4759F2168B for ; Wed, 7 Oct 2020 19:02:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="vSfw7o4r"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="tqIldT8R" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4759F2168B 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+patchwork-linux-arm=patchwork.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=C6JVX2GcDAWvs+hwWo/euFSQP9Qcd5qOyhGWCf8h2HU=; b=vSfw7o4rumSFhpPsbc7SbIG9U b5qU1omVzFjirWY4PNE3ChUvJn/0RhFIjGia1vhrK7nuhF3MT53eHre1b7S7czK+9jV2piS64/ddM WL0y9DYK4Tr+De/1sj4qyD6VjMYt7imiNmlVN+UVFN+h4X5BahYKlMcHqtV8FROvgzbufak9as1C7 z3lO6E9YtnQKSJ7jHeYrmgpa90fIoTl6XJZrnzBG9sXd4Orjj+hgfTAIbT6EdH7a8l0kOXbEIf3qr D3tvAFK31l5o30MFxqb9vfnmxHKYrs2kY4K54bnCGtpNyK/hg8WnO3+6n7vyBjKuP6Hj4SJB6bkt4 db/PSsUSA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kQEhe-0000i8-Kb; Wed, 07 Oct 2020 19:02:18 +0000 Received: from mail-qk1-x743.google.com ([2607:f8b0:4864:20::743]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kQEhU-0000el-R9 for linux-arm-kernel@lists.infradead.org; Wed, 07 Oct 2020 19:02:09 +0000 Received: by mail-qk1-x743.google.com with SMTP id c62so4194608qke.1 for ; Wed, 07 Oct 2020 12:02:08 -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 :mime-version:content-transfer-encoding; bh=cn3dG5n0vqcoPNTEYGHnnPIs7oCE0YkkaB1qoJ0Mljo=; b=tqIldT8RHozyj/3vaZGZ8+d1+EMoZ5vLRTCAxszk5TvN4UqGTdv/vTPAAsvkVluGur EG6FGuv5KKLjH3T3BtL5rMQJtynEXGd8MEopTzzz2UHZSLOME45Gjh3pp26KVRityd7s siRT70pMrCTq7ArIiBnHccZIbDIYoLth8ADsN0Kn1nwxW+ptAZQl/efK1kJbGdXsxt5P Hfs+MgzXHWmAbPMKTCGm13i6HCAoA9+EmFyGqH3ZQZTeqMlMfM6pb4eE0mcgpCf8hES3 77iNxhTi4RZJJq/2dzNqmX6fMcnE1by6Chs0ZxHCOkKYThQJCjcqLyjUlbZVp12SFlhH SGAA== 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=cn3dG5n0vqcoPNTEYGHnnPIs7oCE0YkkaB1qoJ0Mljo=; b=syHoBfRK+0Q18smZ5v6Ow1DoO6TDAtuAaPGLUGWeS3I1v3NkSXA9p2ZICg2pl8tfDf lsm/2twqfagcxPKXby29e1eiFpeg3swSNgCV9yJSRbK8CMOQc/OABh/zAzxMB+PzLAub FvghdRcnsVPGN+F8zfRdOqIAjOgZzxrCMzpQgL669uw0okhE1wjHeo2rjdBGl1ZdrcRE p9CAIeUe+KeQpBZB5aCFTrC2KgI4314C2M27EcDgKWk5pNq8txaMbtmoB7IcOnIkOdfz 0pfuPLT5/84HS4UioJguALVwAfBRcYQX3wRwVVT/tR5KtsqAsr1Z+JpyYs0qyvgbguHr jjaQ== X-Gm-Message-State: AOAM5326LkeChzozqRkh2VFey5FMizMckJoaXQku9dOubTO4+hxyh2Z0 nopvqfafuZdOm1syDuitMeE= X-Google-Smtp-Source: ABdhPJwM3NpsNzFNkkIjvGBnVgmByNkpsiEMEm7SUKpoQCCciFzerxExh0Z7HH6draGub+YZ/FDBHw== X-Received: by 2002:a37:a46:: with SMTP id 67mr4435265qkk.477.1602097327111; Wed, 07 Oct 2020 12:02:07 -0700 (PDT) Received: from ubuntu.localdomain (ool-45785633.dyn.optonline.net. [69.120.86.51]) by smtp.googlemail.com with ESMTPSA id j16sm2087078qkg.26.2020.10.07.12.02.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Oct 2020 12:02:06 -0700 (PDT) From: Vivek Unune To: Subject: [PATCH 3/3] ARM: dts: BCM5301X: Linksys EA9500 add fixed partitions Date: Wed, 7 Oct 2020 15:01:52 -0400 Message-Id: <25a5a438aef1d158a57872de963ac870ab13507c.1601655904.git.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-20201007_150208_907405_49B0BD8B X-CRM114-Status: GOOD ( 14.32 ) X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:743 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [npcomplete13[at]gmail.com] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [npcomplete13[at]gmail.com] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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, Hauke Mehrtens , =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , linux-kernel@vger.kernel.org, Rob Herring , bcm-kernel-feedback-list@broadcom.com, Vivek Unune , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This router has dual paritions to store trx firmware image and dual partitions for nvram. The second one for 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 another 'linux' partition The following patch works around both of these issues. Signed-off-by: Vivek Unune --- .../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 b36ed0ead733..488e83c1780d 100644 --- a/arch/arm/boot/dts/bcm47094-linksys-panamera.dts +++ b/arch/arm/boot/dts/bcm47094-linksys-panamera.dts @@ -281,3 +281,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@0x5200000 { + label = "brcmnand"; + reg = <0x05200000 0x02E00000>; + }; + }; +};