Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3a2bc642 authored by Chen-Yu Tsai's avatar Chen-Yu Tsai Committed by Maxime Ripard
Browse files

ARM: dts: sun6i: Add cpu clock reference and operating points to dtsi



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 a list compiled by Maxime Ripard,
which is based on A31 FEX files from the sunxi-boards repository. Not all
boards have the same settings. The settings in this patch are the ones
shared by A/B/C revisions, plus the default clock setting from u-boot.

Signed-off-by: default avatarChen-Yu Tsai <wens@csie.org>
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
parent 59ebbe88
Loading
Loading
Loading
Loading
+13 −1
Original line number Original line Diff line number Diff line
@@ -96,10 +96,22 @@
		#address-cells = <1>;
		#address-cells = <1>;
		#size-cells = <0>;
		#size-cells = <0>;


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


		cpu@1 {
		cpu@1 {