From patchwork Mon Jun 18 17:41:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Vivek Unune X-Patchwork-Id: 10472425 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 37378601D7 for ; Mon, 18 Jun 2018 17:42:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2726528B25 for ; Mon, 18 Jun 2018 17:42:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1BFC928B58; Mon, 18 Jun 2018 17:42:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8F6DF28B52 for ; Mon, 18 Jun 2018 17:42:44 +0000 (UTC) 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: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=Rp6JtziyF9n8zFvycHQfAPl6MA6Vm6j26s3cZ+5V3GY=; b=u9hZVpMzFxj6f9 zj6UQfncP+xCOS69kSEVlyd5rFY8r/ZaxESg25hPHxvKK2zd9D44bg7mvFDsUuSXBZ1JrKWzIqWaH XmYnMmkYnCKJqFUYsYBFaT6HinxryPEoPACZnbAFvHoK9+GElCXgG2lVLw7XwwVnYAfsUyCMDX/tC 51uFX+abCwxU6qvJju6SelIVd+UCfWBDHF6/+GuuK0fs5a5pVPMOukOV8AiKxc+OQSEHcIEGJC0DT unBcZoaDfUXVxqJ8gxMIU4iUw2LKnhqNrPu8EOX/aIJY0YiNjxK55WoBGt93ePfP77rR0Gjhpw4Mr Yw5VtFsuTTPPm2tsRBzQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fUyAj-0000iR-0K; Mon, 18 Jun 2018 17:42:33 +0000 Received: from mail-qt0-x242.google.com ([2607:f8b0:400d:c0d::242]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fUyAf-0000gg-EL for linux-arm-kernel@lists.infradead.org; Mon, 18 Jun 2018 17:42:31 +0000 Received: by mail-qt0-x242.google.com with SMTP id q6-v6so15912505qtn.7 for ; Mon, 18 Jun 2018 10:42:15 -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=S5QS2nbgJ40ZMQRjJcpMCm/74LfgvYp+piZWqDU5kmA=; b=Ray6oaaN7IV+ghZu/XGzvFppwCfCYgigAfL5IkD0WYwMSQNZcQAMYqrB1R3+nXFbPw j+KYo4ZjFbdxCNc72hEYQSS8x30yPJr4p1G/dnNF2Fc+Am+91yqseuSsovmzUS3S2vmk c5zMj5ToA52pa2s29MxzUbyLYr3mdf+H5gjqMLp+qEJtdSbuxD2Eg4Ra2UksVdt6Nau2 LHRPHqNF8tOaF3wu7V/nEqPTgAoYQux5AjNDedK1fYvFWoLwBtTirQqUUzg4RmEVTAJC Kuue9gitvgPs330c9wAUiXF+QWqctW6XXi04KW80P19lkCi2yQyfQti5RfVmZEftNUEl Ovtg== 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=S5QS2nbgJ40ZMQRjJcpMCm/74LfgvYp+piZWqDU5kmA=; b=LKPvYCHPbZe5NIZdC1TieZGZ4/4VCfFxkAxu9IjSg8Kj2PJXFqOi3gBcN2UMEMrxyd W+tu7Yp0ioCcRIrQyvqnWiK8jOsi9gVa00wcNSVWBoyBwdJOUH2W0E3+yaSaNn5LaoB4 71Tk/uZOgkqx+Fv0maNfxp6Q5AkTy+joikzm+8P388dd55VWSSM95xKk8JoStiM1Eap8 aR7D6vjPtcsFFG0HAq0CpqcQjBXVHI89B/fK72q5JkehiJNWow6kdrsKbtk7XLROX7U9 dGLwUSuzRQMMTRZphatZ7Ld/d4PAw3EFtL3C9CnSHQZD7Fm7Cb4wJKl131eOfGlBMYa1 fIyg== X-Gm-Message-State: APt69E3yFYgIoaYEGC2nRJR5iyqrBsFZrcqDDz8s65wFyhtjF2iX29YL AY6TNhpuCNININg/WEwMRC8= X-Google-Smtp-Source: ADUXVKI20wKVZbezCF2Clj5NRFaoQjq2/LuoPKOlpSa0EvfC/L6D51O4N+jknjD8thcO7G1WOPdu2g== X-Received: by 2002:ac8:3f24:: with SMTP id c33-v6mr11606399qtk.235.1529343734582; Mon, 18 Jun 2018 10:42:14 -0700 (PDT) Received: from localhost.localdomain (ool-44c0037e.dyn.optonline.net. [68.192.3.126]) by smtp.googlemail.com with ESMTPSA id v56-v6sm12317047qtv.50.2018.06.18.10.42.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Jun 2018 10:42:13 -0700 (PDT) From: Vivek Unune To: florian.fainelli@broadcom.com, hauke@hauke-m.de, zajec5@gmail.com, jonmason@broadcom.com, bcm-kernel-feedback-list@broadcom.com, robh+dt@kernel.org, mark.rutland@arm.com Subject: [PATCH v3] ARM: dts: BCM5301X: Add support for Linksys EA9500 Date: Mon, 18 Jun 2018 13:41:59 -0400 Message-Id: <20180618174159.86150-1-npcomplete13@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180222223844.98527-1-npcomplete13@gmail.com> References: <20180222223844.98527-1-npcomplete13@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180618_104229_485688_9CD98A0C X-CRM114-Status: GOOD ( 15.26 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Vivek Unune , linux-kernel@vger.kernel.org, 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 X-Virus-Scanned: ClamAV using ClamSMTP 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 Tested with OpenWrt built with DSA driver and Kernel v4.14 Signed-off-by: Vivek Unune --- Changes in v3: - Remove unnecessary change to BCH settings - Remove ports 5 & 7 from internal switch for now Changes in v2: - Properly define mdio mux, internal mdio, external mdio, mii bus - Now we define usb3 phy as a mdio node connected to internal mdio, thanks to work done by Rafał Miłecki on the bcm usb3 phy mdio driver - Define external SW as a mdio-mii node connected to external mdio --- arch/arm/boot/dts/bcm47094-linksys-panamera.dts | 225 ++++++++++++++++++++++++ 1 file changed, 225 insertions(+) diff --git a/arch/arm/boot/dts/bcm47094-linksys-panamera.dts b/arch/arm/boot/dts/bcm47094-linksys-panamera.dts index 1b26f0be2382..f4f40fd7fbe5 100644 --- a/arch/arm/boot/dts/bcm47094-linksys-panamera.dts +++ b/arch/arm/boot/dts/bcm47094-linksys-panamera.dts @@ -31,6 +31,231 @@ 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>; + trigger-sources = <&ohci_port2>, <&ehci_port2>; + linux,default-trigger = "usbport"; + }; + + usb3 { + label = "bcm53xx:green:usb3"; + gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>; + trigger-sources = <&ohci_port1>, <&ehci_port1>, + <&xhci_port1>; + linux,default-trigger = "usbport"; + }; + + 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>; + }; + }; + + mdio-bus-mux { + mdio_ext: mdio@200 { /* BIT(9) = 1 => external mdio */ + 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>; + mux-mask = <0xc0>; /* BIT(6) = mdc, BIT(7) = mdio */ + + mdio-mii@0 { + reg = <0x0>; /* Enable mii function */ + #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 { + vcc-gpio = <&chipcommon 13 GPIO_ACTIVE_HIGH>; +}; + +&usb3 { + vcc-gpio = <&chipcommon 14 GPIO_ACTIVE_HIGH>; +}; + +&srab { + compatible = "brcm,bcm53012-srab", "brcm,bcm5301x-srab"; + status = "okay"; + dsa,member = <0 0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@1 { + reg = <1>; + label = "lan7"; + }; + + port@2 { + reg = <2>; + label = "lan4"; + }; + + port@3 { + reg = <3>; + label = "lan8"; + }; + + port@4 { + reg = <4>; + label = "wan"; + }; + + port@8 { + reg = <8>; + ethernet = <&gmac2>; + label = "cpu"; + + fixed-link { + speed = <1000>; + full-duplex; + }; + }; + + sw0_p0: port@0 { + reg = <0>; + label = "extsw"; + + fixed-link { + speed = <1000>; + full-duplex; + }; + }; }; };