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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

1,313 次查看
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!

标签 (2)
标记 (1)
0 项奖励
回复
1 回复

1,071 次查看
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 项奖励
回复