IMX6 supporting only two frequencies to scale.

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

IMX6 supporting only two frequencies to scale.

1,719 Views
juvinantony
Contributor I

hi ,

I checked the scaling_available_frequencies in the cpu0/cpufreq/ folder.

Its showing only two values available.

Can anyone please help me to have more intermediate values for scaling?

My real requirement is , i have a temperature sensor for the board, and based on the reading from this, i want to change the frequency scaling to different values.

But currently the scaling_available_frequencies are 396MHz and 792 MHz. but i need more frequencies which i can use.

Regards

juvin

Labels (1)
0 Kudos
7 Replies

1,155 Views
BiyongSUN
NXP Employee
NXP Employee

Juvin,

This ia avaliable working point(wp) dump.

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies

396000 792000 996000

The DFVS will adjust the frequency automatically, if the govenor is such as interactive, ondemand.

It is assoicated with the thermal, system loading etc. and adjust automatically.

If you want to add more working point(wp), it is part of linux.

You can add as you like and need to test if the power supply is correct for the working point(wp) you add.

1,154 Views
juvinantony
Contributor I

hello Sun,

you have mentioned that the ondemand and interactive governors is already associated with "thermal". is it possible to associate the readings from a temperature sensor i have on my device with the governor?

Regards

jvn

0 Kudos

1,155 Views
BiyongSUN
NXP Employee
NXP Employee

Hi jvn,

I don't know which version you are using.

The thermal drive is in the driver/thermal

As other driver, linux just ask you to implement its ops.

It doesn't matter, it is from dia thermal, or the external thermal.

static const struct thermal_zone_device_ops imx_tz_ops = {

.bind = imx_bind,

.unbind = imx_unbind,

.get_temp = imx_get_temp,

.get_mode = imx_get_mode,

.set_mode = imx_set_mode,

.get_trip_type = imx_get_trip_type,

.get_trip_temp = imx_get_trip_temp,

.get_crit_temp = imx_get_crit_temp,

.get_trend = imx_get_trend,

.set_trip_temp = imx_set_trip_temp,

};

0 Kudos

1,155 Views
juvinantony
Contributor I

hello Sun,

we have a temperature sensor of chipset tmp103 and our driver is in drivers/hwmon/

can i link the reading of this sensor to the governor? so that the scaling is handled based on those reading?

0 Kudos

1,155 Views
BiyongSUN
NXP Employee
NXP Employee

From the linux layer. It doesn't know the hardware.

It uses a virtual thermal, which should provide the static const struct thermal_zone_device_ops imx_tz_ops.

tmp103  need to do the same thing as i.MX6 on-dia thermal.

0 Kudos

1,155 Views
juvinantony
Contributor I

i added my own android service to monitor the temperature and if the temperature rises i bring the cpu to powersave governor :smileyhappy:

0 Kudos

1,155 Views
igorpadykov
NXP Employee
NXP Employee

Hi juvin

number of working points is defined in datasheet, one can not

add them arbitrary, for example IMX6DQCEC

3 points ldo mode

1.jpg

IMX6DQIEC   only 2 points ldo mode

2.jpg

Best regards

igor

0 Kudos