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
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!
-----------------------------------------------------------------------------------------------------------------------