DESK-MX9-L/Deployment/Power Manager

From DAVE Developer's Wiki
< DESK-MX9-L
Revision as of 09:57, 2 April 2024 by U0031 (talk | contribs) (Created page with "<section begin=History/> {| style="border-collapse:collapse; " !colspan="4" style="width:100%; text-align:left"; border-bottom:solid 2px #ededed"|History |- !style="border-le...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
History
Issue Date Notes
2024/04/02 Power Manager documentation



Power Manager[edit | edit source]

Operational characteristics[edit | edit source]

The measurement of power consumption of the SOM are executed with 3.3 V supply.

Power consumption[edit | edit source]

There are various operating modes available.

Attention, the SOC used does not support the DVFS and therefore the use of the governor present in the Linux kernel, instead of this functionality to scale the performance to have lower consumption by the SOC there is a new technology the Low Drive mode.

Low Drive mode[edit | edit source]

Documentation from NXP:

There are four operating modes(Not all present by default on Aura SOM):

Mode VDD SOC A55 Max Frequency DRAM Max Frequency Note
Over drive (OD Mode, default) 0.9 V 1700 MHz 1866 MHz (3733 MTS) (1)(2)
Nominal drive (ND Mode) 0.85 V 1400 MHz 1400 MHz (2800 MTS) -
Low drive (LD Mode) (1) 0.8 V 933 MHz 933 MHz (1866 MTS) (3)
Low drive (LD Mode) (2) 0.8 V 933 MHz 625 MTS (3)

Note:

  • (1): Over drive is the default operating mode.
  • (2): Over drive can be disabled, see here.
  • (3): Le modalità di Low drive bisogna attiavarle da device tree di default queste non sono presenti, vedi note sucessive.


Device Tree[edit | edit source]

To enable/disable and configure the driver must use the device tree, by default the node lpm present on arch/arm64/boot/dts/freescale/imx93.dtsi are disabled, then the Low Drive Mode are disable.

By default on Aura SOM the support are enable with minimal configuration to have:

  • Over drive Mode
  • Nominal drive Mode

To do this see arch/arm64/boot/dts/freescale/imx93-aura.dtsi:

...
&lpm {
	soc-supply = <&buck1>;
	status = "okay";
};
...
&lpi2c2 {
        ....
	pmic@25 {
		compatible = "nxp,pca9451a";
                ...
		regulators {
			buck1: BUCK1 {
				regulator-name = "BUCK1";
				regulator-min-microvolt = <600000>;
				regulator-max-microvolt = <2187500>;
				regulator-boot-on;
				regulator-always-on;
				regulator-ramp-delay = <3125>;
			};
		...
		};
	...
	};
};
...

The node to change the SOC voltage supply need the PMIC buck regulator reference on Aura SOM the PMIC Buck used are the Buck1.

Enable Low drive Mode[edit | edit source]

To enable the two modality Low drive Mode add the property ld-mode-enabled on lpm node of device tree.

By default on Aura SOM this modalities are disabled.

Attention: if you want to add this modalities check if you must change the clock rate of the other peripherals like:

  • flexspi1 to 266000000.
  • usdhc1 to 266000000.
  • usdhc2 to 266000000.
  • usdhc3 to 266000000.

See also the NXP EVK here arch/arm64/boot/dts/freescale/imx93-11x11-evk-ld.dts


Command[edit | edit source]

The driver/imx/soc/imx93_lpm.c driver uses imx-atf to manage the operating mode and can be controlled using a sysfs interface.

Read the current mode:

root@desk-mx93-rev0:~# cat /sys/devices/platform/imx93-lpm/mode
System is in OD mode with DDR 3733 MTS!

Read the current clock of core.

root@desk-mx93-rev1:~# mhz
1690 MHz, 0.5917 nanosec clock

To change on Over drive Mode:

root@desk-mx93-rev1:~# echo 0 > /sys/devices/platform/imx93-lpm/mode
[ 9456.025419] System switching to OD mode...
root@desk-mx93-rev1:~# cat /sys/devices/platform/imx93-lpm/mode
System is in OD mode with DDR 3733 MTS!
root@desk-mx93-rev1:~# mhz
1690 MHz, 0.5917 nanosec clock

To change on Nominal drive Mode:

root@desk-mx93-rev1:~# echo 1 > /sys/devices/platform/imx93-lpm/mode
[ 9557.112015] System switching to ND mode...
root@desk-mx93-rev1:~# cat /sys/devices/platform/imx93-lpm/mode
System is in ND mode with DDR 1866 MTS!
root@desk-mx93-rev1:~# mhz
1398 MHz, 0.7153 nanosec clock

To change on Low drive Mode (1866 MTS):

root@desk-mx93-rev1:~# echo 2 > /sys/devices/platform/imx93-lpm/mode
[ 9623.164150] System switching to LD/SWFFC mode...
root@desk-mx93-rev1:~# cat /sys/devices/platform/imx93-lpm/mode
System is in LD mode with DDR 1866 MTS!
root@desk-mx93-rev1:~# mhz
898 MHz, 1.1136 nanosec clock

To change on Low drive Mode (625 MTS):

root@desk-mx93-rev1:~# echo 3 > /sys/devices/platform/imx93-lpm/mode
[ 9648.546368] System switching to LD/SWFFC mode...
root@desk-mx93-rev1:~# cat /sys/devices/platform/imx93-lpm/mode
System is in LD mode with DDR 625 MTS!
root@desk-mx93-rev1:~# mhz
898 MHz, 1.1136 nanosec clock




uso normale standby mode uso sotto stress LDM attivo (1)

 normale
 sotto stress