linux usbotg vbus regulator device tree

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

linux usbotg vbus regulator device tree

1,698 Views
christoph8446
Contributor II

Hello,

 

Can you please explain what the device tree Settings below will make? I use the

PAD_KEY_ROW4__GPIO4_IO15 in u-boot to switch on 5v on vbus via IC.

 

Can the USB_OTG_VBUS pin on i.MX6 also provide 5V via the vbus regulator-fixed settings in device tree or where does the Regulator provide it's Output? 

 

 vbus1_regulator: regulator@1 {
     compatible = "regulator-fixed";
     regulator-name = "vbus1_regulator";
     regulator-min-microvolt = <5000000>;
     regulator-max-microvolt = <5000000>;
     gpio = <&gpio4 15 GPIO_ACTIVE_HIGH>;
     enable-active-high;
 };

&usbotg {
 /*vbus-supply = <&vbus1_regulator>;*/
 dr_mode = "host";
 status = "okay";
};

Thanks!

Chris

Labels (3)
0 Kudos
1 Reply

1,106 Views
igorpadykov
NXP Employee
NXP Employee

Hi Chris

one can look at example of EIM_D22 as such regulator:

pinctrl_usbotg: usbotggrp {  MX6QDL_PAD_EIM_D22__GPIO3_IO22  0x000b0 ..
reg_usb_otg_vbus: regulator@1 {             gpio = <&gpio3 22 0>;
                                                    enable-active-high;
https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm/boot/dts/imx6q-arm2.dts?h=imx_4.1...

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos