AnsweredAssumed Answered

i.MX8M DVFS support

Question asked by Prajna Nayak on Feb 26, 2019
Latest reply on Feb 27, 2019 by Diego Adrian Cuevas

Hi,

 

We are using i.MX8M custom board with Linux 4.9.51_ga release. I want to enable the Dynamic Voltage Frequency Scaling(DVFS) property in it. I have added the below in dts file for the same:

************************************************************************************

reg_gpio_dvfs: regulator-gpio {
   compatible = "regulator-gpio";
   pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_dvfs>;
    regulator-min-microvolt = <900000>;
    regulator-max-microvolt = <1000000>;
    regulator-name = "gpio_dvfs";
    regulator-type = "voltage";
    gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
    states = <900000 0x1 1000000 0x0>;
};
.....
pinctrl_dvfs: dvfsgrp {
   fsl,pins = <
      MX8MQ_IOMUXC_GPIO1_IO13_GPIO1_IO13 0x16
   >;
};
......
&A53_0 {
   operating-points = <
   /* kHz uV */
   1500000 1000000
   1300000 1000000
   1000000 900000
   800000 900000
   >;
   dc-supply = <&reg_gpio_dvfs>;
};

**********************************************************************************************

Is there any other change that needs to be done? with this change in dts and 'ondemand' CPU frequency governer, the board hangs.

Can somebody help in solving this issue?

 

Thanks in advance.

 

Regards,

Prajna

Outcomes