AnsweredAssumed Answered

IMX287: usb0_vbus: disabling

Question asked by Kirill Brilliantov on Mar 2, 2015
Latest reply on Mar 3, 2015 by Kirill Brilliantov

Hello!

I work linux-3.18 from Freescale/linux-fslc · GitHub on custom board with iMX287 CPU.

 

USB schema:

Pin
Pad
USB0_IDJ5
USB0_D_PB10
USB0_D_MA10
USB0_OVERCURRENTK5
USB1_D_MB8
USB1_D_PA8
USB1_OVERCURRENTK8

 

DTS-file:

ahb@80080000 {

        usb0: usb@80080000 {

            pinctrl-names = "default";

            pinctrl-0 = <&usb0_id_pins_a>;

            vbus-supply = <&reg_usb0_vbus>;

            status = "okay";

        };

 

        usb1: usb@80090000 {

            vbus-supply = <&reg_usb1_vbus>;

            status = "okay";

        };

    };

 

regulators {

    compatible = "simple-bus";

reg_usb0_vbus: usb0_vbus {

            compatible = "regulator-fixed";

            regulator-name = "usb0_vbus";

            regulator-min-microvolt = <5000000>;

            regulator-max-microvolt = <5000000>;

            gpio = <&gpio1 24 GPIO_ACTIVE_HIGH>;

            enable-active-high;

        };

 

        reg_usb1_vbus: usb1_vbus {

            compatible = "regulator-fixed";

            regulator-name = "usb1_vbus";

            regulator-min-microvolt = <5000000>;

            regulator-max-microvolt = <5000000>;

            gpio = <&gpio1 27 GPIO_ACTIVE_HIGH>;

            enable-active-high;

        };

};

 

dmesg output:

~ # dmesg | grep usb

[    0.708009] usb0_vbus: 5000 mV

[    0.713149] usb1_vbus: 5000 mV

[    1.653267] usb1_vbus: disabling

[    1.656738] usb0_vbus: disabling

 

Bacause USB is disabled problem in configuration and I not understand gpio configuration in usb_vbus.

Can you help me?

Thank you and excuse my bad english.

Outcomes