]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
dts: rk3399: add dwc3_typec node for rk3399
authorMengDongyang <daniel.meng@rock-chips.com>
Wed, 24 Aug 2016 04:02:20 +0000 (12:02 +0800)
committerSimon Glass <sjg@chromium.org>
Thu, 22 Sep 2016 13:41:49 +0000 (07:41 -0600)
rk3399 has two dwc3 controller for type-C port, add the dts node
and enable them.

Signed-off-by: MengDongyang <daniel.meng@rock-chips.com>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Acked-by: Simon Glass <sjg@chromium.org>
arch/arm/dts/rk3399-evb.dts
arch/arm/dts/rk3399.dtsi

index e92a492545d92f76f817fb39ef754cb8ede4c241..7b49f6fb194f72e58b179808f2a0b566159aa05e 100644 (file)
        status = "okay";
 };
 
+&dwc3_typec0 {
+       status = "okay";
+};
+
 &usb_host1_ehci {
        status = "okay";
 };
        status = "okay";
 };
 
+&dwc3_typec1 {
+       status = "okay";
+};
+
 &pinctrl {
        pmic {
                pmic_int_l: pmic-int-l {
index 6d820787ed768644a412c66010c18e465a420717..179860c900f364ba8ba3a1e7468e032e0e209ce0 100644 (file)
@@ -9,6 +9,7 @@
 #include <dt-bindings/interrupt-controller/arm-gic.h>
 #include <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/pinctrl/rockchip.h>
+#define USB_CLASS_HUB                  9
 
 / {
        compatible = "rockchip,rk3399";
                status = "disabled";
        };
 
+       dwc3_typec0: usb@fe800000 {
+               compatible = "rockchip,rk3399-xhci";
+               reg = <0x0 0xfe800000 0x0 0x100000>;
+               status = "disabled";
+               rockchip,vbus-gpio = <&gpio1 3 GPIO_ACTIVE_HIGH>;
+               snps,dis-enblslpm-quirk;
+               snps,phyif-utmi-bits = <16>;
+               snps,dis-u2-freeclk-exists-quirk;
+               snps,dis-u2-susphy-quirk;
+
+               #address-cells = <2>;
+               #size-cells = <2>;
+               hub {
+                       compatible = "usb-hub";
+                       usb,device-class = <USB_CLASS_HUB>;
+               };
+               typec_phy0 {
+                       compatible = "rockchip,rk3399-usb3-phy";
+                       reg = <0x0 0xff7c0000 0x0 0x40000>;
+               };
+       };
+
+       dwc3_typec1: usb@fe900000 {
+               compatible = "rockchip,rk3399-xhci";
+               reg = <0x0 0xfe900000 0x0 0x100000>;
+               status = "disabled";
+               rockchip,vbus-gpio = <&gpio1 4 GPIO_ACTIVE_HIGH>;
+               snps,dis-enblslpm-quirk;
+               snps,phyif-utmi-bits = <16>;
+               snps,dis-u2-freeclk-exists-quirk;
+               snps,dis-u2-susphy-quirk;
+
+               #address-cells = <2>;
+               #size-cells = <2>;
+               hub {
+                       compatible = "usb-hub";
+                       usb,device-class = <USB_CLASS_HUB>;
+               };
+               typec_phy1 {
+                       compatible = "rockchip,rk3399-usb3-phy";
+                       reg = <0x0 0xff800000 0x0 0x40000>;
+               };
+       };
+
        gic: interrupt-controller@fee00000 {
                compatible = "arm,gic-v3";
                #interrupt-cells = <3>;