ARM: dts: sun8i: a83t: Add CPU regulator supplies for A83T boards
Subsystems (2)
PATCH 1/1 ARM: dts: sun8i: a83t: Add CPU regulator supplies for A83T boards
The OPPs for the A83T CPU cores were added in v4.17 in commit 2db639d8c166 ("ARM: dts: sun8i: a83t: add stable OPP tables and CPUfreq"), but board level regulator supplies for the CPU clusters were only added for the TBS-A711 tablet. This means the other A83T boards do not benefit from voltage scaling, or worse, if the implementation does not scale the frequency when the voltage is fixed, no benefit at all.
Add board level CPU cluster power supplies to all the A83T development boards, so they can have proper dynamic CPU voltage and frequency scaling.
--- arch/arm/boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts | 8 ++++++++ arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts | 8 ++++++++ arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts | 8 ++++++++ 3 files changed, 24 insertions(+)
arch/arm/boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts +8 -0
@@ -79,6 +79,14 @@ }; }; +&cpu0 { + cpu-supply = <®_dcdc2>; +}; + +&cpu100 { + cpu-supply = <®_dcdc3>; +}; + &ehci0 { status = "okay"; };
arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts +8 -0
@@ -107,6 +107,14 @@ }; }; +&cpu0 { + cpu-supply = <®_dcdc2>; +}; + +&cpu100 { + cpu-supply = <®_dcdc3>; +}; + &de { status = "okay"; };
arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts +8 -0
@@ -145,6 +145,14 @@ }; }; +&cpu0 { + cpu-supply = <®_dcdc2>; +}; + +&cpu100 { + cpu-supply = <®_dcdc3>; +}; + &ehci0 { /* GL830 USB-to-SATA bridge here */ status = "okay";
Signature · 1 line
2.18.0
Maxime Ripard
AppliedPATCH 1/1 ARM: dts: sun8i: a83t: Add CPU regulator supplies for A83T boards
Quoted 11 lines · Chen-Yu Tsai
The OPPs for the A83T CPU cores were added in v4.17 in commit
2db639d8c166("ARM: dts: sun8i: a83t: add stable OPP tables and CPUfreq"), but board level regulator supplies for the CPU clusters were only added for the TBS-A711 tablet. This means the other A83T boards do not benefit from voltage scaling, or worse, if the implementation does not scale the frequency when the voltage is fixed, no benefit at all.Add board level CPU cluster power supplies to all the A83T development boards, so they can have proper dynamic CPU voltage and frequency scaling.
Signed-off-by Chen-Yu Tsai <[email protected]>
Applied, thanks!
Maxime
Signature · 10 lines
Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20180627/4a028bea/attachment.sig>
PATCH 1/1 ARM: dts: sun8i: a83t: Add CPU regulator supplies for A83T boards
In reply to Chen-Yu TsaiHi,
Quoted 23 lines · Chen-Yu Tsai
The OPPs for the A83T CPU cores were added in v4.17 in commit
2db639d8c166("ARM: dts: sun8i: a83t: add stable OPP tables and CPUfreq"), but board level regulator supplies for the CPU clusters were only added for the TBS-A711 tablet. This means the other A83T boards do not benefit from voltage scaling, or worse, if the implementation does not scale the frequency when the voltage is fixed, no benefit at all.Add board level CPU cluster power supplies to all the A83T development boards, so they can have proper dynamic CPU voltage and frequency scaling.
Signed-off-by Chen-Yu Tsai <[email protected]>--- arch/arm/boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts | 8 ++++++++ arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts | 8 ++++++++ arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts | 8 ++++++++ 3 files changed, 24 insertions(+)arch/arm/boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts +0
-0@@ -79,6 +79,14 @@ };
arch/arm/boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts line 89
Quoted 10 lines
arch/arm/boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts +8
-0}; +&cpu0 { + cpu-supply = <®_dcdc2>; +}; + +&cpu100 { + cpu-supply = <®_dcdc3>; +}; +
Shouldn't this be done for all CPU cores? Say you start the kernel with maxcpus=1 and then enable CPU5 later on, will the regulator get enabled, if it is not enabled by always-on setting?
regards,
o.
Quoted 48 lines
arch/arm/boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts +0
-0&ehci0 { status = "okay"; };arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts +8
-0@@ -107,6 +107,14 @@ }; }; +&cpu0 { + cpu-supply = <®_dcdc2>; +}; + +&cpu100 { + cpu-supply = <®_dcdc3>; +}; + &de { status = "okay"; };arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts +8
-0@@ -145,6 +145,14 @@ }; }; +&cpu0 { + cpu-supply = <®_dcdc2>; +}; + +&cpu100 { + cpu-supply = <®_dcdc3>; +}; + &ehci0 { /* GL830 USB-to-SATA bridge here */ status = "okay";Signature · 6 lines
2.18.0 -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe at googlegroups.com. For more options, visit https://groups.google.com/d/optout.
PATCH 1/1 ARM: dts: sun8i: a83t: Add CPU regulator supplies for A83T boards
Quoted 28 lines · Ond?ej Jirman
Hi,
Quoted 25 lines · Chen-Yu Tsai
The OPPs for the A83T CPU cores were added in v4.17 in commit
2db639d8c166("ARM: dts: sun8i: a83t: add stable OPP tables and CPUfreq"), but board level regulator supplies for the CPU clusters were only added for the TBS-A711 tablet. This means the other A83T boards do not benefit from voltage scaling, or worse, if the implementation does not scale the frequency when the voltage is fixed, no benefit at all.Add board level CPU cluster power supplies to all the A83T development boards, so they can have proper dynamic CPU voltage and frequency scaling.
Signed-off-by Chen-Yu Tsai <[email protected]>--- arch/arm/boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts | 8 ++++++++ arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts | 8 ++++++++ arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts | 8 ++++++++ 3 files changed, 24 insertions(+)arch/arm/boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts +0
-0@@ -79,6 +79,14 @@ }; };
Quoted 12 lines
arch/arm/boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts line 89
Quoted 8 lines
arch/arm/boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts +8
-0+&cpu0 { + cpu-supply = <®_dcdc2>; +}; + +&cpu100 { + cpu-supply = <®_dcdc3>; +}; +Shouldn't this be done for all CPU cores? Say you start the kernel with maxcpus=1 and then enable CPU5 later on, will the regulator get enabled, if it is not enabled by always-on setting?
As it stands, the cpufreq framework doesn't enable the regulator anyway. There's nothing in the bindings that say how this should be set either.
ChenYu
Quoted 52 lines
regards,
o.Quoted 48 lines
arch/arm/boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts +0
-0&ehci0 { status = "okay"; };arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts +8
-0@@ -107,6 +107,14 @@ }; }; +&cpu0 { + cpu-supply = <®_dcdc2>; +}; + +&cpu100 { + cpu-supply = <®_dcdc3>; +}; + &de { status = "okay"; };arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts +8
-1@@ -145,6 +145,14 @@ }; }; +&cpu0 { + cpu-supply = <®_dcdc2>; +}; + +&cpu100 { + cpu-supply = <®_dcdc3>; +}; + &ehci0 { /* GL830 USB-to-SATA bridge here */ status = "okay"; --2.18.0
--
You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe at googlegroups.com. For more options, visit https://groups.google.com/d/optout.