Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp2212183imc; Tue, 12 Mar 2019 09:08:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqwqHJzSYej9/UaHJw5wqtvEGYk39cAY6itYDoHvqMjQJ6F94qxOYeucYNRjVsiRKsdNh9QZ X-Received: by 2002:a17:902:16a4:: with SMTP id h33mr41253526plh.107.1552406907843; Tue, 12 Mar 2019 09:08:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552406907; cv=none; d=google.com; s=arc-20160816; b=xQRVQjRkG5+zIzSqnzrTu34dMQWgWhFz3Jl8i/PmGUL4zVeO77O/7phso/R8DYmAHw QPL9uCme4iQSTYkXJc/CMFjKPValGyySaIAfj54oN5QGY3MOVtlbq8t7XNHWusa/fLX+ aVnfPwsEsjT/xyxR7TYZ+63KCeb3hHNWa3dMFRDYboFIJl8D2IwT2MM76dtcNkdCaylg NgXGp8vjoHWCRgjYQPqZGPljRMg+7zWuhWK9B7h7DACe3xesEnYN/2a1YNW1JerWb1sa YxDj7R/N0KzsOqGevyuorSjnglXAAh4GYExhnxWvnTroLljlKrgkm4SEj7Rip886fJsn RvdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=Jg4iVSKj+OmqvxvVG9IJ9Ht4fZugKIcI91jm1WRMHBk=; b=vYEX5+R4n94lYseUXmoih4tC08eceGPMZ98+BwlTy9Uozc+BGdtSE3AamVNcYus/Ik J3C6WlMkegRkKUNQmEIUXkvTmlT8Ncn1KWWGM8sDPgTTkn9cHZ9qT3YCHyz1cKQwAAK4 hLrEJdU+5i1taXr/qJVsZ5Xje9x9OKQtV2pnLAuoWjaN4693x29TJcp5pYtjWmFUuNWS oa5Gv57NTPObQib2rPeJz/Lx2H7ZwKuE6Y53+/CVIjMBUV38eVcJzf4dm6qnT0gzuG9Z sFP7rQPAuqCoQJjTEIYwRtm6QnCj4rlZK2kJCAtxgoxwJcYvpzuCeykxji6n5UZx48NA izug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=Jc2oZG8p; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id go9si3915144plb.404.2019.03.12.09.08.11; Tue, 12 Mar 2019 09:08:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=Jc2oZG8p; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726418AbfCLQHa (ORCPT + 99 others); Tue, 12 Mar 2019 12:07:30 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:41522 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726850AbfCLQH3 (ORCPT ); Tue, 12 Mar 2019 12:07:29 -0400 Received: by mail-pg1-f196.google.com with SMTP id k11so2160110pgb.8 for ; Tue, 12 Mar 2019 09:07:29 -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=Jg4iVSKj+OmqvxvVG9IJ9Ht4fZugKIcI91jm1WRMHBk=; b=Jc2oZG8pY6zwvsvEAKcSzNhQfOe7vDcU5Zc5AKi57+T/LyxAND65y6LIBoFfPyEzx5 Wxk/RZcAjOEn0s0vAqkPYlOipRCrz4/BohAX+rHeTOysO6mJnNbUTzT/hf184LybD1ZJ qZQoorw4CPRQ8I+sY8CRO235lyyEdC7xNC3/o= 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=Jg4iVSKj+OmqvxvVG9IJ9Ht4fZugKIcI91jm1WRMHBk=; b=dEzlIODxbmiAHsv+SD96kR3rNL28djBUchyV4ZlkXjHRbQGTGxltk6Tg1LQIcFUGFL OjvU/b8bzO+3uNnOX3207gRNX6gI97t7s9hhsY4SOtNWAIeFeqe2Vax5mei8k8U7DWFR b809nVRL60M8exfJufVcytKWcKn5gk/4nwCvli0A6EYar3LOYSnu1vAYOqmGaztYjSSp WPSz2lpvcZxbg6dk54Q6bAgS2HOBeJlEqiD5V5ait5UQ9nsgYy/kLpd8uMo70vXRLaij ohhxgwUnzBbW2VJj6GevwEcB/zHasvA712R8B3xtI7H1W1rFLwn9W3YnwJwZAEn8iFAR RUUQ== X-Gm-Message-State: APjAAAX5KqKVCBlAI2985rIrnD8fnEjdVmuLreQWjWywh/TXdEESiOv4 c7z7Cf5jA3ggDyT7FHNUIgSlqJUGJ/U= X-Received: by 2002:a63:780e:: with SMTP id t14mr18196331pgc.276.1552406847141; Tue, 12 Mar 2019 09:07:27 -0700 (PDT) Received: from mannams-OptiPlex-7010.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id z12sm12875854pgv.0.2019.03.12.09.07.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 12 Mar 2019 09:07:26 -0700 (PDT) From: Srinath Mannam To: Rob Herring , Mark Rutland , Kishon Vijay Abraham I Cc: Tejun Heo , Jayachandran C , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, Srinath Mannam Subject: [PATCH v5 3/3] arm64: dts: Add USB DT nodes for Stingray SoC Date: Tue, 12 Mar 2019 21:36:21 +0530 Message-Id: <1552406781-5180-4-git-send-email-srinath.mannam@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1552406781-5180-1-git-send-email-srinath.mannam@broadcom.com> References: <1552406781-5180-1-git-send-email-srinath.mannam@broadcom.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add DT nodes for - Two xHCI host controllers - Two BDC Broadcom USB device controller - Five USB PHY controllers [xHCI0] [BDC0] [xHCI1] [BDC1] | | | | --------------- ----------------------- | | | | | [SS-PHY0] [HS-PHY0] [SS-PHY1] [HS-PHY2] [HS-PHY1] [SS-PHY0/HS-PHY0] and [SS-PHY1/HS-PHY1] are combo PHYs has one SS and one HS PHYs. [HS-PHY2] is a single HS PHY. xHCI use SS-PHY to detect SS devices and HS-PHY to detect HS/FS/LS devices. BDC use SS-PHY in SS mode and HS-PHY in HS mode. xHCI0 port1 is SS-PHY0, port2 is HS-PHY0. xHCI1 port1 is SS-PHY1, port2 is HS-PHY2 and port3 is HS-PHY1. Signed-off-by: Srinath Mannam --- .../boot/dts/broadcom/stingray/stingray-usb.dtsi | 78 ++++++++++++++++++++++ .../arm64/boot/dts/broadcom/stingray/stingray.dtsi | 1 + 2 files changed, 79 insertions(+) create mode 100644 arch/arm64/boot/dts/broadcom/stingray/stingray-usb.dtsi diff --git a/arch/arm64/boot/dts/broadcom/stingray/stingray-usb.dtsi b/arch/arm64/boot/dts/broadcom/stingray/stingray-usb.dtsi new file mode 100644 index 0000000..a5d3354 --- /dev/null +++ b/arch/arm64/boot/dts/broadcom/stingray/stingray-usb.dtsi @@ -0,0 +1,78 @@ +// SPDX-License-Identifier: (GPL-2.0 or BSD-3-Clause) +/* + *Copyright(c) 2018 Broadcom + */ + usb { + compatible = "simple-bus"; + dma-ranges; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x0 0x68500000 0x00400000>; + + usbphy0: usb-phy@0 { + compatible = "brcm,sr-usb-combo-phy"; + reg = <0x00000000 0x100>; + #address-cells = <1>; + #size-cells = <0>; + #phy-cells = <1>; + status = "disabled"; + }; + + xhci0: usb@1000 { + compatible = "generic-xhci"; + reg = <0x00001000 0x1000>; + interrupts = ; + phys = <&usbphy0 1>, <&usbphy0 0>; + phy-names = "phy0", "phy1"; + dma-coherent; + status = "disabled"; + }; + + bdc0: usb@2000 { + compatible = "brcm,bdc-v0.16"; + reg = <0x00002000 0x1000>; + interrupts = ; + phys = <&usbphy0 0>, <&usbphy0 1>; + phy-names = "phy0", "phy1"; + dma-coherent; + status = "disabled"; + }; + + usbphy1: usb-phy@10000 { + compatible = "brcm,sr-usb-combo-phy"; + reg = <0x00010000 0x100>; + #address-cells = <1>; + #size-cells = <0>; + #phy-cells = <1>; + status = "disabled"; + }; + + usbphy2: usb-phy@20000 { + compatible = "brcm,sr-usb-hs-phy"; + reg = <0x00020000 0x100>; + #address-cells = <1>; + #size-cells = <0>; + #phy-cells = <0>; + status = "disabled"; + }; + + xhci1: usb@11000 { + compatible = "generic-xhci"; + reg = <0x00011000 0x1000>; + interrupts = ; + phys = <&usbphy1 1>, <&usbphy2>, <&usbphy1 0>; + phy-names = "phy0", "phy1", "phy2"; + dma-coherent; + status = "disabled"; + }; + + bdc1: usb@21000 { + compatible = "brcm,bdc-v0.16"; + reg = <0x00021000 0x1000>; + interrupts = ; + phys = <&usbphy2>; + phy-names = "phy0"; + dma-coherent; + status = "disabled"; + }; + }; diff --git a/arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi b/arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi index cfeaa85..21dbb12 100644 --- a/arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi +++ b/arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi @@ -287,6 +287,7 @@ #include "stingray-fs4.dtsi" #include "stingray-sata.dtsi" #include "stingray-pcie.dtsi" + #include "stingray-usb.dtsi" hsls { compatible = "simple-bus"; -- 2.7.4