]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
[POWERPC] 83xx: USB device tree cleanups
authorLi Yang <leoli@freescale.com>
Tue, 8 Jan 2008 07:18:46 +0000 (15:18 +0800)
committerKumar Gala <galak@kernel.crashing.org>
Thu, 24 Jan 2008 01:33:05 +0000 (19:33 -0600)
Remove device_type = "usb" for 83xx SoC USB controller

Signed-off-by: Li Yang <leoli@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Documentation/powerpc/booting-without-of.txt
arch/powerpc/boot/dts/mpc8313erdb.dts
arch/powerpc/boot/dts/mpc832x_mds.dts
arch/powerpc/boot/dts/mpc8349emitx.dts
arch/powerpc/boot/dts/mpc8349emitxgp.dts
arch/powerpc/boot/dts/mpc834x_mds.dts
arch/powerpc/boot/dts/mpc836x_mds.dts
arch/powerpc/platforms/83xx/usb.c
arch/powerpc/sysdev/fsl_soc.c

index 6d1d0856063e8899940870d78d45a881b0ad5698..e58fd31bee1a5ddfccc23b105fae64764a89c9f6 100644 (file)
@@ -1411,7 +1411,6 @@ platforms are moved over to use the flattened-device-tree model.
 
    Example multi port host USB controller device node :
        usb@22000 {
-               device_type = "usb";
                compatible = "fsl-usb2-mph";
                reg = <22000 1000>;
                #address-cells = <1>;
@@ -1425,7 +1424,6 @@ platforms are moved over to use the flattened-device-tree model.
 
    Example dual role USB controller device node :
        usb@23000 {
-               device_type = "usb";
                compatible = "fsl-usb2-dr";
                reg = <23000 1000>;
                #address-cells = <1>;
@@ -1589,7 +1587,6 @@ platforms are moved over to use the flattened-device-tree model.
    iii) USB (Universal Serial Bus Controller)
 
    Required properties:
-   - device_type : should be "usb".
    - compatible : could be "qe_udc" or "fhci-hcd".
    - mode : the could be "host" or "slave".
    - reg : Offset and length of the register set for the device
@@ -1603,7 +1600,6 @@ platforms are moved over to use the flattened-device-tree model.
 
    Example(slave):
        usb@6c0 {
-               device_type = "usb";
                compatible = "qe_udc";
                reg = <6c0 40>;
                interrupts = <8b 0>;
index c5b6665a8209d44dff118581280f21e5c74a393b..6e8c6066de50ffe53fab7558b3db870010571976 100644 (file)
@@ -92,7 +92,6 @@
 
                /* phy type (ULPI, UTMI, UTMI_WIDE, SERIAL) */
                usb@23000 {
-                       device_type = "usb";
                        compatible = "fsl-usb2-dr";
                        reg = <23000 1000>;
                        #address-cells = <1>;
index 26ac467b10ea910c265e940fa8acea7b24616bd7..5093ef304ff044fddb9524009ee97313b20bd110 100644 (file)
                };
 
                usb@6c0 {
-                       device_type = "usb";
                        compatible = "qe_udc";
                        reg = <6c0 40 8B00 100>;
                        interrupts = <b>;
index e354f26342466595900870cc80fffb4f363a3972..a4a9fafe217a939cc20938b9d40295afd6071f4a 100644 (file)
@@ -91,7 +91,6 @@
                };
 
                usb@22000 {
-                       device_type = "usb";
                        compatible = "fsl-usb2-mph";
                        reg = <22000 1000>;
                        #address-cells = <1>;
                };
 
                usb@23000 {
-                       device_type = "usb";
                        compatible = "fsl-usb2-dr";
                        reg = <23000 1000>;
                        #address-cells = <1>;
index ebdf0b75008687a0be4459a9be6a9144abed9921..a06ff92cf0b117d1d64c2a1361d1bf877da572e9 100644 (file)
@@ -89,7 +89,6 @@
                };
 
                usb@23000 {
-                       device_type = "usb";
                        compatible = "fsl-usb2-dr";
                        reg = <23000 1000>;
                        #address-cells = <1>;
index 0ba13ebcea688d8012be8b20408934d64a8378b3..4120e92fcecfbe32e6d152db45f4fd81428b5887 100644 (file)
                /* phy type (ULPI or SERIAL) are only types supportted for MPH */
                /* port = 0 or 1 */
                usb@22000 {
-                       device_type = "usb";
                        compatible = "fsl-usb2-mph";
                        reg = <22000 1000>;
                        #address-cells = <1>;
                };
                /* phy type (ULPI, UTMI, UTMI_WIDE, SERIAL) */
                usb@23000 {
-                       device_type = "usb";
                        compatible = "fsl-usb2-dr";
                        reg = <23000 1000>;
                        #address-cells = <1>;
index fd841b2fddd016375b08e3f694a719b1756f23d7..2181d2cdbff2f2f7e13640106d3de7d670caaff3 100644 (file)
                };
 
                usb@6c0 {
-                       device_type = "usb";
                        compatible = "qe_udc";
                        reg = <6c0 40 8B00 100>;
                        interrupts = <b>;
index b1de453a88514c545a18aef86bc45f09d1d6f847..6a454a4087c828e8dc4b1d66fea93d531f9102e2 100644 (file)
@@ -41,7 +41,7 @@ int mpc834x_usb_cfg(void)
        sicrl = in_be32(immap + MPC83XX_SICRL_OFFS) & ~MPC834X_SICRL_USB_MASK;
        sicrh = in_be32(immap + MPC83XX_SICRH_OFFS) & ~MPC834X_SICRH_USB_UTMI;
 
-       np = of_find_compatible_node(NULL, "usb", "fsl-usb2-dr");
+       np = of_find_compatible_node(NULL, NULL, "fsl-usb2-dr");
        if (np) {
                sccr |= MPC83XX_SCCR_USB_DRCM_11;  /* 1:3 */
 
@@ -67,7 +67,7 @@ int mpc834x_usb_cfg(void)
                port0_is_dr = 1;
                of_node_put(np);
        }
-       np = of_find_compatible_node(NULL, "usb", "fsl-usb2-mph");
+       np = of_find_compatible_node(NULL, NULL, "fsl-usb2-mph");
        if (np) {
                sccr |= MPC83XX_SCCR_USB_MPHCM_11; /* 1:3 */
 
@@ -111,7 +111,7 @@ int mpc831x_usb_cfg(void)
        const void *dr_mode;
 #endif
 
-       np = of_find_compatible_node(NULL, "usb", "fsl-usb2-dr");
+       np = of_find_compatible_node(NULL, NULL, "fsl-usb2-dr");
        if (!np)
                return -ENODEV;
        prop = of_get_property(np, "phy_type", NULL);
@@ -188,7 +188,7 @@ int mpc837x_usb_cfg(void)
        const void *prop;
        int ret = 0;
 
-       np = of_find_compatible_node(NULL, "usb", "fsl-usb2-dr");
+       np = of_find_compatible_node(NULL, NULL, "fsl-usb2-dr");
        if (!np)
                return -ENODEV;
        prop = of_get_property(np, "phy_type", NULL);
index 217bcc2e8f8664f5af07ef8a871f499d5300c50e..f5c240242cfd136c31a599708871ae350b62e486 100644 (file)
@@ -531,14 +531,12 @@ static enum fsl_usb2_phy_modes determine_usb_phy(const char *phy_type)
 static int __init fsl_usb_of_init(void)
 {
        struct device_node *np;
-       unsigned int i;
+       unsigned int i = 0;
        struct platform_device *usb_dev_mph = NULL, *usb_dev_dr_host = NULL,
                *usb_dev_dr_client = NULL;
        int ret;
 
-       for (np = NULL, i = 0;
-            (np = of_find_compatible_node(np, "usb", "fsl-usb2-mph")) != NULL;
-            i++) {
+       for_each_compatible_node(np, NULL, "fsl-usb2-mph") {
                struct resource r[2];
                struct fsl_usb2_platform_data usb_data;
                const unsigned char *prop = NULL;
@@ -581,11 +579,10 @@ static int __init fsl_usb_of_init(void)
                                                    fsl_usb2_platform_data));
                if (ret)
                        goto unreg_mph;
+               i++;
        }
 
-       for (np = NULL;
-            (np = of_find_compatible_node(np, "usb", "fsl-usb2-dr")) != NULL;
-            i++) {
+       for_each_compatible_node(np, NULL, "fsl-usb2-dr") {
                struct resource r[2];
                struct fsl_usb2_platform_data usb_data;
                const unsigned char *prop = NULL;
@@ -657,6 +654,7 @@ static int __init fsl_usb_of_init(void)
                                                fsl_usb2_platform_data))))
                                goto unreg_dr;
                }
+               i++;
        }
        return 0;