Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp1188194img; Tue, 19 Mar 2019 02:18:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqxromeocaUVcHnA3+/eZ6ri1koxhZOXt7GDTOOY8lfl1+6EYtokw2CHx35aK2/pA+r5o3ef X-Received: by 2002:a65:4981:: with SMTP id r1mr871680pgs.62.1552987099056; Tue, 19 Mar 2019 02:18:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552987099; cv=none; d=google.com; s=arc-20160816; b=tUoly6sfFotPgjrHyaIB3fn7iq4FHxNlCAsP+OE1nh/mEY+X0t9zPkMdVqj2xmqvrq IOsH9WGIHlFg4IQmxCc5J3YCughLXAU/eYc9ckIRXJ8JbRBOz6ocPZRmXqbLPN/CiBBP xoiKeMFk6OkccTNMm8HNCr0zy9lPksGtHht3xsWdWtZPKzhrrHyouL6jubh2HwSP061w HuACNAgkrrdzyerKNXJVtTA+z+wRlPU3wZMn2qjmXcG2FAhdhWrolaebeg8H9T902Wff VhTM2ldbxdWLKHOrayty7tQ9RiMpX0b5WW3KOulR1J3CW1ZmSpAQbFzboXqFEerbRiHW Uv3w== 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=Yta3K0Zdx35RD0mlt7dDQK3LE8z4Fq3s3CEHa4rCWFc=; b=0K6+xNVKcWRdbADlIMukdW6WnFc4DlqyVfZ2kHkkzrRNZVbJwiC2ZtlANyoTi8Tx8k LhdmKdeNQVTYsUCu//6S0jMWGZQNb80Z9m0aeQCFPryNqGxFl6YwlFBffMjwiPaNSqH7 qvyOkHl9wBS0cqNm72hSClnWf+RBwjilIx6PxmizU3lF+BwnwTbU+oideIsT47OtiK9Z CNulguh6hSmGgLfC4XYTKN6eo8xo3g14C/yCE9mFSzsBYRjLzvAaptday9mvQNLj+DvO 4BA7yCpTKP950wye18xkNGEHHyceGlBpgldE1RYWG3WNYuf8JpIEmB5cMwCcNFvk197x TGUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=c6zG+A5P; 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 y17si1402725pfe.192.2019.03.19.02.18.03; Tue, 19 Mar 2019 02:18:19 -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=c6zG+A5P; 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 S1727569AbfCSJQe (ORCPT + 99 others); Tue, 19 Mar 2019 05:16:34 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:38068 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727532AbfCSJQd (ORCPT ); Tue, 19 Mar 2019 05:16:33 -0400 Received: by mail-wm1-f68.google.com with SMTP id a188so15556406wmf.3 for ; Tue, 19 Mar 2019 02:16:32 -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=Yta3K0Zdx35RD0mlt7dDQK3LE8z4Fq3s3CEHa4rCWFc=; b=c6zG+A5PuKVcfhkK8qOn4X0YBvV2T9XIZSqu5dDbLPTSccL/7jvpEQ24MJtPMSt4zP vKb0McZ6qeLWMGyDFYmAEKZaH6jg+Pqc8dmP61K4vSJbIqZxEr0ShSI/jhgSCCIrdtAx AZ5eaPLxsgNzSXza47VkN0U8bi4HoQAgT1IZQ= 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=Yta3K0Zdx35RD0mlt7dDQK3LE8z4Fq3s3CEHa4rCWFc=; b=itmDjzFF11U1kvDcnvkDtpcPyQ7lwT0wJ/VFmjBXC8ycFvVFdX6cc8QpS2+GT0R7Kn qStQJvP+XAinxqL7nvuJME6gyd3+6qt7qCprcro0jclPYs2+2WL5AlIYZQ7s6rjCfyNn RKjuPZug4SIdU7lLnjkr9WuJRP0ZG5g+VTjjTUGaf8aRsrs/p79d7rK5R4VbhExFWNvQ FiN2YD2Ois6YUakg05JKUH+ITo5TWBUPn3OxAy/u01rdO8/EL4yYdHBlWPXWxDkOkGKY pSBYx0TIYQ2Hg8itq4siek5TlZgVUY/cfSoI2TcnYyG6+xungdHCXAgYIh8Vq0mmCee6 NMjg== X-Gm-Message-State: APjAAAUaKGovcMhWMxiiHeIyPhM3fzOXieAag9ZZZepbRYbT7ZfYCz8U Uvwu1maLQfksi2ooA71ywJEj7w== X-Received: by 2002:a1c:c90e:: with SMTP id f14mr2494392wmb.23.1552986991311; Tue, 19 Mar 2019 02:16:31 -0700 (PDT) Received: from mannams-OptiPlex-7010.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id w10sm14875743wrn.32.2019.03.19.02.16.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 19 Mar 2019 02:16:30 -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, linux-arm-kernel@lists.infradead.org, Srinath Mannam Subject: [PATCH v6 3/3] arm64: dts: Add USB DT nodes for Stingray SoC Date: Tue, 19 Mar 2019 14:45:44 +0530 Message-Id: <1552986944-3398-4-git-send-email-srinath.mannam@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1552986944-3398-1-git-send-email-srinath.mannam@broadcom.com> References: <1552986944-3398-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 | 72 ++++++++++++++++++++++ .../arm64/boot/dts/broadcom/stingray/stingray.dtsi | 1 + 2 files changed, 73 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..55259f9 --- /dev/null +++ b/arch/arm64/boot/dts/broadcom/stingray/stingray-usb.dtsi @@ -0,0 +1,72 @@ +// 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>; + #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>; + #phy-cells = <1>; + status = "disabled"; + }; + + usbphy2: usb-phy@20000 { + compatible = "brcm,sr-usb-hs-phy"; + reg = <0x00020000 0x100>; + #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