Changing the voltage of the regulator through the device tree

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

Changing the voltage of the regulator through the device tree

596 Views
alanmartinovic
Contributor I

Hy,

I would like to change the voltage level of the regulator to get a constant voltage output of 5V.

In the device tree, both regulator-min-microvolt and regulator-max-microvolt have been set to 5V.

I'm using imx28 and the kernel is 3.14.0-rc5. The entry in the device tree looks like this:

reg_usb1_vbus: usb1_vbus {

compatible = "regulator-fixed";

regulator-name = "usb1_vbus";

regulator-min-microvolt = <5000000>; #This was 3300000

regulator-max-microvolt = <5000000>; #This was 3300000

gpio = <&gpio3 28 0>;

enable-active-high;

However, that doesn’t change the actual voltage on the GPIO pin.

Are there other places that require a change to get a fixed 5V output?

0 Kudos
1 Reply

337 Views
Wlodek_D_
Senior Contributor II

Dear alanmartinovic,

Thank you for your post, however please consider moving it to the right community place (e.g. i.MX Community ) for better visibility.

For details please see general advice https://community.freescale.com/docs/DOC-99909

Thank you for using Freescale Community.

Regards,

Wlodek_D.

0 Kudos