From patchwork Wed Mar 15 15:00:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Vivek Unune X-Patchwork-Id: 739301 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vjvtx0npFz9ryZ for ; Thu, 16 Mar 2017 02:01:13 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="c/gjkDQp"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="X71OBCUq"; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References: List-Owner; bh=14/V3DNcYD3p5W/zTArJus5xwJLhmgdFDTgCKGiAEVQ=; b=c/gjkDQp+9ALvT /JcuReonJ6FDk9p3v2xgEFgNRH9Om6DOq+vAy2Q//eWKicjv6rrPFbsyELwZOT5pTUNUY2HuxfQM5 prxj8jzMSQ2QemU1MpGN5iRCmbF4tQQQ3tqzXb2eUcNP7jUm5njaBFH4IahkzNzx5DR8QnC1OlMKC vCnx4J4/nUT2XFnREGAfzLwa3ktmaeQpWt/9b09Jkh93HBqQ2giSD1r6z+z31wwC4HZp7oaYiTu3M 2aUqz5359bWZJpLNq9uGWtnOiJWMLjhzQ0LVNz4kXfIAK8h+lA9wEOMaNLGxvvqln68aF4QMGwP0T I6iL/+hcT/VI4d23Iwag==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1coAQJ-0004e2-6F; Wed, 15 Mar 2017 15:01:11 +0000 Received: from mail-qt0-x242.google.com ([2607:f8b0:400d:c0d::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1coAQE-0004bw-G9 for linux-arm-kernel@lists.infradead.org; Wed, 15 Mar 2017 15:01:08 +0000 Received: by mail-qt0-x242.google.com with SMTP id r5so2211260qtb.2 for ; Wed, 15 Mar 2017 08:00:45 -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:mime-version :content-transfer-encoding; bh=v4ceNqiMNxBFKRmrbZi+ED5TPmaM0O6AFwFqFhQzhzE=; b=X71OBCUqdlvBGaZtHc2v7qFIVWn+B1sury5PwtK3nKLSpOgi8TmuXDTwIysJlCLWdg HLkMdL7xv5ESHkqDH3EI7GMfwIY9jmHXEhj+4czg4ydQzLlzP5VV7PXZtWPcj0PwLEC2 iLOsvTlqNDlJIBMikeMju1a/c10ZiSyYxFfL1KbXuCSdb3KVr9231Rc+1pifsZeNvObp 9uKflE8CTLamXbXZpCDR1H5tjy31EGD7JnbzmlKhckCaENbaLOLAoQQRmFfJsXZSEmuj 2X2gLHx4164lhAv8uPJlQhb58sLn3pYGWy1X2VxxWhG2m/hXZbF9T7SrL3vlIpMFPfW9 taeg== 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:mime-version :content-transfer-encoding; bh=v4ceNqiMNxBFKRmrbZi+ED5TPmaM0O6AFwFqFhQzhzE=; b=cPayE6rMmrPYZnJTwdWHUrNfUN/Da/dff2q/VjepYKbjUPjj9J0mhjcndhI6H2HeOE 6ycMPvR8yR8fwwe5WeDPZqSh5lloE1GwMvXFbVEF9MUMa02iuB4qV8QS+nM86ST1gFgl yIG7OnNV7GvGsfyufnAJUFIKfo4apKfo7B6c+rPWL7dMjxLuj+scvWTb4SsZPpgq3JVk AKb78S0inq+sksMkxQSYkzVMNbUBjkhc0iE3Il52jIhyJNmTVP3ruILBsroh1xdvclWA BK20PbH4QPuvVsDI7yyOW3Ukm+q7iWZ1CKI5a/JWuHu7scKnd8sQ/1FP4vUOm/CTj0O6 xbvg== X-Gm-Message-State: AFeK/H18Zq2ZoYMxf+tEo3vJonsV1mraKGDwfv1QjqGBvxUw6KMQNYRiFSmex0txgFft8g== X-Received: by 10.200.45.112 with SMTP id o45mr3564681qta.92.1489590043768; Wed, 15 Mar 2017 08:00:43 -0700 (PDT) Received: from localhost.localdomain (ool-18b90080.dyn.optonline.net. [24.185.0.128]) by smtp.googlemail.com with ESMTPSA id j1sm1428140qkf.57.2017.03.15.08.00.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 15 Mar 2017 08:00:43 -0700 (PDT) From: Vivek Unune To: hauke@hauke-m.de, zajec5@gmail.com, bcm-kernel-feedback-list@broadcom.com, robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk Subject: [PATCH] ARM: dts: BCM5301X: Add support for Linksys EA9500 Date: Wed, 15 Mar 2017 11:00:33 -0400 Message-Id: <1489590033-4946-1-git-send-email-npcomplete13@gmail.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170315_080106_624777_AB376736 X-CRM114-Status: GOOD ( 14.34 ) X-Spam-Score: -2.5 (--) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-2.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2607:f8b0:400d:c0d:0:0:0:242 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (npcomplete13[at]gmail.com) 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (npcomplete13[at]gmail.com) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 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 -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org Hardware Info ------------- Processor - Broadcom BCM4709C0KFEBG dual-core @ 1.4 GHz Switch - BCM53012 in BCM4709C0KFEBG & external BCM53125 DDR3 RAM - 256 MB Flash - 128 MB (Toshiba TC58BVG0S3HTA00) 2.4GHz - BCM4366 4×4 2.4/5G single chip 802.11ac SoC Power Amp - Skyworks SE2623L 2.4 GHz power amp (x4) 5GHz x 2 - BCM4366 4×4 2.4/5G single chip 802.11ac SoC Power Amp - PLX Technology PEX8603 3-lane, 3-port PCIe switch Ports - 8 Ports, 1 WAN Ports Antennas - 8 Antennas Serial Port - @J6 [GND,TX,RX] (VCC NC) 115200 8n1 I was able to test this with Lede with following quirks. - Broadcom 4366c0 wireless chip is used and it's firmware package doesn't exist yet. I was able to test it with firmware that came buried in the router's dhd.ko - CPU is connected to port 5 - It has two switches in order to support 8 lan ports. Internal switch is BCM53012. The external switch BCM53125 currently works as "dumb switch" - Using 8 bit ECC gives errors, switching to 1 bit ECC solved the issue - It uses dual firmware (trx) copies for failsafe purposes. Installation ------------ Linksys gpg-signs their firmware for this router, hence it is not possible to install using Factory UI. This router needs serial cable hooked up to J6. Then interrupt the boot process by Ctrl+C to enter CFE prompt From there execute: `flash -noheader 192.168.1.10:/lede.trx nflash0.trx` where 192.168.1.10 is where your tftp server should is running. You may want to reset partial boots using `nvram set partialboot=0 && nvram commit' while at CFE prompt. TODO ---- - Add BCM53125 (secondary switch) to dts - Add robo_reset gpio (pin# 10 active low) to dts Signed-off-by: Vivek Unune --- arch/arm/boot/dts/bcm47094-linksys-panamera.dts | 97 ++++++++++++++++++++++++- 1 file changed, 96 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/bcm47094-linksys-panamera.dts b/arch/arm/boot/dts/bcm47094-linksys-panamera.dts index b6750f7..75537ed 100644 --- a/arch/arm/boot/dts/bcm47094-linksys-panamera.dts +++ b/arch/arm/boot/dts/bcm47094-linksys-panamera.dts @@ -7,7 +7,7 @@ /dts-v1/; #include "bcm47094.dtsi" -#include "bcm5301x-nand-cs0-bch8.dtsi" +#include "bcm5301x-nand-cs0-bch1.dtsi" / { compatible = "linksys,panamera", "brcm,bcm47094", "brcm,bcm4708"; @@ -32,5 +32,100 @@ linux,code = ; gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>; }; + + rfkill { + label = "WiFi"; + linux,code = ; + gpios = <&chipcommon 16 GPIO_ACTIVE_LOW>; + }; + + reset { + label = "Reset"; + linux,code = ; + gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>; + }; + }; + + leds { + compatible = "gpio-leds"; + + wps { + label = "bcm53xx:white:wps"; + gpios = <&chipcommon 22 GPIO_ACTIVE_LOW>; + }; + + usb2 { + label = "bcm53xx:green:usb2"; + gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>; + }; + + usb3 { + label = "bcm53xx:green:usb3"; + gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>; + }; + + power { + label = "bcm53xx:white:power"; + gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>; + }; + + wifi-disabled { + label = "bcm53xx:amber:wifi-disabled"; + gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>; + }; + + wifi-enabled { + label = "bcm53xx:white:wifi-enabled"; + gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>; + }; + + bluebar1 { + label = "bcm53xx:white:bluebar1"; + gpios = <&chipcommon 11 GPIO_ACTIVE_HIGH>; + }; + + bluebar2 { + label = "bcm53xx:white:bluebar2"; + gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>; + }; + + bluebar3 { + label = "bcm53xx:white:bluebar3"; + gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>; + }; + + bluebar4 { + label = "bcm53xx:white:bluebar4"; + gpios = <&chipcommon 18 GPIO_ACTIVE_HIGH>; + }; + + bluebar5 { + label = "bcm53xx:white:bluebar5"; + gpios = <&chipcommon 19 GPIO_ACTIVE_HIGH>; + }; + + bluebar6 { + label = "bcm53xx:white:bluebar6"; + gpios = <&chipcommon 20 GPIO_ACTIVE_HIGH>; + }; + + bluebar7 { + label = "bcm53xx:white:bluebar7"; + gpios = <&chipcommon 21 GPIO_ACTIVE_HIGH>; + }; + + bluebar8 { + label = "bcm53xx:white:bluebar8"; + gpios = <&chipcommon 8 GPIO_ACTIVE_HIGH>; + }; + }; }; + +&usb2 { + vcc-gpio = <&chipcommon 13 GPIO_ACTIVE_HIGH>; +}; + +&usb3 { + vcc-gpio = <&chipcommon 14 GPIO_ACTIVE_HIGH>; +};