PMIC connection with Linux

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

PMIC connection with Linux

Jump to solution
1,873 Views
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!

Labels (3)
Tags (2)
0 Kudos
1 Solution
1,245 Views
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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

1 Reply
1,246 Views
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!
-----------------------------------------------------------------------------------------------------------------------