AnsweredAssumed Answered

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

Question asked by jayakumar2 on Feb 16, 2017
Latest reply on Feb 16, 2017 by igorpadykov

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!

Outcomes