Linux-ARM-MSM Archive on lore.kernel.org
 help / color / Atom feed
From: Konrad Dybcio <konradybcio@gmail.com>
To: konradybcio@gmail.com
Cc: lauren.kelly@msn.com, Andy Gross <agross@kernel.org>,
	Bjorn Andersson <bjorn.andersson@linaro.org>,
	Rob Herring <robh+dt@kernel.org>,
	Michael Turquette <mturquette@baylibre.com>,
	Stephen Boyd <sboyd@kernel.org>,
	linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org
Subject: [PATCH v2 04/10] arm64: dts: qcom: msm8994: Add USB support
Date: Wed, 29 Jul 2020 14:00:50 +0200
Message-ID: <20200729120057.35079-5-konradybcio@gmail.com> (raw)
In-Reply-To: <20200729120057.35079-1-konradybcio@gmail.com>

This is a very basic dwc3 configuration (no PHYs yet),
but it works.

Signed-off-by: Konrad Dybcio <konradybcio@gmail.com>
---
 arch/arm64/boot/dts/qcom/msm8994.dtsi | 31 +++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/msm8994.dtsi b/arch/arm64/boot/dts/qcom/msm8994.dtsi
index 6707f898607f..69c99a4cd817 100644
--- a/arch/arm64/boot/dts/qcom/msm8994.dtsi
+++ b/arch/arm64/boot/dts/qcom/msm8994.dtsi
@@ -282,6 +282,37 @@ frame@f9028000 {
 			};
 		};
 
+		usb3: usb@f92f8800 {
+			compatible = "qcom,msm8996-dwc3", "qcom,dwc3";
+			reg = <0xf92f8800 0x400>;
+			#address-cells = <1>;
+			#size-cells = <1>;
+			ranges;
+
+			clocks = <&gcc GCC_USB30_MASTER_CLK>,
+				 <&gcc GCC_SYS_NOC_USB3_AXI_CLK>,
+				 <&gcc GCC_USB30_SLEEP_CLK>,
+				 <&gcc GCC_USB30_MOCK_UTMI_CLK>;
+			clock-names = "core", "iface", "sleep", "mock_utmi", "ref", "xo";
+
+			assigned-clocks = <&gcc GCC_USB30_MOCK_UTMI_CLK>,
+					  <&gcc GCC_USB30_MASTER_CLK>;
+			assigned-clock-rates = <19200000>, <120000000>;
+
+			power-domains = <&gcc USB30_GDSC>;
+			qcom,select-utmi-as-pipe-clk;
+
+			dwc3@f9200000 {
+				compatible = "snps,dwc3";
+				reg = <0xf9200000 0xcc00>;
+				interrupts = <0 131 IRQ_TYPE_LEVEL_HIGH>;
+				snps,dis_u2_susphy_quirk;
+				snps,dis_enblslpm_quirk;
+				maximum-speed = "high-speed";
+				dr_mode = "peripheral";
+			};
+		};
+
 		sdhc1: sdhci@f9824900 {
 			compatible = "qcom,sdhci-msm-v4";
 			reg = <0xf9824900 0x1a0>, <0xf9824000 0x800>;
-- 
2.27.0


  parent reply index

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-29 12:00 [PATCH v2 00/10] msm8992/4 updates Konrad Dybcio
2020-07-29 12:00 ` [PATCH v2 01/10] arm64: dts: qcom: msm8992: Add support for SDHCI2 Konrad Dybcio
2020-07-29 12:00 ` [PATCH v2 02/10] arm64: dts: qcom: msm8992: Add BLSP_I2C1 support Konrad Dybcio
2020-07-29 12:00 ` [PATCH v2 03/10] arm64: dts: qcom: talkman: Add Synaptics RMI4 touchscreen Konrad Dybcio
2020-07-29 12:00 ` Konrad Dybcio [this message]
2020-07-29 12:00 ` [PATCH v2 05/10] arm64: dts: qcom: msm8992: Add USB support Konrad Dybcio
2020-07-29 12:00 ` [PATCH v2 06/10] arm64: dts: qcom: kitakami: Add Synaptics touchscreen Konrad Dybcio
2020-07-29 12:00 ` [PATCH v2 07/10] arm64: dts: qcom: msm8994: Add SDHCI2 node Konrad Dybcio
2020-07-29 12:00 ` [PATCH v2 08/10] arm64: dts: qcom: kitakami: Enable SDHCI2 Konrad Dybcio
2020-07-29 12:00 ` [PATCH v2 09/10] clk: qcom: gcc-msm8994: Fix up the driver and modernize it Konrad Dybcio
2020-07-29 12:04   ` Konrad Dybcio
2020-07-29 12:00 ` [PATCH v2 10/10] arm64: dts: qcom: msm8992/4: Add clocks property to gcc node Konrad Dybcio
2020-08-04 10:30 ` [PATCH v2 00/10] msm8992/4 updates Konrad Dybcio
2020-08-14 15:26   ` Konrad Dybcio

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200729120057.35079-5-konradybcio@gmail.com \
    --to=konradybcio@gmail.com \
    --cc=agross@kernel.org \
    --cc=bjorn.andersson@linaro.org \
    --cc=devicetree@vger.kernel.org \
    --cc=lauren.kelly@msn.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=robh+dt@kernel.org \
    --cc=sboyd@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Linux-ARM-MSM Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-arm-msm/0 linux-arm-msm/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-arm-msm linux-arm-msm/ https://lore.kernel.org/linux-arm-msm \
		linux-arm-msm@vger.kernel.org
	public-inbox-index linux-arm-msm

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-arm-msm


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git