From patchwork Fri Jun 3 16:03:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pramod Kumar X-Patchwork-Id: 9153445 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 A80A06074E for ; Fri, 3 Jun 2016 16:05:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 99C412780C for ; Fri, 3 Jun 2016 16:05:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8E5B22832F; Fri, 3 Jun 2016 16:05:39 +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 30CD62780C for ; Fri, 3 Jun 2016 16:05:39 +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 1b8rZz-0006RV-1s; Fri, 03 Jun 2016 16:04:11 +0000 Received: from mail-pa0-x232.google.com ([2607:f8b0:400e:c03::232]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1b8rZj-0006Hk-Pf for linux-arm-kernel@lists.infradead.org; Fri, 03 Jun 2016 16:03:57 +0000 Received: by mail-pa0-x232.google.com with SMTP id ec8so9881248pac.0 for ; Fri, 03 Jun 2016 09:03:40 -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=JsxkUf8q1Gab0PtXkHZVBAbkspjUNNXvTrLl56XxiRs=; b=KQhT/LFwzZADlytMFiUtaO8KQZRJRNOR3IAvyZgO8EOVSK1KgmWypOxDyCiX0BgD++ XH68H9wrGGc4U4pUUkomU3WJFtze8dQKnkCib5/C9Wi0BdAYyHarBSj5ypQoJ+AKfXPl hBQ6STgVa6Z/uZMQfDaw/1CbsnvSLU6Cd+zxk= 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=JsxkUf8q1Gab0PtXkHZVBAbkspjUNNXvTrLl56XxiRs=; b=EPhXdedvPQxn9+rCq81ZKAe319JICvXG/eXVB94BEZTEuRkZDvKy/IZfKyKjmio2Qe qxuxS0IKz+VZJcq7+hyo5gb9rc3o+btpaQo/AzDkN5+rojYDZRQy0s+RM4JT2XfCnI3r oLLIKXi2KSWBUju64CptlMM7ZD866crTN2xC3GzBRnvWGqVjuLI7L+HzGq872xHW1Mu2 BL+JDj6nm/EIpRtQOalOVqZ0xYX9p3H7Nsg43B/rhBHK6s/HavuGASpE3zf8ByBf7Jkn FpCnNmPXVYE+nlNcNHKujefUqbNFlDVaJ58xZFSHTelyeBDpt7bHL5REywo7zGs09wrP 1kxg== X-Gm-Message-State: ALyK8tIMGm6zJWJI2BDLWPi5j6HT5kOWHAkvXlQ4BviBWDkpUZw4cmlr8lO1B4bH6i4BF4oj X-Received: by 10.66.240.8 with SMTP id vw8mr6152091pac.62.1464969819427; Fri, 03 Jun 2016 09:03:39 -0700 (PDT) Received: from pramodku-OptiPlex-7010.ban.broadcom.com ([202.140.36.35]) by smtp.gmail.com with ESMTPSA id r64sm9427786pfi.54.2016.06.03.09.03.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 03 Jun 2016 09:03:39 -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 v3 RESEND 4/7] dt:mdio-mux: Add mdio multiplexer driver node Date: Fri, 3 Jun 2016 21:33:03 +0530 Message-Id: <1464969786-22742-5-git-send-email-pramod.kumar@broadcom.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1464969786-22742-1-git-send-email-pramod.kumar@broadcom.com> References: <1464969786-22742-1-git-send-email-pramod.kumar@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160603_090355_906725_AE9937E4 X-CRM114-Status: GOOD ( 11.15 ) 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 | 31 +++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) diff --git a/arch/arm64/boot/dts/broadcom/ns2-svk.dts b/arch/arm64/boot/dts/broadcom/ns2-svk.dts index 54ca40c..71f8503 100644 --- a/arch/arm64/boot/dts/broadcom/ns2-svk.dts +++ b/arch/arm64/boot/dts/broadcom/ns2-svk.dts @@ -132,3 +132,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 ec68ec1..9f20a66 100644 --- a/arch/arm64/boot/dts/broadcom/ns2.dtsi +++ b/arch/arm64/boot/dts/broadcom/ns2.dtsi @@ -263,6 +263,37 @@ IRQ_TYPE_LEVEL_HIGH)>; }; + mdio_mux_iproc: mdio-mux@6602023c { + compatible = "brcm,mdio-mux-iproc"; + reg = <0x6602023c 0x14>; + #address-cells = <1>; + #size-cells = <0>; + + 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>;