Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp420190imp; Wed, 20 Feb 2019 02:36:53 -0800 (PST) X-Google-Smtp-Source: AHgI3IZzUEsgClr5TDdIS3UNfvne2rEXQvXflSgf74gM9tn0BP8LvNnhSIB/DLmyJ8n1hgxrKxrm X-Received: by 2002:a63:6a07:: with SMTP id f7mr28590230pgc.118.1550659013031; Wed, 20 Feb 2019 02:36:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550659013; cv=none; d=google.com; s=arc-20160816; b=hcChTRN2y1wlAAirzU80i+b2Xig8Id60tfy/Fubll4I4WwUI7BJlzX68o+jCkC/X4W c0Tj1S0F7PJyU9xox8P2VTrdnRAcVJohrb0AhAZoNwHGJ/dq37109aIbACsLZQjOnQoe X8kRpeLdpeAfCcqsYPbQxWRODbZ5Mc4oPrPUvr8+C9QFq62gfAYf23bOn+tBjlLagsZ5 ejyEwLp4AySQLW3Tij5s1+N+Kujp7iGq+YNgt5R7AyPDyX+YarXQlZNF9a1/tB2htyAO rytNUxwT20lqPWYpijXl84oUtjR3HfwYfLxp1A92B9XzQNDs53Jk6Cvvkap2WXipsHUl 6U9w== 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=+u7d9XYBQNeSXVdel6GJuhH8wUXXfIM6H4iGo0fZ/ak=; b=1DnzK+qfxPxw13zPKgaFExUSSNlextic8P/v1C3uE5zYzkVONPKzxZnEJd6rbcd2Jn 8+SH+wnV7FEp2iYiZ3vGBdL4dTkyY0HD9iu49ivHcgfRropWsf+cvh5NqVgEQph5u9X/ ScuipsPEVnrQK/OKXmTEGgs+lUwNAHqqUPd7qE81ed3o/yEUgCLnu9vGzf7Mlb3x+Cdu V9+9itjSxR/KRnQz7+m2WlNAiVaRK17q2yDKh4ud3iFcNr/PRZF9oYBsE8H/uC2OTYll /V2YUikIERLvobO9z15+9xRyHyE5YbSB50TG+c2gLxfU3u9QkIgRrAIgjQ2o78B7ub8C O5wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=JbO5IoLH; 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 o24si6423306pgh.114.2019.02.20.02.36.37; Wed, 20 Feb 2019 02:36:53 -0800 (PST) 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=JbO5IoLH; 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 S1727590AbfBTKer (ORCPT + 99 others); Wed, 20 Feb 2019 05:34:47 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:34014 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727556AbfBTKep (ORCPT ); Wed, 20 Feb 2019 05:34:45 -0500 Received: by mail-pl1-f195.google.com with SMTP id d15so4871554plr.1 for ; Wed, 20 Feb 2019 02:34:45 -0800 (PST) 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=+u7d9XYBQNeSXVdel6GJuhH8wUXXfIM6H4iGo0fZ/ak=; b=JbO5IoLHdiHtdsWfamBh7Tvxqe0XwvEvppak4WN9PRe+d9TqLvsaudzy1PTBrQEmPm ihqMOzjkuG07qK1Po7//nKilbRqgxFElENokKJWp8IfQzmxf4fr3RKoU0+i33PgZtR8K IuZJnVDRvuBVl2T91zVn1Zly3i8mmFEuiBm5M= 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=+u7d9XYBQNeSXVdel6GJuhH8wUXXfIM6H4iGo0fZ/ak=; b=WcJ6IOc/kEdx/xorK83eWYmx8cEWfsfRTgm/vW6CD+m5WKq1VifhqTKGasPT5HJbO2 YPyZmezBfDBNKY2d6xjICmRex82fsWKHorzS1ow/gUCRhrvPx+Yx+6mWp+NWIiMPtgWh DdNenarm3wEYG1j+ro5XxzG1fuvDzCgKZXp92mmad9hUegisNKiDEzX3IW9+R2iCSlgd zJfJP5yOVzcwKwzqlPfbHFOe5PvrzB5kHhXZT3pLXTFbGNbK8NiR8HWpRE5txlUADUqm ml0M5uS6BabQI8+TcKihb6WvMqAaPQn49+BLxPRePcpVQ4NRKEns9E+SM1rRkPrntB1M krIw== X-Gm-Message-State: AHQUAuaXsynld3INmHb1SU2QRb1LpQmVWPajuaarf1UDCUK/riK9f9dB o/2+lG7NUgxcViMKEHWUq0bv7GRV8VM= X-Received: by 2002:a17:902:f64:: with SMTP id 91mr35960517ply.132.1550658884685; Wed, 20 Feb 2019 02:34:44 -0800 (PST) Received: from mannams-OptiPlex-7010.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id i71sm57426796pfi.170.2019.02.20.02.34.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 20 Feb 2019 02:34:43 -0800 (PST) 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 v4 3/3] arm64: dts: Add USB DT nodes for Stingray SoC Date: Wed, 20 Feb 2019 16:04:02 +0530 Message-Id: <1550658842-19167-4-git-send-email-srinath.mannam@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1550658842-19167-1-git-send-email-srinath.mannam@broadcom.com> References: <1550658842-19167-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 Reviewed-by: Florian Fainelli Reviewed-by: Scott Branden --- .../boot/dts/broadcom/stingray/stingray-usb.dtsi | 95 ++++++++++++++++++++++ .../arm64/boot/dts/broadcom/stingray/stingray.dtsi | 1 + 2 files changed, 96 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..c0748ee --- /dev/null +++ b/arch/arm64/boot/dts/broadcom/stingray/stingray-usb.dtsi @@ -0,0 +1,95 @@ +// 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>; + status = "disabled"; + + usb0_phy0: phy@0 { + reg = <0>; + #phy-cells = <0>; + }; + usb0_phy1: phy@1 { + reg = <1>; + #phy-cells = <0>; + }; + + }; + + xhci0: usb@1000 { + compatible = "generic-xhci"; + reg = <0x00001000 0x1000>; + interrupts = ; + phys = <&usb0_phy1>, <&usb0_phy0>; + phy-names = "phy0", "phy1"; + dma-coherent; + status = "disabled"; + }; + + bdc0: usb@2000 { + compatible = "brcm,bdc-v0.16"; + reg = <0x00002000 0x1000>; + interrupts = ; + phys = <&usb0_phy1>, <&usb0_phy0>; + 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>; + status = "disabled"; + + usb1_phy0: phy@0 { + reg = <0>; + #phy-cells = <0>; + }; + usb1_phy1: phy@1 { + reg = <1>; + #phy-cells = <0>; + }; + }; + + 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 = <&usb1_phy1>, <&usbphy2>, <&usb1_phy0>; + 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