Sorry , i read now that otg is not well supported, remove otg support from 
kernel 
and commented out.
/*    usb0_vbus_detect_pin: usb0_vbus_detect_pin@0 {
        allwinner,pins = "PG1";
        allwinner,function = "gpio_in";
        allwinner,drive = <SUN4I_PINCTRL_10_MA>;
        allwinner,pull = <SUN4I_PINCTRL_PULL_DOWN>;
    };

    usb0_id_detect_pin: usb0_id_detect_pin@0 {
        allwinner,pins = "PG2";
        allwinner,function = "gpio_in";
        allwinner,drive = <SUN4I_PINCTRL_10_MA>;
        allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
    };
    usb0_vbus_pin_a: usb0_vbus_pin@0 {
        allwinner,pins = "PG12";
        allwinner,function = "gpio_out";
        allwinner,drive = <SUN4I_PINCTRL_10_MA>;
        allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
    };
*/

/*    pinctrl-0 = <&usb0_id_detect_pin>, <&usb0_vbus_detect_pin>;
    usb0_id_det-gpio = <&pio 6 2 GPIO_ACTIVE_HIGH>; /* PG2 
    usb0_vbus_det-gpio = <&pio 6 1 GPIO_ACTIVE_HIGH>;/* PG1 */

&usb_otg {
    dr_mode = "host";
    status = "okay";
};

and force phy to host only  seems work!

Thank for read may be useful to add a notice in sunxi-wiki 

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to