[PATCH] ARM: sunxi: Add CPU regulator for cpufreq

Subsystems: the rest

STALE3921d

3 messages, 2 authors, 2016-01-17 · open the first message on its own page

[PATCH] ARM: sunxi: Add CPU regulator for cpufreq

From: Maxime Ripard <hidden>
Date: 2016-01-12 13:59:13

The current DT doesn't have a phandle to the CPU regulator in the CPU node,
which disables the CPU voltage scaling entirely.

Add that phandle.

Signed-off-by: Maxime Ripard <redacted>
---
 arch/arm/boot/dts/sun5i-r8-chip.dts | 4 ++++
 1 file changed, 4 insertions(+)
diff --git a/arch/arm/boot/dts/sun5i-r8-chip.dts b/arch/arm/boot/dts/sun5i-r8-chip.dts
index 530ab28e9ca2..f6898c6b84d4 100644
--- a/arch/arm/boot/dts/sun5i-r8-chip.dts
+++ b/arch/arm/boot/dts/sun5i-r8-chip.dts
@@ -70,6 +70,10 @@
 	status = "okay";
 };
 
+&cpu0 {
+	cpu-supply = <&reg_dcdc2>;
+};
+
 &ehci0 {
 	status = "okay";
 };
-- 
2.6.4

[PATCH] ARM: sunxi: Add CPU regulator for cpufreq

From: Chen-Yu Tsai <hidden>
Date: 2016-01-12 14:17:31

On Tue, Jan 12, 2016 at 9:59 PM, Maxime Ripard
[off-list ref] wrote:
The current DT doesn't have a phandle to the CPU regulator in the CPU node,
which disables the CPU voltage scaling entirely.
Commit message doesn't say which chip (family).

ChenYu
quoted hunk
Add that phandle.

Signed-off-by: Maxime Ripard <redacted>
---
 arch/arm/boot/dts/sun5i-r8-chip.dts | 4 ++++
 1 file changed, 4 insertions(+)
diff --git a/arch/arm/boot/dts/sun5i-r8-chip.dts b/arch/arm/boot/dts/sun5i-r8-chip.dts
index 530ab28e9ca2..f6898c6b84d4 100644
--- a/arch/arm/boot/dts/sun5i-r8-chip.dts
+++ b/arch/arm/boot/dts/sun5i-r8-chip.dts
@@ -70,6 +70,10 @@
        status = "okay";
 };

+&cpu0 {
+       cpu-supply = <&reg_dcdc2>;
+};
+
 &ehci0 {
        status = "okay";
 };
--
2.6.4

[PATCH] ARM: sunxi: Add CPU regulator for cpufreq

From: Maxime Ripard <hidden>
Date: 2016-01-17 19:59:04

Hi,

On Tue, Jan 12, 2016 at 10:17:31PM +0800, Chen-Yu Tsai wrote:
On Tue, Jan 12, 2016 at 9:59 PM, Maxime Ripard
[off-list ref] wrote:
quoted
The current DT doesn't have a phandle to the CPU regulator in the CPU node,
which disables the CPU voltage scaling entirely.
Commit message doesn't say which chip (family).
Even worse, which board :)

I've fixed it and applied it.

Thanks!
Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20160117/babc3cc3/attachment-0001.sig>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help