diff options
author | Peter Chen <peter.chen@freescale.com> | 2013-09-09 22:23:16 -0400 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2013-09-26 01:01:34 -0400 |
commit | 6022232b5405d9a917459e1590f0732517f83d09 (patch) | |
tree | 4558165068a1944adb13b4dffb8b0475622cfa8a /arch | |
parent | e03d10f98956c56d0ef92cb9e9f6cafcdd19bee2 (diff) |
ARM: imx: mx6sl-evk: Enable USB function
Enable USB function for OTG 1 and OTG 2 at mx6sololite evk.
Besides, fix the wrong interrupt number for OTG2 and host 1.
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/boot/dts/imx6sl-evk.dts | 39 | ||||
-rw-r--r-- | arch/arm/boot/dts/imx6sl.dtsi | 62 |
2 files changed, 99 insertions, 2 deletions
diff --git a/arch/arm/boot/dts/imx6sl-evk.dts b/arch/arm/boot/dts/imx6sl-evk.dts index 2886a590823d..36ea01e308d3 100644 --- a/arch/arm/boot/dts/imx6sl-evk.dts +++ b/arch/arm/boot/dts/imx6sl-evk.dts | |||
@@ -17,6 +17,28 @@ | |||
17 | memory { | 17 | memory { |
18 | reg = <0x80000000 0x40000000>; | 18 | reg = <0x80000000 0x40000000>; |
19 | }; | 19 | }; |
20 | |||
21 | regulators { | ||
22 | compatible = "simple-bus"; | ||
23 | |||
24 | reg_usb_otg1_vbus: usb_otg1_vbus { | ||
25 | compatible = "regulator-fixed"; | ||
26 | regulator-name = "usb_otg1_vbus"; | ||
27 | regulator-min-microvolt = <5000000>; | ||
28 | regulator-max-microvolt = <5000000>; | ||
29 | gpio = <&gpio4 0 0>; | ||
30 | enable-active-high; | ||
31 | }; | ||
32 | |||
33 | reg_usb_otg2_vbus: usb_otg2_vbus { | ||
34 | compatible = "regulator-fixed"; | ||
35 | regulator-name = "usb_otg2_vbus"; | ||
36 | regulator-min-microvolt = <5000000>; | ||
37 | regulator-max-microvolt = <5000000>; | ||
38 | gpio = <&gpio4 2 0>; | ||
39 | enable-active-high; | ||
40 | }; | ||
41 | }; | ||
20 | }; | 42 | }; |
21 | 43 | ||
22 | &fec { | 44 | &fec { |
@@ -38,6 +60,8 @@ | |||
38 | MX6SL_PAD_SD2_DAT7__GPIO5_IO00 0x17059 | 60 | MX6SL_PAD_SD2_DAT7__GPIO5_IO00 0x17059 |
39 | MX6SL_PAD_SD2_DAT6__GPIO4_IO29 0x17059 | 61 | MX6SL_PAD_SD2_DAT6__GPIO4_IO29 0x17059 |
40 | MX6SL_PAD_REF_CLK_32K__GPIO3_IO22 0x17059 | 62 | MX6SL_PAD_REF_CLK_32K__GPIO3_IO22 0x17059 |
63 | MX6SL_PAD_KEY_COL4__GPIO4_IO00 0x80000000 | ||
64 | MX6SL_PAD_KEY_COL5__GPIO4_IO02 0x80000000 | ||
41 | >; | 65 | >; |
42 | }; | 66 | }; |
43 | }; | 67 | }; |
@@ -49,6 +73,21 @@ | |||
49 | status = "okay"; | 73 | status = "okay"; |
50 | }; | 74 | }; |
51 | 75 | ||
76 | &usbotg1 { | ||
77 | vbus-supply = <®_usb_otg1_vbus>; | ||
78 | pinctrl-names = "default"; | ||
79 | pinctrl-0 = <&pinctrl_usbotg1_1>; | ||
80 | disable-over-current; | ||
81 | status = "okay"; | ||
82 | }; | ||
83 | |||
84 | &usbotg2 { | ||
85 | vbus-supply = <®_usb_otg2_vbus>; | ||
86 | dr_mode = "host"; | ||
87 | disable-over-current; | ||
88 | status = "okay"; | ||
89 | }; | ||
90 | |||
52 | &usdhc1 { | 91 | &usdhc1 { |
53 | pinctrl-names = "default"; | 92 | pinctrl-names = "default"; |
54 | pinctrl-0 = <&pinctrl_usdhc1_1>; | 93 | pinctrl-0 = <&pinctrl_usdhc1_1>; |
diff --git a/arch/arm/boot/dts/imx6sl.dtsi b/arch/arm/boot/dts/imx6sl.dtsi index eda00e88f22f..bcdbc6cb50e9 100644 --- a/arch/arm/boot/dts/imx6sl.dtsi +++ b/arch/arm/boot/dts/imx6sl.dtsi | |||
@@ -562,6 +562,64 @@ | |||
562 | }; | 562 | }; |
563 | }; | 563 | }; |
564 | 564 | ||
565 | usbotg1 { | ||
566 | pinctrl_usbotg1_1: usbotg1grp-1 { | ||
567 | fsl,pins = < | ||
568 | MX6SL_PAD_EPDC_PWRCOM__USB_OTG1_ID 0x17059 | ||
569 | >; | ||
570 | }; | ||
571 | |||
572 | pinctrl_usbotg1_2: usbotg1grp-2 { | ||
573 | fsl,pins = < | ||
574 | MX6SL_PAD_FEC_RXD0__USB_OTG1_ID 0x17059 | ||
575 | >; | ||
576 | }; | ||
577 | |||
578 | pinctrl_usbotg1_3: usbotg1grp-3 { | ||
579 | fsl,pins = < | ||
580 | MX6SL_PAD_LCD_DAT1__USB_OTG1_ID 0x17059 | ||
581 | >; | ||
582 | }; | ||
583 | |||
584 | pinctrl_usbotg1_4: usbotg1grp-4 { | ||
585 | fsl,pins = < | ||
586 | MX6SL_PAD_REF_CLK_32K__USB_OTG1_ID 0x17059 | ||
587 | >; | ||
588 | }; | ||
589 | |||
590 | pinctrl_usbotg1_5: usbotg1grp-5 { | ||
591 | fsl,pins = < | ||
592 | MX6SL_PAD_SD3_DAT0__USB_OTG1_ID 0x17059 | ||
593 | >; | ||
594 | }; | ||
595 | }; | ||
596 | |||
597 | usbotg2 { | ||
598 | pinctrl_usbotg2_1: usbotg2grp-1 { | ||
599 | fsl,pins = < | ||
600 | MX6SL_PAD_ECSPI1_SCLK__USB_OTG2_OC 0x17059 | ||
601 | >; | ||
602 | }; | ||
603 | |||
604 | pinctrl_usbotg2_2: usbotg2grp-2 { | ||
605 | fsl,pins = < | ||
606 | MX6SL_PAD_ECSPI2_SCLK__USB_OTG2_OC 0x17059 | ||
607 | >; | ||
608 | }; | ||
609 | |||
610 | pinctrl_usbotg2_3: usbotg2grp-3 { | ||
611 | fsl,pins = < | ||
612 | MX6SL_PAD_KEY_ROW5__USB_OTG2_OC 0x17059 | ||
613 | >; | ||
614 | }; | ||
615 | |||
616 | pinctrl_usbotg2_4: usbotg2grp-4 { | ||
617 | fsl,pins = < | ||
618 | MX6SL_PAD_SD3_DAT2__USB_OTG2_OC 0x17059 | ||
619 | >; | ||
620 | }; | ||
621 | }; | ||
622 | |||
565 | usdhc1 { | 623 | usdhc1 { |
566 | pinctrl_usdhc1_1: usdhc1grp-1 { | 624 | pinctrl_usdhc1_1: usdhc1grp-1 { |
567 | fsl,pins = < | 625 | fsl,pins = < |
@@ -669,7 +727,7 @@ | |||
669 | usbotg2: usb@02184200 { | 727 | usbotg2: usb@02184200 { |
670 | compatible = "fsl,imx6sl-usb", "fsl,imx27-usb"; | 728 | compatible = "fsl,imx6sl-usb", "fsl,imx27-usb"; |
671 | reg = <0x02184200 0x200>; | 729 | reg = <0x02184200 0x200>; |
672 | interrupts = <0 40 0x04>; | 730 | interrupts = <0 42 0x04>; |
673 | clocks = <&clks IMX6SL_CLK_USBOH3>; | 731 | clocks = <&clks IMX6SL_CLK_USBOH3>; |
674 | fsl,usbphy = <&usbphy2>; | 732 | fsl,usbphy = <&usbphy2>; |
675 | fsl,usbmisc = <&usbmisc 1>; | 733 | fsl,usbmisc = <&usbmisc 1>; |
@@ -679,7 +737,7 @@ | |||
679 | usbh: usb@02184400 { | 737 | usbh: usb@02184400 { |
680 | compatible = "fsl,imx6sl-usb", "fsl,imx27-usb"; | 738 | compatible = "fsl,imx6sl-usb", "fsl,imx27-usb"; |
681 | reg = <0x02184400 0x200>; | 739 | reg = <0x02184400 0x200>; |
682 | interrupts = <0 42 0x04>; | 740 | interrupts = <0 40 0x04>; |
683 | clocks = <&clks IMX6SL_CLK_USBOH3>; | 741 | clocks = <&clks IMX6SL_CLK_USBOH3>; |
684 | fsl,usbmisc = <&usbmisc 2>; | 742 | fsl,usbmisc = <&usbmisc 2>; |
685 | status = "disabled"; | 743 | status = "disabled"; |