]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM: dts: qcom: apq8064 - Add usb host support.
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Fri, 10 Apr 2015 20:43:30 +0000 (21:43 +0100)
committerKumar Gala <galak@codeaurora.org>
Mon, 27 Apr 2015 21:10:04 +0000 (16:10 -0500)
This patch adds device tree nodes to support two usb hosts on APQ8064
SOC.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Kumar Gala <galak@codeaurora.org>
arch/arm/boot/dts/qcom-apq8064-ifc6410.dts
arch/arm/boot/dts/qcom-apq8064.dtsi

index ca2d7ba4e91a8dfa693acf5b0b9142774e42ed7d..8fe60fcd6203f773a9120a272f3f4d682918f334 100644 (file)
                        };
                };
 
+               usb3_phy: phy@12520000 {
+                       status          = "okay";
+                       vddcx-supply    = <&pm8921_s3>;
+                       v3p3-supply     = <&pm8921_l3>;
+                       v1p8-supply     = <&pm8921_l23>;
+               };
+
+               usb4_phy: phy@12530000 {
+                       status          = "okay";
+                       vddcx-supply    = <&pm8921_s3>;
+                       v3p3-supply     = <&pm8921_l3>;
+                       v1p8-supply     = <&pm8921_l23>;
+               };
+
+               usb3: usb@12520000 {
+                       status = "okay";
+               };
+
+               usb4: usb@12530000 {
+                       status = "okay";
+               };
+
                amba {
                        /* eMMC */
                        sdcc1: sdcc@12400000 {
index 19629c9c957c2397668b8fbf29be23101e8f7735..99d8e0708c2a671ce4274d7751db3d479cd2ebc3 100644 (file)
@@ -2,6 +2,7 @@
 
 #include "skeleton.dtsi"
 #include <dt-bindings/clock/qcom,gcc-msm8960.h>
+#include <dt-bindings/reset/qcom,gcc-msm8960.h>
 #include <dt-bindings/clock/qcom,mmcc-msm8960.h>
 #include <dt-bindings/soc/qcom,gsbi.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
                        };
                };
 
+               usb3_phy: phy@12520000 {
+                       compatible      = "qcom,usb-otg-ci";
+                       reg             = <0x12520000 0x400>;
+                       interrupts      = <GIC_SPI 188 IRQ_TYPE_NONE>;
+                       status          = "disabled";
+                       dr_mode         = "host";
+
+                       clocks          = <&gcc USB_HS3_XCVR_CLK>,
+                                         <&gcc USB_HS3_H_CLK>;
+                       clock-names     = "core", "iface";
+
+                       resets          = <&gcc USB_HS3_RESET>;
+                       reset-names     = "link";
+               };
+
+               usb4_phy: phy@12530000 {
+                       compatible      = "qcom,usb-otg-ci";
+                       reg             = <0x12530000 0x400>;
+                       interrupts      = <GIC_SPI 215 IRQ_TYPE_NONE>;
+                       status          = "disabled";
+                       dr_mode         = "host";
+
+                       clocks          = <&gcc USB_HS4_XCVR_CLK>,
+                                         <&gcc USB_HS4_H_CLK>;
+                       clock-names     = "core", "iface";
+
+                       resets          = <&gcc USB_HS4_RESET>;
+                       reset-names     = "link";
+               };
+
+               usb3: usb@12520000 {
+                       compatible      = "qcom,ehci-host";
+                       reg             = <0x12520000 0x400>;
+                       interrupts      = <GIC_SPI 188 IRQ_TYPE_NONE>;
+                       status          = "disabled";
+                       usb-phy         = <&usb3_phy>;
+               };
+
+               usb4: usb@12530000 {
+                       compatible      = "qcom,ehci-host";
+                       reg             = <0x12530000 0x400>;
+                       interrupts      = <GIC_SPI 215 IRQ_TYPE_NONE>;
+                       status          = "disabled";
+                       usb-phy         = <&usb4_phy>;
+               };
+
                /* Temporary fixed regulator */
                vsdcc_fixed: vsdcc-regulator {
                        compatible = "regulator-fixed";