Skip to contentSkip to conversation

ARM: shmobile: ape6evm: add CPUFreq support

PATCH Superseded Guennadi Liakhovetski 2 participants 2 messages Jun 24, 2013

Subsystems (2)

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 3/4 ARM: shmobile: ape6evm: add CPUFreq support

This patch adds OPPs to the CA15 DT node and a max8973 DT node to support clock and voltage scaling, using the cpufreq-cpu0 CPUFreq driver.

---

v2: Subject to Mark acking v2 of my max8973 DT patch, this should be the updated version of my original ape6evm CPUFreq patch. This version puts all max8973 regulator bindings directly under the respective I2C device node instead of creating 2 additional levels.

 arch/arm/boot/dts/r8a73a4-ape6evm.dts |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)
arch/arm/boot/dts/r8a73a4-ape6evm.dts +22 -0
index 4fb0102..27c5e06 100644
@@ -52,3 +52,25 @@
 		};
 	};
 };
+
+&i2c5 {
+	vdd_dvfs: max8973 at 1b {
+		compatible = "maxium,max8973";
+		reg = <0x1b>;
+
+		regulator-min-microvolt = <935000>;
+		regulator-max-microvolt = <1200000>;
+		regulator-boot-on;
+		regulator-always-on;
+	};
+};
+
+&cpu0 {
+	cpu0-supply = <&vdd_dvfs>;
+	operating-points = <
+		/* kHz  uV */
+		1950000 1115000
+		1462500  995000
+	>;
+	voltage-tolerance = <1>; /* 1% */
+};
Signature · 1 line
1.7.2.5
#1 lore raw

PATCH v2 3/4 ARM: shmobile: ape6evm: add CPUFreq support

Hello.

Quoted 19 lines · Guennadi Liakhovetski

This patch adds OPPs to the CA15 DT node and a max8973 DT node to support clock and voltage scaling, using the cpufreq-cpu0 CPUFreq driver.

---

v2: Subject to Mark acking v2 of my max8973 DT patch, this should be the updated version of my original ape6evm CPUFreq patch. This version puts all max8973 regulator bindings directly under the respective I2C device node instead of creating 2 additional levels.

  arch/arm/boot/dts/r8a73a4-ape6evm.dts |   22 ++++++++++++++++++++++
  1 files changed, 22 insertions(+), 0 deletions(-)
arch/arm/boot/dts/r8a73a4-ape6evm.dts +0 -0
index 4fb0102..27c5e06 100644

arch/arm/boot/dts/r8a73a4-ape6evm.dts line 58

Quoted 7 lines
arch/arm/boot/dts/r8a73a4-ape6evm.dts +4 -0
@@ -52,3 +52,25 @@
  		};
  	};
  };
+
+&i2c5 {
+	vdd_dvfs: max8973 at 1b {
+		compatible = "maxium,max8973";

Er, perhaps "maxim"? Or is there some other corporation I don't know
about?

WBR, Sergei