Skip to content

Commit

Permalink
ARM: dts: sun7i: Add cpu clock reference and operating points to dtsi
Browse files Browse the repository at this point in the history
The cpu core is clocked from the "cpu" clock. Add a reference to it
in the first cpu node. Also add "cpu0" label to the node.

The operating points were taken from the A20 FEX files in the
sunxi-boards repository. Not all boards have the same settings. The
settings in this patch are the most generic ones.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
  • Loading branch information
Chen-Yu Tsai authored and Maxime Ripard committed Jan 21, 2015
1 parent 41e7afb commit d96b716
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion arch/arm/boot/dts/sun7i-a20.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,26 @@
#address-cells = <1>;
#size-cells = <0>;

cpu@0 {
cpu0: cpu@0 {
compatible = "arm,cortex-a7";
device_type = "cpu";
reg = <0>;
clocks = <&cpu>;
clock-latency = <244144>; /* 8 32k periods */
operating-points = <
/* kHz uV */
1008000 1450000
960000 1400000
912000 1400000
864000 1300000
720000 1200000
528000 1100000
312000 1000000
144000 900000
>;
#cooling-cells = <2>;
cooling-min-level = <0>;
cooling-max-level = <7>;
};

cpu@1 {
Expand Down

0 comments on commit d96b716

Please sign in to comment.