2014-09-09 22:28:03 +08:00
|
|
|
Generic cpufreq driver
|
2012-09-06 15:09:11 +08:00
|
|
|
|
2014-09-09 22:28:03 +08:00
|
|
|
It is a generic DT based cpufreq driver for frequency management. It supports
|
|
|
|
both uniprocessor (UP) and symmetric multiprocessor (SMP) systems which share
|
|
|
|
clock and voltage across all CPUs.
|
2012-09-06 15:09:11 +08:00
|
|
|
|
|
|
|
Both required and optional properties listed below must be defined
|
|
|
|
under node /cpus/cpu@0.
|
|
|
|
|
|
|
|
Required properties:
|
2014-07-11 22:54:19 +08:00
|
|
|
- None
|
2012-09-06 15:09:11 +08:00
|
|
|
|
|
|
|
Optional properties:
|
2015-11-03 20:09:23 +08:00
|
|
|
- operating-points: Refer to Documentation/devicetree/bindings/opp/opp.txt for
|
2014-07-11 22:54:19 +08:00
|
|
|
details. OPPs *must* be supplied either via DT, i.e. this property, or
|
|
|
|
populated at runtime.
|
2012-09-06 15:09:11 +08:00
|
|
|
- clock-latency: Specify the possible maximum transition latency for clock,
|
|
|
|
in unit of nanoseconds.
|
|
|
|
- voltage-tolerance: Specify the CPU voltage tolerance in percentage.
|
2013-07-15 21:09:14 +08:00
|
|
|
- #cooling-cells:
|
|
|
|
Please refer to Documentation/devicetree/bindings/thermal/thermal.txt.
|
2012-09-06 15:09:11 +08:00
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
cpus {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
cpu@0 {
|
|
|
|
compatible = "arm,cortex-a9";
|
|
|
|
reg = <0>;
|
|
|
|
next-level-cache = <&L2>;
|
|
|
|
operating-points = <
|
|
|
|
/* kHz uV */
|
|
|
|
792000 1100000
|
|
|
|
396000 950000
|
|
|
|
198000 850000
|
|
|
|
>;
|
2013-04-01 20:57:41 +08:00
|
|
|
clock-latency = <61036>; /* two CLK32 periods */
|
2013-07-15 21:09:14 +08:00
|
|
|
#cooling-cells = <2>;
|
2012-09-06 15:09:11 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
cpu@1 {
|
|
|
|
compatible = "arm,cortex-a9";
|
|
|
|
reg = <1>;
|
|
|
|
next-level-cache = <&L2>;
|
|
|
|
};
|
|
|
|
|
|
|
|
cpu@2 {
|
|
|
|
compatible = "arm,cortex-a9";
|
|
|
|
reg = <2>;
|
|
|
|
next-level-cache = <&L2>;
|
|
|
|
};
|
|
|
|
|
|
|
|
cpu@3 {
|
|
|
|
compatible = "arm,cortex-a9";
|
|
|
|
reg = <3>;
|
|
|
|
next-level-cache = <&L2>;
|
|
|
|
};
|
|
|
|
};
|