PMIC connection with Linux

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

PMIC connection with Linux

跳至解决方案
3,039 次查看
nexy_sm
Contributor II

Hi all,

I am using a board with i.MX6Q processor and LTC3676 PMIC. At the moment I would like to realize how is a PMIC actually connected and instantiated in Linux. I looked at the i.MX6 Linux user manual, and there was explained that the on the top sits the regulator core drive, followed by the PF100-core driver and followed by the PF100 regulator driver (although my current sources have only pfuze100-regulator driver).

I see that regulator core driver has very general commands which internally call API of the actual PMIC. I also see that inside the device tree, it is possible to have a PMIC entry with its child regulators.

What I do not understand at the moment is how Linux knows which regulator is used for SoC core voltage, which one provides VDD_ARM, etc. I belive that when scaling the frequency down, the system should know which voltage can be lowered.

Thank you!

标签 (3)
标记 (2)
0 项奖励
回复
1 解答
2,411 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Nemanja

linux knows which regulator to use looking at dts file, for example

linux/arch/arm/boot/dts/imx6dl.dtsi file entriy "arm-supply" and others

linux-imx.git - i.MX Linux Kernel 

Also one can look at PFUZE regulator driver sources described in

Chapter PF100 Regulator Driver of Linux Reference Manual.

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

在原帖中查看解决方案

1 回复
2,412 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Nemanja

linux knows which regulator to use looking at dts file, for example

linux/arch/arm/boot/dts/imx6dl.dtsi file entriy "arm-supply" and others

linux-imx.git - i.MX Linux Kernel 

Also one can look at PFUZE regulator driver sources described in

Chapter PF100 Regulator Driver of Linux Reference Manual.

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