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 102fee1a7cSChanwoo ChoiWhat: /sys/class/devfreq/.../name 112fee1a7cSChanwoo ChoiDate: November 2019 122fee1a7cSChanwoo ChoiContact: Chanwoo Choi <cw00.choi@samsung.com> 132fee1a7cSChanwoo ChoiDescription: 142fee1a7cSChanwoo Choi The /sys/class/devfreq/.../name shows the name of device 152fee1a7cSChanwoo Choi of the corresponding devfreq object. 162fee1a7cSChanwoo 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 40e552bbafSJonghwa LeeWhat: /sys/class/devfreq/.../trans_stat 41e552bbafSJonghwa LeeDate: October 2012 42e552bbafSJonghwa LeeContact: MyungJoo Ham <myungjoo.ham@samsung.com> 43ed66bcd0SMauro Carvalho ChehabDescription: 4414a34396SKamil Konieczny This ABI shows or clears the statistics of devfreq behavior 4514a34396SKamil Konieczny on a specific device. It shows the time spent in each state 4614a34396SKamil Konieczny and the number of transitions between states. 47e552bbafSJonghwa Lee In order to activate this ABI, the devfreq target device 48e552bbafSJonghwa Lee driver should provide the list of available frequencies 4914a34396SKamil Konieczny with its profile. If need to reset the statistics of devfreq 5014a34396SKamil Konieczny behavior on a specific device, enter 0(zero) to 'trans_stat' 51002a9c2fSMauro Carvalho Chehab as following:: 52002a9c2fSMauro Carvalho Chehab 5314a34396SKamil Konieczny echo 0 > /sys/class/devfreq/.../trans_stat 54e552bbafSJonghwa Lee 55*08e23d05SChristian Marangi If the transition table is bigger than PAGE_SIZE, reading 56*08e23d05SChristian Marangi this will return an -EFBIG error. 57*08e23d05SChristian Marangi 58d287de85SNishanth MenonWhat: /sys/class/devfreq/.../available_frequencies 59d287de85SNishanth MenonDate: October 2012 60d287de85SNishanth MenonContact: Nishanth Menon <nm@ti.com> 61d287de85SNishanth MenonDescription: 62d287de85SNishanth Menon The /sys/class/devfreq/.../available_frequencies shows 63d287de85SNishanth Menon the available frequencies of the corresponding devfreq object. 64d287de85SNishanth Menon This is a snapshot of available frequencies and not limited 65d287de85SNishanth Menon by the min/max frequency restrictions. 6650a5b33eSNishanth Menon 6750a5b33eSNishanth MenonWhat: /sys/class/devfreq/.../available_governors 6850a5b33eSNishanth MenonDate: October 2012 6950a5b33eSNishanth MenonContact: Nishanth Menon <nm@ti.com> 7050a5b33eSNishanth MenonDescription: 7150a5b33eSNishanth Menon The /sys/class/devfreq/.../available_governors shows 7250a5b33eSNishanth Menon currently available governors in the system. 73de9c7394SMyungJoo Ham 74de9c7394SMyungJoo HamWhat: /sys/class/devfreq/.../min_freq 75de9c7394SMyungJoo HamDate: January 2013 76de9c7394SMyungJoo HamContact: MyungJoo Ham <myungjoo.ham@samsung.com> 77de9c7394SMyungJoo HamDescription: 78de9c7394SMyungJoo Ham The /sys/class/devfreq/.../min_freq shows and stores 79de9c7394SMyungJoo Ham the minimum frequency requested by users. It is 0 if 80de9c7394SMyungJoo Ham the user does not care. min_freq overrides the 81de9c7394SMyungJoo Ham frequency requested by governors. 82de9c7394SMyungJoo Ham 83de9c7394SMyungJoo HamWhat: /sys/class/devfreq/.../max_freq 84de9c7394SMyungJoo HamDate: January 2013 85de9c7394SMyungJoo HamContact: MyungJoo Ham <myungjoo.ham@samsung.com> 86de9c7394SMyungJoo HamDescription: 87de9c7394SMyungJoo Ham The /sys/class/devfreq/.../max_freq shows and stores 88de9c7394SMyungJoo Ham the maximum frequency requested by users. It is 0 if 89de9c7394SMyungJoo Ham the user does not care. max_freq overrides the 90de9c7394SMyungJoo Ham frequency requested by governors and min_freq. 91de9c7394SMyungJoo Ham The max_freq overrides min_freq because max_freq may be 92de9c7394SMyungJoo Ham used to throttle devices to avoid overheating. 934dc3bab8SChanwoo Choi 945f1a9066SChanwoo ChoiWhat: /sys/class/devfreq/.../polling_interval 955f1a9066SChanwoo ChoiDate: September 2011 965f1a9066SChanwoo ChoiContact: MyungJoo Ham <myungjoo.ham@samsung.com> 975f1a9066SChanwoo ChoiDescription: 985f1a9066SChanwoo Choi The /sys/class/devfreq/.../polling_interval shows and sets 995f1a9066SChanwoo Choi the requested polling interval of the corresponding devfreq 1005f1a9066SChanwoo Choi object. The values are represented in ms. If the value is 1015f1a9066SChanwoo Choi less than 1 jiffy, it is considered to be 0, which means 1025f1a9066SChanwoo Choi no polling. This value is meaningless if the governor is 10305f15314SDong Aisheng not polling. 1045f1a9066SChanwoo Choi 1055f1a9066SChanwoo Choi A list of governors that support the node: 1065f1a9066SChanwoo Choi - simple_ondmenad 1075f1a9066SChanwoo Choi - tegra_actmon 1085f1a9066SChanwoo Choi 1095f1a9066SChanwoo ChoiWhat: /sys/class/devfreq/.../userspace/set_freq 1105f1a9066SChanwoo ChoiDate: September 2011 1115f1a9066SChanwoo ChoiContact: MyungJoo Ham <myungjoo.ham@samsung.com> 1125f1a9066SChanwoo ChoiDescription: 1135f1a9066SChanwoo Choi The /sys/class/devfreq/.../userspace/set_freq shows and 1145f1a9066SChanwoo Choi sets the requested frequency for the devfreq object if 1155f1a9066SChanwoo Choi userspace governor is in effect. 1165f1a9066SChanwoo Choi 1175f1a9066SChanwoo Choi A list of governors that support the node: 1185f1a9066SChanwoo Choi - userspace 1195f1a9066SChanwoo Choi 1204dc3bab8SChanwoo ChoiWhat: /sys/class/devfreq/.../timer 1214dc3bab8SChanwoo ChoiDate: July 2020 1224dc3bab8SChanwoo ChoiContact: Chanwoo Choi <cw00.choi@samsung.com> 1234dc3bab8SChanwoo ChoiDescription: 1244dc3bab8SChanwoo Choi This ABI shows and stores the kind of work timer by users. 1254dc3bab8SChanwoo Choi This work timer is used by devfreq workqueue in order to 1264dc3bab8SChanwoo Choi monitor the device status such as utilization. The user 1274dc3bab8SChanwoo Choi can change the work timer on runtime according to their demand 128002a9c2fSMauro Carvalho Chehab as following:: 129002a9c2fSMauro Carvalho Chehab 1304dc3bab8SChanwoo Choi echo deferrable > /sys/class/devfreq/.../timer 1314dc3bab8SChanwoo Choi echo delayed > /sys/class/devfreq/.../timer 1325f1a9066SChanwoo Choi 1335f1a9066SChanwoo Choi A list of governors that support the node: 1345f1a9066SChanwoo Choi - simple_ondemand 135