Proper way to turn off vgen5 regulator in pfuze100 using dts?

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

Proper way to turn off vgen5 regulator in pfuze100 using dts?

690 Views
jayakumar2
Contributor V

Hi,

I have a i.mx6sl based board, similar to evk. It uses the pfuze100 system PMIC which has several independent software controllable regulators. One of these is vgen5. On my board, that regulator is connected to an led so that when it is active, the led is lit. In my particular setup, I want to turn vgen5 off (so that the led is off). I can do this using a raw i2c write (address 0x8, register 0x70 disable bit) and I can see vgen5 go off when this is done.

However, that seems dirty since it is behind the back of the regulator driver and dts. But I wasn't able to find any other way. Look at the control parameters exposed by the regulator driver, I see:

root@imx6slevk:/sys/firmware/devicetree/base/soc/aips-bus@02100000/i2c@021a0000/pfuze100@08/regulators/vgen5#
ls
name regulator-max-microvolt regulator-min-microvolt

The device-tree entry, even if removed still causes vgen5 to be turned on.

vgen5_reg: vgen5 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <3300000>;
};

Is there a proper way to turn vgen5 off using the dts?

Thanks!

Labels (2)
Tags (1)
0 Kudos
1 Reply

448 Views
igorpadykov
NXP Employee
NXP Employee

Hi Jaya

one can check documentation and some mail list activities on

https://www.kernel.org/doc/Documentation/devicetree/bindings/regulator/regulator.txt
https://lists.gt.net/linux/kernel/2058354

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

0 Kudos