aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2013-05-03 08:49:51 -0400
committerNicolas Ferre <nicolas.ferre@atmel.com>2013-06-14 18:15:07 -0400
commitaecca65c1398cd0d9edcd7818601a462d4ca1c06 (patch)
treee62932dd8ae00621dcdb46b5acb293cc4bda7a9c
parent6b2a999906dfd1f0acc4ef169d86c0d2d9945620 (diff)
ARM: at91: sam9x5 add udc DT support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Tested-by: Bo Shen <voice.shen@atmel.com>
-rw-r--r--arch/arm/boot/dts/at91sam9x5.dtsi62
-rw-r--r--arch/arm/mach-at91/at91sam9x5.c2
2 files changed, 64 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/at91sam9x5.dtsi b/arch/arm/boot/dts/at91sam9x5.dtsi
index 0696b579031b..5a7b148e686c 100644
--- a/arch/arm/boot/dts/at91sam9x5.dtsi
+++ b/arch/arm/boot/dts/at91sam9x5.dtsi
@@ -746,6 +746,68 @@
746 status = "disabled"; 746 status = "disabled";
747 }; 747 };
748 748
749 usb2: gadget@f803c000 {
750 #address-cells = <1>;
751 #size-cells = <0>;
752 compatible = "atmel,at91sam9rl-udc";
753 reg = <0x00500000 0x80000
754 0xf803c000 0x400>;
755 interrupts = <23 IRQ_TYPE_LEVEL_HIGH 0>;
756 status = "disabled";
757
758 ep0 {
759 reg = <0>;
760 atmel,fifo-size = <64>;
761 atmel,nb-banks = <1>;
762 };
763
764 ep1 {
765 reg = <1>;
766 atmel,fifo-size = <1024>;
767 atmel,nb-banks = <2>;
768 atmel,can-dma;
769 atmel,can-isoc;
770 };
771
772 ep2 {
773 reg = <2>;
774 atmel,fifo-size = <1024>;
775 atmel,nb-banks = <2>;
776 atmel,can-dma;
777 atmel,can-isoc;
778 };
779
780 ep3 {
781 reg = <3>;
782 atmel,fifo-size = <1024>;
783 atmel,nb-banks = <3>;
784 atmel,can-dma;
785 };
786
787 ep4 {
788 reg = <4>;
789 atmel,fifo-size = <1024>;
790 atmel,nb-banks = <3>;
791 atmel,can-dma;
792 };
793
794 ep5 {
795 reg = <5>;
796 atmel,fifo-size = <1024>;
797 atmel,nb-banks = <3>;
798 atmel,can-dma;
799 atmel,can-isoc;
800 };
801
802 ep6 {
803 reg = <6>;
804 atmel,fifo-size = <1024>;
805 atmel,nb-banks = <3>;
806 atmel,can-dma;
807 atmel,can-isoc;
808 };
809 };
810
749 watchdog@fffffe40 { 811 watchdog@fffffe40 {
750 compatible = "atmel,at91sam9260-wdt"; 812 compatible = "atmel,at91sam9260-wdt";
751 reg = <0xfffffe40 0x10>; 813 reg = <0xfffffe40 0x10>;
diff --git a/arch/arm/mach-at91/at91sam9x5.c b/arch/arm/mach-at91/at91sam9x5.c
index e631fec040ce..2abee6626aac 100644
--- a/arch/arm/mach-at91/at91sam9x5.c
+++ b/arch/arm/mach-at91/at91sam9x5.c
@@ -249,6 +249,8 @@ static struct clk_lookup periph_clocks_lookups[] = {
249 CLKDEV_CON_DEV_ID("hclk", "600000.ohci", &uhphs_clk), 249 CLKDEV_CON_DEV_ID("hclk", "600000.ohci", &uhphs_clk),
250 CLKDEV_CON_DEV_ID("ohci_clk", "600000.ohci", &uhphs_clk), 250 CLKDEV_CON_DEV_ID("ohci_clk", "600000.ohci", &uhphs_clk),
251 CLKDEV_CON_DEV_ID("ehci_clk", "700000.ehci", &uhphs_clk), 251 CLKDEV_CON_DEV_ID("ehci_clk", "700000.ehci", &uhphs_clk),
252 CLKDEV_CON_DEV_ID("hclk", "500000.gadget", &utmi_clk),
253 CLKDEV_CON_DEV_ID("pclk", "500000.gadget", &udphs_clk),
252}; 254};
253 255
254/* 256/*