From patchwork Wed Jul 26 22:56:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Mason X-Patchwork-Id: 9865971 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 8DCF46038F for ; Wed, 26 Jul 2017 22:59:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7D9DE287C6 for ; Wed, 26 Jul 2017 22:59:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 70C48287D2; Wed, 26 Jul 2017 22:59:19 +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 23DB6287C6 for ; Wed, 26 Jul 2017 22:59:18 +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=kZONNwalHT87sZ8cAc6B3mscD/ZlrDF1yE02OwqEj38=; b=GHa7m9QjK8WM5NlGoPHC7qopTZ NYvSyIzO/dr4FIgiz6iGBAD6OYyuQSz/ETRKZ0k/RSUdbk2GmRhmJcjkPCnalNwDEa8ajWT6G9nRq uY2Nydj3/zQ/TPd1Uynds3IQA/OlY2c0ulY+6lDXZ8GAV39iu2ItHu+FMfCZexNstYdDL27tHT+jx jjv/xqe6904l3+cM5M68ocpcu9BlLpYiFIS+GrHUumA4KmbQLxVTpcazX6pn0xmVBfuFvXH0z6biC D6aKfAHV+0jebTvBlopS1wlHGQlqnIcFYNmQSYDFCnRkP8tlgYa/NLr4ZNAHT81q+fAgZAsrR8qCz 59+uoexQ==; 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 1daVGU-0005rf-M7; Wed, 26 Jul 2017 22:58:50 +0000 Received: from mail-qk0-x229.google.com ([2607:f8b0:400d:c09::229]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1daVF3-0004W9-Di for linux-arm-kernel@lists.infradead.org; Wed, 26 Jul 2017 22:57:51 +0000 Received: by mail-qk0-x229.google.com with SMTP id z18so13325459qka.4 for ; Wed, 26 Jul 2017 15:57:01 -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=SU93ffM2rdIcP+Fhptehqm2B3QULq1Rv3qEPFXzTtjA=; b=grhOcOMrbiKiXGDUgyRe3U74ZlOQDvfdsBi/GlyU5+oYRdI38xwosi8cZY0YtIFTI6 6rZU77E149wYnTmEWC0ty2c35g/xOzkODuNHHJoKjUXulvg6QeG9np+tWen4d4m4W5ZV Ekcz3IKmUlva/fSvVN2BxiJE+/Np6M0QsFqxg= 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=SU93ffM2rdIcP+Fhptehqm2B3QULq1Rv3qEPFXzTtjA=; b=jbWjvN40oaMrUifoxsf2h7Zurl9b6lmxCK1UFSIUcI/W/iaKE2degIhKiFLENWsnfg fjcr+zvZ91omwCJ2jXMqGcyRY96zLICWoNDfWS3nZwGl72M6Lv8hzynMYrt/i8bBzmQ4 zE+NTjNyR7qw3PdvRFtsyTgE4Fd8o/m2ROGbwTJ+mzbpr1OjdXsjavbMVuNbaOGwpEji Plru1UubzI18xDCzVFaNW/f+riFjwdZO0HTVXixZfbd+Ao7DK+kPHJyF6NFrz/sg0QEm ikTXeDj734CeA8fzHnlyrZEeiHpMBdOj1H3ow1GMK0J+w39bEt91+uz6Gy4qsuCMiobE WymQ== X-Gm-Message-State: AIVw112FCp57v4koPaWTQGDs3+vwvs+nNPcnU1AIYP03jcYzAw1YcOXg zRdPBW19brFIIx04 X-Received: by 10.55.19.29 with SMTP id d29mr3435648qkh.296.1501109819887; Wed, 26 Jul 2017 15:56:59 -0700 (PDT) Received: from venom ([192.19.231.250]) by smtp.gmail.com with ESMTPSA id d17sm4886447qta.36.2017.07.26.15.56.57 (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 26 Jul 2017 15:56:59 -0700 (PDT) Received: by venom (sSMTP sendmail emulation); Wed, 26 Jul 2017 18:56:56 -0400 From: Jon Mason To: Kishon Vijay Abraham I , Florian Fainelli , Rob Herring , Mark Rutland Subject: [PATCH v2 6/6] arm64: dts: ns2: Add USB3 Support Date: Wed, 26 Jul 2017 18:56:27 -0400 Message-Id: <1501109787-15489-7-git-send-email-jon.mason@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1501109787-15489-1-git-send-email-jon.mason@broadcom.com> References: <1501109787-15489-1-git-send-email-jon.mason@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170726_155722_866224_702C7120 X-CRM114-Status: GOOD ( 10.62 ) 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 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 From: Yendapally Reddy Dhananjaya Reddy Add USB3 support to the Northstar2 Device tree files Signed-off-by: Yendapally Reddy Dhananjaya Reddy Signed-off-by: Jon Mason --- arch/arm64/boot/dts/broadcom/ns2-svk.dts | 16 +++++++++ arch/arm64/boot/dts/broadcom/ns2-xmc.dts | 8 +++++ arch/arm64/boot/dts/broadcom/ns2.dtsi | 59 ++++++++++++++++++++++++++++++++ 3 files changed, 83 insertions(+) diff --git a/arch/arm64/boot/dts/broadcom/ns2-svk.dts b/arch/arm64/boot/dts/broadcom/ns2-svk.dts index ec19fbf928a1..7cd2ef77103f 100644 --- a/arch/arm64/boot/dts/broadcom/ns2-svk.dts +++ b/arch/arm64/boot/dts/broadcom/ns2-svk.dts @@ -234,3 +234,19 @@ }; }; }; + +&usb3_phy0 { + status = "okay"; +}; + +&usb3_phy1 { + status = "okay"; +}; + +&xhci0 { + status = "okay"; +}; + +&xhci1 { + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/broadcom/ns2-xmc.dts b/arch/arm64/boot/dts/broadcom/ns2-xmc.dts index ab4ae1a32fab..8e8feb7db4ba 100644 --- a/arch/arm64/boot/dts/broadcom/ns2-xmc.dts +++ b/arch/arm64/boot/dts/broadcom/ns2-xmc.dts @@ -189,3 +189,11 @@ &uart3 { status = "okay"; }; + +&usb3_phy0 { + status = "okay"; +}; + +&xhci0 { + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/broadcom/ns2.dtsi b/arch/arm64/boot/dts/broadcom/ns2.dtsi index 35c8457e3d1f..838010f8e58b 100644 --- a/arch/arm64/boot/dts/broadcom/ns2.dtsi +++ b/arch/arm64/boot/dts/broadcom/ns2.dtsi @@ -343,6 +343,11 @@ <0x660009b0 0x40>; }; + cdru_usb3_ctrl: cdru_usb3_ctrl@6501d144 { + compatible = "brcm,cdru-usb3-ctrl"; + reg = <0x6501d144 0x4>; + }; + gpio_aon: gpio@65024800 { compatible = "brcm,iproc-gpio"; reg = <0x65024800 0x50>, @@ -460,6 +465,11 @@ }; }; + icfg_usb3: icfg_usb3@66000900 { + compatible = "brcm,icfg-usb"; + reg = <0x66000900 0x60>; + }; + usbdrd_phy: phy@66000960 { #phy-cells = <0>; compatible = "brcm,ns2-drd-phy"; @@ -501,6 +511,31 @@ }; }; + mdio@1 { + reg = <0x1>; + #address-cells = <1>; + #size-cells = <0>; + + usb3_phy: usb3_phy@0 { + compatible = "brcm,ns2-usb3-phy"; + reg = <0x0>; + #address-cells = <1>; + #size-cells = <0>; + + usb3_phy0: usb3_phy@0 { + reg = <0>; + #phy-cells = <0>; + status = "disabled"; + }; + + usb3_phy1: usb_phy@1 { + reg = <1>; + #phy-cells = <0>; + status = "disabled"; + }; + }; + }; + mdio@7 { reg = <0x7>; #address-cells = <1>; @@ -666,6 +701,26 @@ reg = <0x66220000 0x28>; }; + xhci0: usb@66300000 { + compatible = "generic-xhci"; + reg = <0x66300000 0x1000>; + interrupts = ; + phys = <&usb3_phy0>; + phy-names = "usb"; + dma-coherent; + status = "disabled"; + }; + + xhci1: usb@66310000 { + compatible = "generic-xhci"; + reg = <0x66310000 0x1000>; + interrupts = ; + phys = <&usb3_phy1>; + phy-names = "usb"; + dma-coherent; + status = "disabled"; + }; + sata_phy: sata_phy@663f0100 { compatible = "brcm,iproc-ns2-sata-phy"; reg = <0x663f0100 0x1f00>, @@ -761,5 +816,9 @@ #size-cells = <0>; }; + usb3_idm: idm@67000000 { + compatible = "brcm,usb3-idm"; + reg = <0x67000000 0x2000>; + }; }; };