ARM: at91: dt: enable usb ohci for sam9g20, sam9g45 amd sam9x5
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Sun, 20 Nov 2011 22:55:18 +0000 (06:55 +0800)
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Thu, 15 Mar 2012 16:40:55 +0000 (00:40 +0800)
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: devicetree-discuss@lists.ozlabs.org
arch/arm/boot/dts/at91sam9g20.dtsi
arch/arm/boot/dts/at91sam9g25ek.dts
arch/arm/boot/dts/at91sam9g45.dtsi
arch/arm/boot/dts/at91sam9m10g45ek.dts
arch/arm/boot/dts/at91sam9x5.dtsi
arch/arm/boot/dts/usb_a9g20.dts
arch/arm/mach-at91/at91sam9260.c
arch/arm/mach-at91/at91sam9g45.c
arch/arm/mach-at91/at91sam9x5.c

index 9a0647bb387f3cbae5cda8f1140f75e6a5ffaaf6..f091d679bd4cbf4cef4a51e2af2cecb8a238f464 100644 (file)
                                >;
                        status = "disabled";
                };
+
+               usb0: ohci@00500000 {
+                       compatible = "atmel,at91rm9200-ohci", "usb-ohci";
+                       reg = <0x00500000 0x100000>;
+                       interrupts = <20 4>;
+                       status = "disabled";
+               };
        };
 
        i2c@0 {
index c7596bf26388e93c65d26b1f7c1836f6294a1bce..93d5e361533f515398143c84c3d4b58169c014d4 100644 (file)
                                status = "okay";
                        };
                };
+
+               usb0: ohci@00600000 {
+                       status = "okay";
+                       num-ports = <2>;
+                       atmel,vbus-gpio = <&pioD 19 0
+                                          &pioD 20 0
+                                         >;
+               };
        };
 };
index 8908f078c307b6cea38e0bc8afaf77193e11b542..4ab8a2502697d8197aa6f7eff6d4c3a4e93574fb 100644 (file)
                                >;
                        status = "disabled";
                };
+
+               usb0: ohci@00700000 {
+                       compatible = "atmel,at91rm9200-ohci", "usb-ohci";
+                       reg = <0x00700000 0x100000>;
+                       interrupts = <22 4>;
+                       status = "disabled";
+               };
        };
 
        i2c@0 {
index a8958241f1d76fe9c799751438e1d2b345725a04..0c101ada9d8f4eafc26a8e9366cbbcb02e56cbf2 100644 (file)
                                label = "data";
                                reg = <0x4000000 0xC000000>;
                        };
+               };
 
+               usb0: ohci@00700000 {
+                       status = "okay";
+                       num-ports = <2>;
+                       atmel,vbus-gpio = <&pioD 1 0
+                                          &pioD 3 0>;
                };
        };
 
index 20155ccbbe143c7fc8625cffa39acee757600043..1d8b6ac945f8f29d11dd004e32b2226f686711f9 100644 (file)
                                >;
                        status = "disabled";
                };
+
+               usb0: ohci@00600000 {
+                       compatible = "atmel,at91rm9200-ohci", "usb-ohci";
+                       reg = <0x00600000 0x100000>;
+                       interrupts = <22 4>;
+                       status = "disabled";
+               };
        };
 
        i2c@0 {
index 73f1dc48f3078bb7ba8a97b31a87b10b7c2bbb30..748d4c2f889f65cde3e4928f3721546d005c4cba 100644 (file)
                                reg = <0x7ca0000 0x8360000>;
                        };
                };
+
+               usb0: ohci@00500000 {
+                       num-ports = <2>;
+                       status = "okay";
+               };
        };
 
        leds {
index 14b5a9c9a5144c2b36215ab139596bae9a739bd5..d1e5750a6a047f5160022dceb4ea5ad065461488 100644 (file)
@@ -216,6 +216,7 @@ static struct clk_lookup periph_clocks_lookups[] = {
        CLKDEV_CON_DEV_ID("t0_clk", "fffdc000.timer", &tc3_clk),
        CLKDEV_CON_DEV_ID("t1_clk", "fffdc000.timer", &tc4_clk),
        CLKDEV_CON_DEV_ID("t2_clk", "fffdc000.timer", &tc5_clk),
+       CLKDEV_CON_DEV_ID("hclk", "500000.ohci", &ohci_clk),
        /* fake hclk clock */
        CLKDEV_CON_DEV_ID("hclk", "at91_ohci", &ohci_clk),
        CLKDEV_CON_ID("pioA", &pioA_clk),
index 0014573dfe17cb293e1b303c52781de7c69d03c3..f58775e763259ac811845fad749724da197a0aaf 100644 (file)
@@ -232,6 +232,7 @@ static struct clk_lookup periph_clocks_lookups[] = {
        /* more tc lookup table for DT entries */
        CLKDEV_CON_DEV_ID("t0_clk", "fff7c000.timer", &tcb0_clk),
        CLKDEV_CON_DEV_ID("t0_clk", "fffd4000.timer", &tcb0_clk),
+       CLKDEV_CON_DEV_ID("hclk", "700000.ohci", &uhphs_clk),
        /* fake hclk clock */
        CLKDEV_CON_DEV_ID("hclk", "at91_ohci", &uhphs_clk),
        CLKDEV_CON_ID("pioA", &pioA_clk),
index 01b2bd816a9a9b6df57e019e27682eccc6dbe44b..ec65ef7abfc949267e55c4824510db785fe67fc9 100644 (file)
@@ -131,7 +131,7 @@ static struct clk dma1_clk = {
        .type           = CLK_TYPE_PERIPHERAL,
 };
 static struct clk uhphs_clk = {
-       .name           = "uhphs_clk",
+       .name           = "uhphs",
        .pmc_mask       = 1 << AT91SAM9X5_ID_UHPHS,
        .type           = CLK_TYPE_PERIPHERAL,
 };
@@ -230,6 +230,8 @@ static struct clk_lookup periph_clocks_lookups[] = {
        /* additional fake clock for macb_hclk */
        CLKDEV_CON_DEV_ID("hclk", "f802c000.ethernet", &macb0_clk),
        CLKDEV_CON_DEV_ID("hclk", "f8030000.ethernet", &macb1_clk),
+       CLKDEV_CON_DEV_ID("hclk", "600000.ohci", &uhphs_clk),
+       CLKDEV_CON_DEV_ID("ohci_clk", "600000.ohci", &uhphs_clk),
 };
 
 /*