aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2012-09-20 23:16:27 -0400
committerOlof Johansson <olof@lixom.net>2012-09-20 23:16:27 -0400
commit84bae6c379e362aa017efd417199f51d5c2273ac (patch)
tree9001dea5bbbee5b0bafbb8b8dfd212278d861cb7 /arch/arm
parent6ded2450383c5d622d3abb4d2a4d5ce8a0e8c229 (diff)
parentcc7887c3b1a08d3900160d93df4ddda5fa7f725b (diff)
Merge tag 'imx-dt-3.7-2' of git://git.linaro.org/people/shawnguo/linux-2.6 into next/dt
From Shawn Guo: This is the second round of imx-dt patches for 3.7. It's based on and imx-dt-3.7 and imx-clk-dt-lookup which have already been pulled. * tag 'imx-dt-3.7-2' of git://git.linaro.org/people/shawnguo/linux-2.6: ARM: imx6q: use pll2_pfd2_396m as the enfc_sel's parent ARM: dts: imx6q-sabrelite: add usbotg pinctrl support ARM: dts: imx6q-sabrelite: add usbmisc device
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/boot/dts/imx6q-sabrelite.dts3
-rw-r--r--arch/arm/boot/dts/imx6q.dtsi19
-rw-r--r--arch/arm/mach-imx/clk-imx6q.c7
3 files changed, 29 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/imx6q-sabrelite.dts b/arch/arm/boot/dts/imx6q-sabrelite.dts
index 0fb29ca7a9e1..d152328285a1 100644
--- a/arch/arm/boot/dts/imx6q-sabrelite.dts
+++ b/arch/arm/boot/dts/imx6q-sabrelite.dts
@@ -68,6 +68,9 @@
68 aips-bus@02100000 { /* AIPS2 */ 68 aips-bus@02100000 { /* AIPS2 */
69 usb@02184000 { /* USB OTG */ 69 usb@02184000 { /* USB OTG */
70 vbus-supply = <&reg_usb_otg_vbus>; 70 vbus-supply = <&reg_usb_otg_vbus>;
71 pinctrl-names = "default";
72 pinctrl-0 = <&pinctrl_usbotg_1>;
73 disable-over-current;
71 status = "okay"; 74 status = "okay";
72 }; 75 };
73 76
diff --git a/arch/arm/boot/dts/imx6q.dtsi b/arch/arm/boot/dts/imx6q.dtsi
index e45476dc6d32..35e5895ba3df 100644
--- a/arch/arm/boot/dts/imx6q.dtsi
+++ b/arch/arm/boot/dts/imx6q.dtsi
@@ -661,6 +661,14 @@
661 }; 661 };
662 }; 662 };
663 663
664 usbotg {
665 pinctrl_usbotg_1: usbotggrp-1 {
666 fsl,pins = <
667 1592 0x17059 /* MX6Q_PAD_GPIO_1__ANATOP_USBOTG_ID */
668 >;
669 };
670 };
671
664 usdhc2 { 672 usdhc2 {
665 pinctrl_usdhc2_1: usdhc2grp-1 { 673 pinctrl_usdhc2_1: usdhc2grp-1 {
666 fsl,pins = < 674 fsl,pins = <
@@ -777,6 +785,7 @@
777 interrupts = <0 43 0x04>; 785 interrupts = <0 43 0x04>;
778 clocks = <&clks 162>; 786 clocks = <&clks 162>;
779 fsl,usbphy = <&usbphy1>; 787 fsl,usbphy = <&usbphy1>;
788 fsl,usbmisc = <&usbmisc 0>;
780 status = "disabled"; 789 status = "disabled";
781 }; 790 };
782 791
@@ -786,6 +795,7 @@
786 interrupts = <0 40 0x04>; 795 interrupts = <0 40 0x04>;
787 clocks = <&clks 162>; 796 clocks = <&clks 162>;
788 fsl,usbphy = <&usbphy2>; 797 fsl,usbphy = <&usbphy2>;
798 fsl,usbmisc = <&usbmisc 1>;
789 status = "disabled"; 799 status = "disabled";
790 }; 800 };
791 801
@@ -794,6 +804,7 @@
794 reg = <0x02184400 0x200>; 804 reg = <0x02184400 0x200>;
795 interrupts = <0 41 0x04>; 805 interrupts = <0 41 0x04>;
796 clocks = <&clks 162>; 806 clocks = <&clks 162>;
807 fsl,usbmisc = <&usbmisc 2>;
797 status = "disabled"; 808 status = "disabled";
798 }; 809 };
799 810
@@ -802,9 +813,17 @@
802 reg = <0x02184600 0x200>; 813 reg = <0x02184600 0x200>;
803 interrupts = <0 42 0x04>; 814 interrupts = <0 42 0x04>;
804 clocks = <&clks 162>; 815 clocks = <&clks 162>;
816 fsl,usbmisc = <&usbmisc 3>;
805 status = "disabled"; 817 status = "disabled";
806 }; 818 };
807 819
820 usbmisc: usbmisc@02184800 {
821 #index-cells = <1>;
822 compatible = "fsl,imx6q-usbmisc";
823 reg = <0x02184800 0x200>;
824 clocks = <&clks 162>;
825 };
826
808 ethernet@02188000 { 827 ethernet@02188000 {
809 compatible = "fsl,imx6q-fec"; 828 compatible = "fsl,imx6q-fec";
810 reg = <0x02188000 0x4000>; 829 reg = <0x02188000 0x4000>;
diff --git a/arch/arm/mach-imx/clk-imx6q.c b/arch/arm/mach-imx/clk-imx6q.c
index 32fdf73b8e5b..3ec242f3341e 100644
--- a/arch/arm/mach-imx/clk-imx6q.c
+++ b/arch/arm/mach-imx/clk-imx6q.c
@@ -406,6 +406,13 @@ int __init mx6q_clocks_init(void)
406 clk_register_clkdev(clk[ahb], "ahb", NULL); 406 clk_register_clkdev(clk[ahb], "ahb", NULL);
407 clk_register_clkdev(clk[cko1], "cko1", NULL); 407 clk_register_clkdev(clk[cko1], "cko1", NULL);
408 408
409 /*
410 * The gpmi needs 100MHz frequency in the EDO/Sync mode,
411 * We can not get the 100MHz from the pll2_pfd0_352m.
412 * So choose pll2_pfd2_396m as enfc_sel's parent.
413 */
414 clk_set_parent(clk[enfc_sel], clk[pll2_pfd2_396m]);
415
409 for (i = 0; i < ARRAY_SIZE(clks_init_on); i++) 416 for (i = 0; i < ARRAY_SIZE(clks_init_on); i++)
410 clk_prepare_enable(clk[clks_init_on[i]]); 417 clk_prepare_enable(clk[clks_init_on[i]]);
411 418