From patchwork Mon May 30 07:10:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pramod Kumar X-Patchwork-Id: 9140323 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 E4C9560759 for ; Mon, 30 May 2016 07:12:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D7450281E8 for ; Mon, 30 May 2016 07:12:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CBF42281FE; Mon, 30 May 2016 07:12:40 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8C7E72821C for ; Mon, 30 May 2016 07:12:40 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1b7HMF-0007Nk-Mb; Mon, 30 May 2016 07:11:27 +0000 Received: from mail-pf0-x232.google.com ([2607:f8b0:400e:c00::232]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1b7HLt-000771-9A for linux-arm-kernel@lists.infradead.org; Mon, 30 May 2016 07:11:06 +0000 Received: by mail-pf0-x232.google.com with SMTP id b124so61942427pfb.0 for ; Mon, 30 May 2016 00:10:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=kfld9K0YtYva1/VTMOlCY3Bg3qdVDudGgtcvsgBedZM=; b=eFCerC9Edx4Ar48Ms0Su2RO9zXQFnLjTRGZBH2tzMZJ41VuWy4HqUIph7hQk7ytSA6 WTk/K5xGR1u2sFuJLHK7zXJLaiM0LpzP+l7f322+ThUe6Uql22Wyo15jmnD5xu9x7rgL bKi1k1S956zHNPgULuv5P+ULfre30aJbdnfzM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=kfld9K0YtYva1/VTMOlCY3Bg3qdVDudGgtcvsgBedZM=; b=DgjEMcNnTgqQ2fGtLrUC752HvB/92YoLIGOnVguW+VLMgfK0rJjplyi9TUuq2wDgKB A+kGWe14RTRLQk1vxGL7fwkkkiVd8kJISUiXX7Ewog6/nFmZNawG6rx1TtWVF+3qNHWX Z3iM0N6BBxG9UpV8rqOHB6hV50guUJ/3fndli5+8SPj+H8plZnYaDdPdmhcyf3TcIJyG fgVgLQ2iw1MkGArSDfsugg4NDDCxYN1LJjUlhsfl+SWJusB1fsvb/5xNOZgweZgqtK1K LCjqevQSCtUxoaa085IUql50IQkDWwdZ6GXgZ2LMtYO7GURkOrYW07W3WEnr1WYpGo5E N5aA== X-Gm-Message-State: ALyK8tINochMZySthLbVYNRCNiAYXXK1n1wLI/B5simsdppMxbyrpX2q8EciHQbKDpCPH311 X-Received: by 10.98.90.7 with SMTP id o7mr44000430pfb.110.1464592243974; Mon, 30 May 2016 00:10:43 -0700 (PDT) Received: from pramodku-OptiPlex-7010.ban.broadcom.com ([202.140.36.35]) by smtp.gmail.com with ESMTPSA id n78sm30141583pfi.79.2016.05.30.00.10.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 30 May 2016 00:10:43 -0700 (PDT) From: Pramod Kumar To: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Catalin Marinas , Will Deacon , Kishon Vijay Abraham I , "David S. Miller" Subject: [PATCH 4/7] DT:mdio-mux: Add mdio multiplexer driver node Date: Mon, 30 May 2016 12:40:48 +0530 Message-Id: <1464592251-2688-5-git-send-email-pramod.kumar@broadcom.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1464592251-2688-1-git-send-email-pramod.kumar@broadcom.com> References: <1464592251-2688-1-git-send-email-pramod.kumar@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160530_001105_496240_337C1268 X-CRM114-Status: GOOD ( 11.67 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Pramod Kumar , bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 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 Add integrated MDIO multiplexer driver node which contains two mux PCIe bus and one ethernet bus along with phys lying on these bus. Signed-off-by: Pramod Kumar --- arch/arm64/boot/dts/broadcom/ns2-svk.dts | 12 ++++++++++++ arch/arm64/boot/dts/broadcom/ns2.dtsi | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) diff --git a/arch/arm64/boot/dts/broadcom/ns2-svk.dts b/arch/arm64/boot/dts/broadcom/ns2-svk.dts index ce0ab84..8f6a6cc 100644 --- a/arch/arm64/boot/dts/broadcom/ns2-svk.dts +++ b/arch/arm64/boot/dts/broadcom/ns2-svk.dts @@ -87,3 +87,15 @@ #size-cells = <1>; }; }; + +&mdio_mux_iproc { + mdio@10 { + reg = <0x10>; + #address-cells = <1>; + #size-cells = <0>; + + gphy0: eth-phy@10 { + reg = <0x10>; + }; + }; +}; diff --git a/arch/arm64/boot/dts/broadcom/ns2.dtsi b/arch/arm64/boot/dts/broadcom/ns2.dtsi index 6f81c9d..efc320a 100644 --- a/arch/arm64/boot/dts/broadcom/ns2.dtsi +++ b/arch/arm64/boot/dts/broadcom/ns2.dtsi @@ -330,6 +330,38 @@ <0x65260000 0x1000>; }; + mdio_mux_iproc: mdio_mux_iproc@6602023c { + compatible = "brcm,mdio-mux-iproc"; + reg = <0x6602023c 0x14>; + #address-cells = <1>; + #size-cells = <0>; + mdio-integrated-mux; + + mdio@0 { + reg = <0x0>; + #address-cells = <1>; + #size-cells = <0>; + + pci_phy0: pci-phy@0 { + compatible = "brcm,ns2-pcie-phy"; + reg = <0x0>; + #phy-cells = <0>; + }; + }; + + mdio@7 { + reg = <0x7>; + #address-cells = <1>; + #size-cells = <0>; + + pci_phy1: pci-phy@0 { + compatible = "brcm,ns2-pcie-phy"; + reg = <0x0>; + #phy-cells = <0>; + }; + }; + }; + timer0: timer@66030000 { compatible = "arm,sp804", "arm,primecell"; reg = <0x66030000 0x1000>;