Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1578081

[PATCH v2 2/6] arm64: dts: rockchip: support dwc3 USB for rk3399

From Brian Norris <briannorris@chromium.org>
Newsgroups linux.kernel
Subject [PATCH v2 2/6] arm64: dts: rockchip: support dwc3 USB for rk3399
Date 2017-02-10 02:20 +0100
Message-ID <t982u-5bz-5@gated-at.bofh.it> (permalink)
References <t982t-5bz-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Add the dwc3 usb needed node information for rk3399.

Signed-off-by: Brian Norris <briannorris@chromium.org>
---
Somewhat rewritten from Caesar's reposting (v2) of my patch.
Changes (?? -> v1):
 * Include USB2 PHY (which is now in -next)
 * Don't include USB3 PHY, as extcon support is not ready yet
 * Drop non-upstream properties
 * Fixup whitespace a bit

v1 -> v2:
 * add phy_type = "utmi_wide"
 * sort by unit address
 * match upstream clock names and delete unnecessary ones
---
 arch/arm64/boot/dts/rockchip/rk3399.dtsi | 54 ++++++++++++++++++++++++++++++++
 1 file changed, 54 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi
index 8e6d1bdeb9c3..a9702c29d71a 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi
@@ -371,6 +371,60 @@
 		status = "disabled";
 	};
 
+	usbdrd3_0: usb@fe800000 {
+		compatible = "rockchip,rk3399-dwc3";
+		#address-cells = <2>;
+		#size-cells = <2>;
+		ranges;
+		clocks = <&cru SCLK_USB3OTG0_REF>, <&cru SCLK_USB3OTG0_SUSPEND>,
+			 <&cru ACLK_USB3OTG0>, <&cru ACLK_USB3_GRF>;
+		clock-names = "ref_clk", "suspend_clk",
+			      "bus_clk", "grf_clk";
+		status = "disabled";
+
+		usbdrd_dwc3_0: dwc3 {
+			compatible = "snps,dwc3";
+			reg = <0x0 0xfe800000 0x0 0x100000>;
+			interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH 0>;
+			dr_mode = "otg";
+			phys = <&u2phy0_otg>;
+			phy-names = "usb2-phy";
+			phy_type = "utmi_wide";
+			snps,dis_enblslpm_quirk;
+			snps,dis-u2-freeclk-exists-quirk;
+			snps,dis_u2_susphy_quirk;
+			snps,dis-del-phy-power-chg-quirk;
+			status = "disabled";
+		};
+	};
+
+	usbdrd3_1: usb@fe900000 {
+		compatible = "rockchip,rk3399-dwc3";
+		#address-cells = <2>;
+		#size-cells = <2>;
+		ranges;
+		clocks = <&cru SCLK_USB3OTG1_REF>, <&cru SCLK_USB3OTG1_SUSPEND>,
+			 <&cru ACLK_USB3OTG1>, <&cru ACLK_USB3_GRF>;
+		clock-names = "ref_clk", "suspend_clk",
+			      "bus_clk", "grf_clk";
+		status = "disabled";
+
+		usbdrd_dwc3_1: dwc3 {
+			compatible = "snps,dwc3";
+			reg = <0x0 0xfe900000 0x0 0x100000>;
+			interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH 0>;
+			dr_mode = "otg";
+			phys = <&u2phy1_otg>;
+			phy-names = "usb2-phy";
+			phy_type = "utmi_wide";
+			snps,dis_enblslpm_quirk;
+			snps,dis-u2-freeclk-exists-quirk;
+			snps,dis_u2_susphy_quirk;
+			snps,dis-del-phy-power-chg-quirk;
+			status = "disabled";
+		};
+	};
+
 	gic: interrupt-controller@fee00000 {
 		compatible = "arm,gic-v3";
 		#interrupt-cells = <4>;
-- 
2.11.0.483.g087da7b7c-goog

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 0/6] arm64: dts: rockchip: support Google Kevin Brian Norris <briannorris@chromium.org> - 2017-02-10 02:20 +0100
  [PATCH v2 2/6] arm64: dts: rockchip: support dwc3 USB for rk3399 Brian Norris <briannorris@chromium.org> - 2017-02-10 02:20 +0100
    Re: [PATCH v2 2/6] arm64: dts: rockchip: support dwc3 USB for rk3399 Heiko Stuebner <heiko@sntech.de> - 2017-02-10 23:10 +0100
  [PATCH v2 1/6] arm64: dts: Add symlinks for cros-ec-keyboard and cros-ec-sbs Brian Norris <briannorris@chromium.org> - 2017-02-10 02:20 +0100
  [PATCH v2 6/6] arm64: dts: rockchip: sort rk3399 by unit address Brian Norris <briannorris@chromium.org> - 2017-02-10 02:20 +0100
    Re: [PATCH v2 6/6] arm64: dts: rockchip: sort rk3399 by unit address Heiko Stuebner <heiko@sntech.de> - 2017-02-10 22:50 +0100
  [PATCH v2 3/6] dt-bindings: Document rk3399 Gru/Kevin Brian Norris <briannorris@chromium.org> - 2017-02-10 02:20 +0100
  [PATCH v2 5/6] arm64: dts: rockchip: describe Gru/Kevin OPPs + CPU regulators Brian Norris <briannorris@chromium.org> - 2017-02-10 02:20 +0100
  [PATCH v2 4/6] arm64: dts: rockchip: add Gru/Kevin DTS Brian Norris <briannorris@chromium.org> - 2017-02-10 02:20 +0100

csiph-web