Skip to contentSkip to conversation

arm64: dts: meson-g12: specify suspend OPP

PATCH In review Neil Armstrong 2 participants 6 messages Aug 27, 2019 – Aug 29, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover arm64: dts: meson-g12: specify suspend OPP

Tag the 1,2GHz OPP as suspend OPP to be set before going in suspend mode, for the G12A, G12B and SM1 SoCs.

It has been reported that using various OPPs can lead to error or resume with a different OPP from the ROM, thus use this safe OPP as it is the default OPP used by the BL2 boot firmware.

Neil Armstrong (3):
arm64: dts: meson-g12a: specify suspend OPP
arm64: dts: meson-sm1: specify suspend OPP
arm64: dts: meson-g12b: specify suspend OPP

 arch/arm64/boot/dts/amlogic/meson-g12a.dtsi       | 1 +
 arch/arm64/boot/dts/amlogic/meson-g12b-a311d.dtsi | 2 ++
 arch/arm64/boot/dts/amlogic/meson-g12b-s922x.dtsi | 2 ++
 arch/arm64/boot/dts/amlogic/meson-sm1.dtsi        | 1 +
 4 files changed, 6 insertions(+)
Signature · 1 line
2.22.0
#1 lore raw

PATCH 1/3 arm64: dts: meson-g12a: specify suspend OPP

Tag the 1,2GHz OPP as suspend OPP to be set before going in suspend mode.

It has been reported that using various OPPs can lead to error or resume with a different OPP from the ROM, thus use this safe OPP as it is the default OPP used by the BL2 boot firmware.

---
 arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/amlogic/meson-g12a.dtsi +1 -0
index 733a9d46fc4b..57c880c06a07 100644
@@ -81,6 +81,7 @@
 		opp-1200000000 {
 			opp-hz = /bits/ 64 <1200000000>;
 			opp-microvolt = <731000>;
+			opp-suspend;
 		};
 
 		opp-1398000000 {
Signature · 1 line
2.22.0
#2 lore raw

PATCH 2/3 arm64: dts: meson-sm1: specify suspend OPP

In reply to Neil Armstrong

Tag the 1,2GHz OPP as suspend OPP to be set before going in suspend mode.

It has been reported that using various OPPs can lead to error or resume with a different OPP from the ROM, thus use this safe OPP as it is the default OPP used by the BL2 boot firmware.

---
 arch/arm64/boot/dts/amlogic/meson-sm1.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/amlogic/meson-sm1.dtsi +1 -0
index e4830cbf7ed5..32e2de2614b1 100644
@@ -82,6 +82,7 @@
 		opp-1200000000 {
 			opp-hz = /bits/ 64 <1200000000>;
 			opp-microvolt = <780000>;
+			opp-suspend;
 		};
 
 		opp-1404000000 {
Signature · 1 line
2.22.0
#3 lore raw

PATCH 3/3 arm64: dts: meson-g12b: specify suspend OPP

In reply to Neil Armstrong

Tag the 1,2GHz OPPs as suspend OPP to be set before going in suspend mode.

It has been reported that using various OPPs can lead to error or resume with a different OPP from the ROM, thus use this safe OPP as it is the default OPP used by the BL2 boot firmware on the 2 clusters.

---
 arch/arm64/boot/dts/amlogic/meson-g12b-a311d.dtsi | 2 ++
 arch/arm64/boot/dts/amlogic/meson-g12b-s922x.dtsi | 2 ++
 2 files changed, 4 insertions(+)
arch/arm64/boot/dts/amlogic/meson-g12b-a311d.dtsi +2 -0
index d61f43052a34..00ea181bc018 100644
@@ -39,6 +39,7 @@
 		opp-1200000000 {
 			opp-hz = /bits/ 64 <1200000000>;
 			opp-microvolt = <781000>;
+			opp-suspend;
 		};
 
 		opp-1398000000 {
@@ -99,6 +100,7 @@
 		opp-1200000000 {
 			opp-hz = /bits/ 64 <1200000000>;
 			opp-microvolt = <751000>;
+			opp-suspend;
 		};
 
 		opp-1398000000 {
arch/arm64/boot/dts/amlogic/meson-g12b-s922x.dtsi +2 -0
index 046cc332d07f..d68323c6c780 100644
@@ -39,6 +39,7 @@
 		opp-1200000000 {
 			opp-hz = /bits/ 64 <1200000000>;
 			opp-microvolt = <731000>;
+			opp-suspend;
 		};
 
 		opp-1398000000 {
@@ -99,6 +100,7 @@
 		opp-1200000000 {
 			opp-hz = /bits/ 64 <1200000000>;
 			opp-microvolt = <771000>;
+			opp-suspend;
 		};
 
 		opp-1398000000 {
Signature · 1 line
2.22.0
maintainer
#4 lore raw
In reply to Neil Armstrong
Quoted 11 lines · Neil Armstrong

Tag the 1,2GHz OPP as suspend OPP to be set before going in suspend mode, for the G12A, G12B and SM1 SoCs.

It has been reported that using various OPPs can lead to error or resume with a different OPP from the ROM, thus use this safe OPP as it is the default OPP used by the BL2 boot firmware.

Neil Armstrong (3):
arm64: dts: meson-g12a: specify suspend OPP
arm64: dts: meson-sm1: specify suspend OPP
arm64: dts: meson-g12b: specify suspend OPP

Queued patches 1, 3 for v5.4.

The SM1 patch has a dependency on the SM1 DVFS series, which in turn has a dependency on clock changes. Once I get a stable tag for the SM1 clock changes, I'll queue up the rest.

Kevin

maintainer
#5 lore raw
Quoted 14 lines · Kevin Hilman
Quoted 11 lines · Neil Armstrong

Tag the 1,2GHz OPP as suspend OPP to be set before going in suspend mode, for the G12A, G12B and SM1 SoCs.

It has been reported that using various OPPs can lead to error or resume with a different OPP from the ROM, thus use this safe OPP as it is the default OPP used by the BL2 boot firmware.

Neil Armstrong (3):
arm64: dts: meson-g12a: specify suspend OPP
arm64: dts: meson-sm1: specify suspend OPP
arm64: dts: meson-g12b: specify suspend OPP

Quoted 5 lines

Queued patches 1, 3 for v5.4.

The SM1 patch has a dependency on the SM1 DVFS series, which in turn has a dependency on clock changes. Once I get a stable tag for the SM1 clock changes, I'll queue up the rest.

FYI... I decided not to queue these for v5.4.

I'm pretty sure we'll need these, but I I think we need to do a bit more suspend/resume testing to be sure we have the right OPPs. here.

For now, this series is in my v5.4/testing branch, which is included in integ so it can get a bit broader testing.

Kevin