Skip to contentSkip to conversation

ARM: shmobile: lager: Add VDD MPU regulator for DVFS

PATCH In review Gaku Inami 2 participants 2 messages Jun 3, 2014 – Jun 4, 2014

Subsystems (2)
lore
Share & tools
lore

Gaku Inami

author
#0 lore raw

PATCH v2 1/8 ARM: shmobile: lager: Add VDD MPU regulator for DVFS

From: Benoit Cousson <[email protected]>

The CA15 cluster is capable of voltage scaling. Add the regulator in the i2c3 node, to allow the generic CPUFreq driver to use it.

Enable the i2c3 pin mux and the device node as well since the da9210 is connected to that bus.

Note: In R-CAR Gen2, each frequency is using the same voltage, and DVS control is not used. Therefore, this patch set the voltage(Vmin/Vmax) to 1000mv.

[[email protected]: Changes Vmin for disabling DVS]

---

Changes since version 1:
- added this patch for enabling da9210 regulator.
- fixed subject.

 arch/arm/boot/dts/r8a7790-lager.dts |   21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
arch/arm/boot/dts/r8a7790-lager.dts +21 -0
index 9becef7..8428204 100644
@@ -204,6 +204,11 @@
 				 "msiof1_tx";
 		renesas,function = "msiof1";
 	};
+
+	i2c3_pins: i2c3 {
+		renesas,groups = "i2c3";
+		renesas,function = "i2c3";
+	};
 };
 
 &ether {
@@ -317,3 +322,19 @@
 	cd-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>;
 	status = "okay";
 };
+
+&i2c3 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&i2c3_pins>;
+	status = "okay";
+
+	vdd_dvfs: regulator@68 {
+		compatible = "diasemi,da9210";
+		reg = <0x68>;
+
+		regulator-min-microvolt = <1000000>;
+		regulator-max-microvolt = <1000000>;
+		regulator-boot-on;
+		regulator-always-on;
+	};
+};
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 8 lines · Gaku Inami

From: Benoit Cousson <[email protected]>

The CA15 cluster is capable of voltage scaling. Add the regulator in the i2c3 node, to allow the generic CPUFreq driver to use it.

Enable the i2c3 pin mux and the device node as well since the da9210 is connected to that bus.

Quoted 7 lines

Note: In R-CAR Gen2, each frequency is using the same voltage, and DVS control is not used. Therefore, this patch set the voltage(Vmin/Vmax) to 1000mv.

[[email protected]: Changes Vmin for disabling DVS]

Thanks, I have queued this up with Magnus's Ack.

Quoted 48 lines

---

Changes since version 1:
- added this patch for enabling da9210 regulator.
- fixed subject.

 arch/arm/boot/dts/r8a7790-lager.dts |   21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
arch/arm/boot/dts/r8a7790-lager.dts +21 -0
index 9becef7..8428204 100644
@@ -204,6 +204,11 @@
 				 "msiof1_tx";
 		renesas,function = "msiof1";
 	};
+
+	i2c3_pins: i2c3 {
+		renesas,groups = "i2c3";
+		renesas,function = "i2c3";
+	};
 };
 
 &ether {
@@ -317,3 +322,19 @@
 	cd-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>;
 	status = "okay";
 };
+
+&i2c3 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&i2c3_pins>;
+	status = "okay";
+
+	vdd_dvfs: regulator@68 {
+		compatible = "diasemi,da9210";
+		reg = <0x68>;
+
+		regulator-min-microvolt = <1000000>;
+		regulator-max-microvolt = <1000000>;
+		regulator-boot-on;
+		regulator-always-on;
+	};
+};
Signature · 1 line
1.7.9.5