xref: /openbmc/linux/Documentation/ABI/testing/sysfs-class-devfreq (revision 2fee1a7cc6b1ce6634bb0f025be2c94a58dfa34d)
19005b650SMyungJoo HamWhat:		/sys/class/devfreq/.../
29005b650SMyungJoo HamDate:		September 2011
39005b650SMyungJoo HamContact:	MyungJoo Ham <myungjoo.ham@samsung.com>
49005b650SMyungJoo HamDescription:
59005b650SMyungJoo Ham		Provide a place in sysfs for the devfreq objects.
69005b650SMyungJoo Ham		This allows accessing various devfreq specific variables.
79005b650SMyungJoo Ham		The name of devfreq object denoted as ... is same as the
89005b650SMyungJoo Ham		name of device using devfreq.
99005b650SMyungJoo Ham
10*2fee1a7cSChanwoo ChoiWhat:		/sys/class/devfreq/.../name
11*2fee1a7cSChanwoo ChoiDate:		November 2019
12*2fee1a7cSChanwoo ChoiContact:	Chanwoo Choi <cw00.choi@samsung.com>
13*2fee1a7cSChanwoo ChoiDescription:
14*2fee1a7cSChanwoo Choi		The /sys/class/devfreq/.../name shows the name of device
15*2fee1a7cSChanwoo Choi		of the corresponding devfreq object.
16*2fee1a7cSChanwoo Choi
179005b650SMyungJoo HamWhat:		/sys/class/devfreq/.../governor
189005b650SMyungJoo HamDate:		September 2011
199005b650SMyungJoo HamContact:	MyungJoo Ham <myungjoo.ham@samsung.com>
209005b650SMyungJoo HamDescription:
210359d1afSNishanth Menon		The /sys/class/devfreq/.../governor show or set the name of the
229005b650SMyungJoo Ham		governor used by the corresponding devfreq object.
239005b650SMyungJoo Ham
249005b650SMyungJoo HamWhat:		/sys/class/devfreq/.../cur_freq
259005b650SMyungJoo HamDate:		September 2011
269005b650SMyungJoo HamContact:	MyungJoo Ham <myungjoo.ham@samsung.com>
279005b650SMyungJoo HamDescription:
289005b650SMyungJoo Ham		The /sys/class/devfreq/.../cur_freq shows the current
297f98a905SRajagopal Venkat		frequency of the corresponding devfreq object. Same as
307f98a905SRajagopal Venkat		target_freq when get_cur_freq() is not implemented by
317f98a905SRajagopal Venkat		devfreq driver.
327f98a905SRajagopal Venkat
337f98a905SRajagopal VenkatWhat:		/sys/class/devfreq/.../target_freq
347f98a905SRajagopal VenkatDate:		September 2012
357f98a905SRajagopal VenkatContact:	Rajagopal Venkat <rajagopal.venkat@linaro.org>
367f98a905SRajagopal VenkatDescription:
377f98a905SRajagopal Venkat		The /sys/class/devfreq/.../target_freq shows the next governor
387f98a905SRajagopal Venkat		predicted target frequency of the corresponding devfreq object.
399005b650SMyungJoo Ham
409005b650SMyungJoo HamWhat:		/sys/class/devfreq/.../polling_interval
419005b650SMyungJoo HamDate:		September 2011
429005b650SMyungJoo HamContact:	MyungJoo Ham <myungjoo.ham@samsung.com>
439005b650SMyungJoo HamDescription:
449005b650SMyungJoo Ham		The /sys/class/devfreq/.../polling_interval shows and sets
459005b650SMyungJoo Ham		the requested polling interval of the corresponding devfreq
469005b650SMyungJoo Ham		object. The values are represented in ms. If the value is
479005b650SMyungJoo Ham		less than 1 jiffy, it is considered to be 0, which means
489005b650SMyungJoo Ham		no polling. This value is meaningless if the governor is
499005b650SMyungJoo Ham		not polling; thus. If the governor is not using
509005b650SMyungJoo Ham		devfreq-provided central polling
519005b650SMyungJoo Ham		(/sys/class/devfreq/.../central_polling is 0), this value
529005b650SMyungJoo Ham		may be useless.
53ce26c5bbSMyungJoo Ham
54e552bbafSJonghwa LeeWhat:		/sys/class/devfreq/.../trans_stat
55e552bbafSJonghwa LeeDate:		October 2012
56e552bbafSJonghwa LeeContact:	MyungJoo Ham <myungjoo.ham@samsung.com>
57ed66bcd0SMauro Carvalho ChehabDescription:
58e552bbafSJonghwa Lee		This ABI shows the statistics of devfreq behavior on a
59e552bbafSJonghwa Lee		specific device. It shows the time spent in each state and
60e552bbafSJonghwa Lee		the number of transitions between states.
61e552bbafSJonghwa Lee		In order to activate this ABI, the devfreq target device
62e552bbafSJonghwa Lee		driver should provide the list of available frequencies
63e552bbafSJonghwa Lee		with its profile.
64e552bbafSJonghwa Lee
65ce26c5bbSMyungJoo HamWhat:		/sys/class/devfreq/.../userspace/set_freq
66ce26c5bbSMyungJoo HamDate:		September 2011
67ce26c5bbSMyungJoo HamContact:	MyungJoo Ham <myungjoo.ham@samsung.com>
68ce26c5bbSMyungJoo HamDescription:
69ce26c5bbSMyungJoo Ham		The /sys/class/devfreq/.../userspace/set_freq shows and
70ce26c5bbSMyungJoo Ham		sets the requested frequency for the devfreq object if
71ce26c5bbSMyungJoo Ham		userspace governor is in effect.
72d287de85SNishanth Menon
73d287de85SNishanth MenonWhat:		/sys/class/devfreq/.../available_frequencies
74d287de85SNishanth MenonDate:		October 2012
75d287de85SNishanth MenonContact:	Nishanth Menon <nm@ti.com>
76d287de85SNishanth MenonDescription:
77d287de85SNishanth Menon		The /sys/class/devfreq/.../available_frequencies shows
78d287de85SNishanth Menon		the available frequencies of the corresponding devfreq object.
79d287de85SNishanth Menon		This is a snapshot of available frequencies and not limited
80d287de85SNishanth Menon		by the min/max frequency restrictions.
8150a5b33eSNishanth Menon
8250a5b33eSNishanth MenonWhat:		/sys/class/devfreq/.../available_governors
8350a5b33eSNishanth MenonDate:		October 2012
8450a5b33eSNishanth MenonContact:	Nishanth Menon <nm@ti.com>
8550a5b33eSNishanth MenonDescription:
8650a5b33eSNishanth Menon		The /sys/class/devfreq/.../available_governors shows
8750a5b33eSNishanth Menon		currently available governors in the system.
88de9c7394SMyungJoo Ham
89de9c7394SMyungJoo HamWhat:		/sys/class/devfreq/.../min_freq
90de9c7394SMyungJoo HamDate:		January 2013
91de9c7394SMyungJoo HamContact:	MyungJoo Ham <myungjoo.ham@samsung.com>
92de9c7394SMyungJoo HamDescription:
93de9c7394SMyungJoo Ham		The /sys/class/devfreq/.../min_freq shows and stores
94de9c7394SMyungJoo Ham		the minimum frequency requested by users. It is 0 if
95de9c7394SMyungJoo Ham		the user does not care. min_freq overrides the
96de9c7394SMyungJoo Ham		frequency requested by governors.
97de9c7394SMyungJoo Ham
98de9c7394SMyungJoo HamWhat:		/sys/class/devfreq/.../max_freq
99de9c7394SMyungJoo HamDate:		January 2013
100de9c7394SMyungJoo HamContact:	MyungJoo Ham <myungjoo.ham@samsung.com>
101de9c7394SMyungJoo HamDescription:
102de9c7394SMyungJoo Ham		The /sys/class/devfreq/.../max_freq shows and stores
103de9c7394SMyungJoo Ham		the maximum frequency requested by users. It is 0 if
104de9c7394SMyungJoo Ham		the user does not care. max_freq overrides the
105de9c7394SMyungJoo Ham		frequency requested by governors and min_freq.
106de9c7394SMyungJoo Ham		The max_freq overrides min_freq because max_freq may be
107de9c7394SMyungJoo Ham		used to throttle devices to avoid overheating.
108