Hello!
I work linux-3.18 from Freescale/linux-fslc · GitHub on custom board with iMX287 CPU.
USB schema:
Pin
| Pad
|
|---|
| USB0_ID | J5 |
| USB0_D_P | B10 |
| USB0_D_M | A10 |
| USB0_OVERCURRENT | K5 |
| USB1_D_M | B8 |
| USB1_D_P | A8 |
| USB1_OVERCURRENT | K8 |
DTS-file:
ahb@80080000 {
usb0: usb@80080000 {
pinctrl-names = "default";
pinctrl-0 = <&usb0_id_pins_a>;
vbus-supply = <®_usb0_vbus>;
status = "okay";
};
usb1: usb@80090000 {
vbus-supply = <®_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.