From patchwork Sat Jul 29 04:42:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abhishek Shah X-Patchwork-Id: 9869751 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 A124360353 for ; Sat, 29 Jul 2017 04:46:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 94ACC288D4 for ; Sat, 29 Jul 2017 04:46:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8942B288D7; Sat, 29 Jul 2017 04:46:05 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 372DE288F7 for ; Sat, 29 Jul 2017 04:46:03 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=l1pnQiegA4SceVGqLxb9qHu/kQ9z471x6QxfH3IKnRU=; b=iETZjwgZC4vc0YIXDDeTL72A8O w74yXHlo2mD/hFWokblMCOvpgBKti+3ML1U2VpJINKqkpiXDuxhMMnQ42C+DIiRA9krN7kIVjuDmm I/H5+wkw/ctdRhycZ/7uf/izA21QJ6eL0MrVrPgCMh8RrRiU+RroOof6Dx/+Jt2w1/Ok1yyc2LSBr l3FC6YirfBjDU53Gvcd8wxHP3BctFVg2JfC/eBkg4GgaJTdlTmhgoqE51U4mMPO6Cygaj1ncDOfHO MVM3idZpUs8Y9sMNhSCs5HMwCAFkPUEBtkj7HOJvlnbk633VqTmx3ztDyiCM6S345MC6NLOPjBm2R yVfevhrA==; 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 1dbJco-0006qU-TF; Sat, 29 Jul 2017 04:45:14 +0000 Received: from mail-wm0-x22a.google.com ([2a00:1450:400c:c09::22a]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dbJbB-0004vS-7a for linux-arm-kernel@lists.infradead.org; Sat, 29 Jul 2017 04:43:35 +0000 Received: by mail-wm0-x22a.google.com with SMTP id m85so130709361wma.1 for ; Fri, 28 Jul 2017 21:43:12 -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=w21rpbKZ1ycnfKurrCYPsa+igC5Og20G4JXZBqP6ykg=; b=Wx/hX1sGdYb5lXEZEMRzflRemcetXUuyG//Jih+tUTWgnjvTrpg4lbVtyWAB4bRinU QeRBJXDrE5JOsXtGD1gv5fuwtC91LCRHa6A1vSbxYauf6ue9RidxJqXxca3nymeSeK/v sEuj2ppaWquzEHdRVtgP/5whWe509q/6BoB4Q= 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; bh=w21rpbKZ1ycnfKurrCYPsa+igC5Og20G4JXZBqP6ykg=; b=pPdqusJOgUu+XE4eviuXta/NBnFS0eYMVFF/fzSuW/+xocPZDTlGaqkKb9S9Pmrqwh GpOU9PjUCXYXJDewviOXTkZPHR1zLvr8VcxulUMQAA8n2Pir4WM/OS+jhnTXeIAtXKuJ gToCnv7FGXsGP8DVNTIXk7RU1PszEAS//qNKoMcBT0Qf1+mqais4kqA1uAq7U4UtUEQc AXPBcwEqO+uzgeVIY7IX/M4+d7RuYopMw5GCP0JvcyxaQpQYOTOBeAlLpP/iLkXf0Db5 T0d7lJFTifDVRWgWOQ1fClIQVGWOIqTtg8P9Z7kRx5gmLTNhRULa6aLDlBxKqPQS6i8y WEDA== X-Gm-Message-State: AIVw1100YWD8dxFKfSocOLmbUbCklLSufVyZJPebBcnrpIGQoJVcYmSg ynoeWsqS9sVTllYk X-Received: by 10.28.33.66 with SMTP id h63mr7444410wmh.124.1501303391315; Fri, 28 Jul 2017 21:43:11 -0700 (PDT) Received: from ashah1-OptiPlex-7010.dhcp.avagotech.net ([192.19.237.250]) by smtp.gmail.com with ESMTPSA id p19sm19324566wma.40.2017.07.28.21.43.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 28 Jul 2017 21:43:10 -0700 (PDT) From: Abhishek Shah To: Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , Ray Jui , Scott Branden , Jon Mason Subject: [PATCH 4/7] arm64: dts: Add DT node to enable BGMAC driver on Stingray Date: Sat, 29 Jul 2017 10:12:26 +0530 Message-Id: <1501303349-30007-5-git-send-email-abhishek.shah@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1501303349-30007-1-git-send-email-abhishek.shah@broadcom.com> References: <1501303349-30007-1-git-send-email-abhishek.shah@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170728_214333_466324_26018910 X-CRM114-Status: GOOD ( 10.53 ) 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, bcm-kernel-feedback-list@broadcom.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Abhishek Shah 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 This patch adds DT node to enable BGMAC driver on Stingray Signed-off-by: Abhishek Shah Reviewed-by: Ray Jui Reviewed-by: Oza Oza Reviewed-by: Scott Branden --- arch/arm64/boot/dts/broadcom/stingray/bcm958742-base.dtsi | 14 ++++++++++++++ arch/arm64/boot/dts/broadcom/stingray/bcm958742k.dts | 4 ++++ arch/arm64/boot/dts/broadcom/stingray/bcm958742t.dts | 4 ++++ arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi | 9 +++++++++ 4 files changed, 31 insertions(+) diff --git a/arch/arm64/boot/dts/broadcom/stingray/bcm958742-base.dtsi b/arch/arm64/boot/dts/broadcom/stingray/bcm958742-base.dtsi index 5dca7d1..cacc25e 100644 --- a/arch/arm64/boot/dts/broadcom/stingray/bcm958742-base.dtsi +++ b/arch/arm64/boot/dts/broadcom/stingray/bcm958742-base.dtsi @@ -72,6 +72,14 @@ <0x00000008 0x80000000 0x1 0x80000000>; /* 6G @ 34G */ }; +&mdio_mux_iproc { + mdio@10 { + gphy0: eth-phy@10 { + reg = <0x10>; + }; + }; +}; + &uart1 { status = "okay"; }; @@ -102,6 +110,12 @@ }; }; +&enet { + phy-mode = "rgmii-id"; + phy-handle = <&gphy0>; + status = "okay"; +}; + &nand { status = "ok"; nandcs@0 { diff --git a/arch/arm64/boot/dts/broadcom/stingray/bcm958742k.dts b/arch/arm64/boot/dts/broadcom/stingray/bcm958742k.dts index 5671669..eb6f08c 100644 --- a/arch/arm64/boot/dts/broadcom/stingray/bcm958742k.dts +++ b/arch/arm64/boot/dts/broadcom/stingray/bcm958742k.dts @@ -39,6 +39,10 @@ model = "Stingray Combo SVK (BCM958742K)"; }; +&gphy0 { + enet-phy-lane-swap; +}; + &uart2 { status = "okay"; }; diff --git a/arch/arm64/boot/dts/broadcom/stingray/bcm958742t.dts b/arch/arm64/boot/dts/broadcom/stingray/bcm958742t.dts index 6ebe399..5084b03 100644 --- a/arch/arm64/boot/dts/broadcom/stingray/bcm958742t.dts +++ b/arch/arm64/boot/dts/broadcom/stingray/bcm958742t.dts @@ -38,3 +38,7 @@ compatible = "brcm,bcm958742t", "brcm,stingray"; model = "Stingray SST100 (BCM958742T)"; }; + +&gphy0 { + enet-phy-lane-swap; +}; diff --git a/arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi b/arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi index 19ad887..1c6cc2d 100644 --- a/arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi +++ b/arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi @@ -548,6 +548,15 @@ iommus = <&smmu 0x6000 0x0000>; }; + enet: ethernet@00340000{ + compatible = "brcm,amac"; + reg = <0x00340000 0x1000>; + reg-names = "amac_base"; + dma-coherent; + interrupts = ; + status= "disabled"; + }; + nand: nand@00360000 { compatible = "brcm,nand-iproc", "brcm,brcmnand-v6.1"; reg = <0x00360000 0x600>,