11#
2- # (C) COPYRIGHT 2013-2015 ARM Limited. All rights reserved.
2+ # (C) COPYRIGHT 2013-2017 ARM Limited. All rights reserved.
33#
44# This program is free software and is provided to you under the terms of the
55# GNU General Public License version 2 as published by the Free Software
@@ -33,8 +33,6 @@ Optional:
3333Documentation/devicetree/bindings/regulator/regulator.txt for details.
3434- operating-points : Refer to Documentation/devicetree/bindings/power/opp.txt
3535for details.
36- - snoop_enable_smc : SMC function ID to enable CCI snooping on the GPU port(s).
37- - snoop_disable_smc : SMC function ID to disable CCI snooping on the GPU port(s).
3836- jm_config : For T860/T880. Sets job manager configuration. An array containing:
3937 - 1 to override the TIMESTAMP value, 0 otherwise.
4038 - 1 to override clock gate, forcing them to be always on, 0 otherwise.
@@ -45,19 +43,27 @@ for details.
4543- power_model : Sets power model parameters. Note that this model was designed for the Juno
4644 platform, and may not be suitable for other platforms. A structure containing :
4745 - compatible: Should be arm,mali-simple-power-model
48- - voltage: Voltage at reference point. Specified in mV.
49- - frequency: Frequency at reference point. Specified in MHz.
50- - dynamic-power: Dynamic power at reference frequency and voltage. Specified in mW.
51- - static-power: Static power at reference frequency. Specified in mW.
52- - ts: An array containing coefficients for the temperature scaling factor.
53- Used as : tsf = ts[3]*T^3 + ts[2]*T^2 + ts[1]*T + ts[0], where T = temperature
46+ - dynamic-coefficient: Coefficient, in pW/(Hz V^2), which is multiplied
47+ by v^2*f to calculate the dynamic power consumption.
48+ - static-coefficient: Coefficient, in uW/V^3, which is multiplied by
49+ v^3 to calculate the static power consumption.
50+ - ts: An array containing coefficients for the temperature scaling
51+ factor. This is used to scale the static power by a factor of
52+ tsf/1000000, where tsf = ts[3]*T^3 + ts[2]*T^2 + ts[1]*T + ts[0],
53+ and T = temperature in degrees.
5454 - thermal-zone: A string identifying the thermal zone used for the GPU
5555- system-coherency : Sets the coherency protocol to be used for coherent
5656 accesses made from the GPU.
5757 If not set then no coherency is used.
5858 - 0 : ACE-Lite
5959 - 1 : ACE
6060 - 31 : No coherency
61+ - ipa-model : Sets the IPA model to be used for power management. GPU probe will fail if the
62+ model is not found in the registered models list. If no model is specified here,
63+ a gpu-id based model is picked if available, otherwise the default model is used.
64+ - mali-simple-power-model: Default model used on mali
65+ - protected-mode-switcher : Phandle to device implemented protected mode switching functionality.
66+ Refer to Documentation/devicetree/bindings/arm/smc-protected-mode-switcher.txt for one implementation.
6167
6268Example for a Mali-T602:
6369
@@ -82,10 +88,8 @@ gpu@0xfc010000 {
8288 >;
8389 power_model {
8490 compatible = "arm,mali-simple-power-model";
85- voltage = <800>;
86- frequency = <500>;
87- static-power = <500>;
88- dynamic-power = <1500>;
91+ static-coefficient = <2427750>;
92+ dynamic-coefficient = <4687>;
8993 ts = <20000 2000 (-20) 2>;
9094 thermal-zone = "gpu";
9195 };
0 commit comments