svn commit: r357254 - in head/sys: dts/arm64/overlays modules/dtb/rockchip

Ganbold Tsagaankhuu ganbold at FreeBSD.org
Wed Jan 29 12:10:43 UTC 2020


Author: ganbold
Date: Wed Jan 29 12:10:42 2020
New Revision: 357254
URL: https://svnweb.freebsd.org/changeset/base/357254

Log:
  Add an overlay for RK3328 USB3 node.
  It doesn't exist in mainline dts due to the issues related
  with detaching and reattaching USB3 devices as mentioned in
  https://patchwork.kernel.org/patch/10853381/
  In case of FreeBSD, as a temporary workaround "usbconfig reset"
  command can fix the problem.
  
  Reviewed by:	manu

Added:
  head/sys/dts/arm64/overlays/rk3328-dwc3.dtso   (contents, props changed)
Modified:
  head/sys/modules/dtb/rockchip/Makefile

Added: head/sys/dts/arm64/overlays/rk3328-dwc3.dtso
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sys/dts/arm64/overlays/rk3328-dwc3.dtso	Wed Jan 29 12:10:42 2020	(r357254)
@@ -0,0 +1,39 @@
+/dts-v1/;
+/plugin/;
+
+#include <dt-bindings/clock/rk3328-cru.h>
+#include <dt-bindings/interrupt-controller/arm-gic.h>
+#include <dt-bindings/interrupt-controller/irq.h>
+
+/ {
+	compatible = "rockchip,rk3328";
+};
+
+&{/} {
+	usbdrd3: usb at ff600000 {
+		compatible = "rockchip,rk3328-dwc3";
+		clocks = <&cru SCLK_USB3OTG_REF>, <&cru SCLK_USB3OTG_SUSPEND>,
+			 <&cru ACLK_USB3OTG>;
+		clock-names = "ref_clk", "suspend_clk",
+			      "bus_clk";
+		#address-cells = <2>;
+		#size-cells = <2>;
+		ranges;
+		status = "okay";
+
+		usbdrd_dwc3: dwc3 at ff600000 {
+			compatible = "snps,dwc3";
+			reg = <0x0 0xff600000 0x0 0x100000>;
+			interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
+			dr_mode = "host";
+			phy_type = "utmi_wide";
+			snps,dis_enblslpm_quirk;
+			snps,dis-u2-freeclk-exists-quirk;
+			snps,dis_u2_susphy_quirk;
+			snps,dis_u3_susphy_quirk;
+			snps,dis-del-phy-power-chg-quirk;
+			snps,dis-tx-ipgap-linecheck-quirk;
+			status = "okay";
+		};
+	};
+};

Modified: head/sys/modules/dtb/rockchip/Makefile
==============================================================================
--- head/sys/modules/dtb/rockchip/Makefile	Wed Jan 29 12:02:47 2020	(r357253)
+++ head/sys/modules/dtb/rockchip/Makefile	Wed Jan 29 12:10:42 2020	(r357254)
@@ -7,4 +7,6 @@ DTS=	\
 	rockchip/rk3328-rock64.dts \
 	rockchip/rk3399-rockpro64.dts
 
+DTSO=	rk3328-dwc3.dtso
+
 .include <bsd.dtb.mk>


More information about the svn-src-head mailing list