IMX8 PMIC

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

IMX8 PMIC

1,017 Views
gravity_one
Contributor III

hello,all

I made power manage for IMX8:

pfuze100_regulator: loading out-of-tree module taints kernel.

Best Regards

Thanks

Grayli

0 Kudos
4 Replies

892 Views
igorpadykov
NXP Employee
NXP Employee

Hi Graily

i,MX8 series have specific in power management as described in

sect.2.5 Power Management attached Linux Manual, in particular:

On i.MX 8 and i.MX 8X:
• No hardware low-power mode is available.
• All low-power modes are implemented in system controller firware (SCFW) using
software method.
• SCFW powers off clusters/CPUs when the system is suspended.

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

0 Kudos

892 Views
gravity_one
Contributor III

linux-imx\arch\arm64\configs:

CONFIG_REGULATOR_PFUZE100=y

0 Kudos

892 Views
gravity_one
Contributor III

.dtsi   add 

&i2c1 {
clock-frequency = <400000>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_lpi2c1>;
status = "okay";

pmic: pfuze100@08 {
compatible = "fsl,pfuze100";
reg = <0x08>;
status = "okay";
regulators {
sw1a_reg: sw1ab {
regulator-min-microvolt = <300000>;
regulator-max-microvolt = <1875000>;

};

sw1c_reg: sw1c {
regulator-min-microvolt = <300000>;
regulator-max-microvolt = <1875000>;
};

sw2_reg: sw2 {
regulator-min-microvolt = <800000>;
regulator-max-microvolt = <3300000>;
regulator-always-on;
};

sw3a_reg: sw3ab {
regulator-min-microvolt = <400000>;
regulator-max-microvolt = <1975000>;
regulator-always-on;
};

sw4_reg: sw4 {
regulator-min-microvolt = <800000>;
regulator-max-microvolt = <3300000>;
regulator-always-on;
};

swbst_reg: swbst {
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5150000>;
};

snvs_reg: vsnvs {
regulator-min-microvolt = <1000000>;
regulator-max-microvolt = <3000000>;
regulator-always-on;
};

vref_reg: vrefddr {
regulator-always-on;
};

vgen1_reg: vgen1 {
regulator-min-microvolt = <800000>;
regulator-max-microvolt = <1550000>;
};

vgen2_reg: vgen2 {
regulator-min-microvolt = <800000>;
regulator-max-microvolt = <1550000>;
regulator-always-on;
};

vgen3_reg: vgen3 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <3300000>;
regulator-always-on;
};

vgen4_reg: vgen4 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <3300000>;
regulator-always-on;
};

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

vgen6_reg: vgen6 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <3300000>;
};
};
};

};

and /proc/device-tree/i2c@xxx  have node on board.

but i donot konw how to use?

regulator_get(NULL,xxx), what is name?

Best Regards

Thanks

Grayli

0 Kudos

892 Views
gravity_one
Contributor III

hello,

After kernel startup is over,The APP wants to change the LDOn&SW output of the PMIC;

Best Regards

Thanks

Grayli

0 Kudos