arm64: dts: rockchip: update common rk3399 operating points
Subsystems (2)
Heiko Stuebner
maintainerPATCH 1/2 arm64: dts: rockchip: update common rk3399 operating points
The rk3399 has multiple variants with different frequency ratings. The operating points currently in the kernel stem from the op1 variant used in Gru ChromeOS devices and may not be suitable for general rk3399 chips. Therefore bring it back to the official general operating points.
--- arch/arm64/boot/dts/rockchip/rk3399-opp.dtsi | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-)
arch/arm64/boot/dts/rockchip/rk3399-opp.dtsi +5 -13
@@ -56,22 +56,18 @@ }; opp02 { opp-hz = /bits/ 64 <816000000>; - opp-microvolt = <800000>; + opp-microvolt = <850000>; }; opp03 { opp-hz = /bits/ 64 <1008000000>; - opp-microvolt = <875000>; + opp-microvolt = <925000>; }; opp04 { opp-hz = /bits/ 64 <1200000000>; - opp-microvolt = <925000>; + opp-microvolt = <1000000>; }; opp05 { opp-hz = /bits/ 64 <1416000000>; - opp-microvolt = <1050000>; - }; - opp06 { - opp-hz = /bits/ 64 <1512000000>; opp-microvolt = <1125000>; }; };
@@ -107,15 +103,11 @@ }; opp06 { opp-hz = /bits/ 64 <1608000000>; - opp-microvolt = <1075000>; + opp-microvolt = <1100000>; }; opp07 { opp-hz = /bits/ 64 <1800000000>; - opp-microvolt = <1150000>; - }; - opp08 { - opp-hz = /bits/ 64 <2016000000>; - opp-microvolt = <1250000>; + opp-microvolt = <1200000>; }; }; };
Signature · 1 line
2.11.0
Heiko Stuebner
maintainerPATCH 2/2 arm64: dts: rockchip: introduce rk3399-op1 operating points
The OP1 is a rk3399 variant used in ChromeOS devices with a slightly higher frequency rating. Therefore introduce separate operting points, from the ChromeOS tree, for it and use it in Gru devices.
--- arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 2 +- arch/arm64/boot/dts/rockchip/rk3399-op1-opp.dtsi | 145 +++++++++++++++++++++++ 2 files changed, 146 insertions(+), 1 deletion(-) create mode 100644 arch/arm64/boot/dts/rockchip/rk3399-op1-opp.dtsi
arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi +1 -1
@@ -44,7 +44,7 @@ #include <dt-bindings/input/input.h> #include "rk3399.dtsi" -#include "rk3399-opp.dtsi" +#include "rk3399-op1-opp.dtsi" / { chosen {
arch/arm64/boot/dts/rockchip/rk3399-op1-opp.dtsi new file +145 -0
145 lines not on this page · raw message
Signature · 1 line
2.11.0
PATCH 2/2 arm64: dts: rockchip: introduce rk3399-op1 operating points
Hi,
Quoted 10 lines · Heiko Stuebner
The OP1 is a rk3399 variant used in ChromeOS devices with a slightly higher frequency rating. Therefore introduce separate operting points, from the ChromeOS tree, for it and use it in Gru devices.
Signed-off-by Heiko Stuebner <[email protected]>--- arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 2 +- arch/arm64/boot/dts/rockchip/rk3399-op1-opp.dtsi | 145 +++++++++++++++++++++++ 2 files changed, 146 insertions(+), 1 deletion(-) create mode 100644 arch/arm64/boot/dts/rockchip/rk3399-op1-opp.dtsi
The numbers here match what's in the Chrome OS tree and those were all approved by Rockchip.
One slight nit is that the descriptions these two patches together make it look like this will be a no-op change for OP1 devices. This is not true. After things were posted upstream there have been several adjustments to the opp points in the Chrome OS tree. Since what you have currently matches the ToT Chrome OS tree, that should mean that there's a net difference. It would be nice to mention that in the commit message.
Other than that small nit:
Heiko Stuebner
maintainerPATCH 2/2 arm64: dts: rockchip: introduce rk3399-op1 operating points
Am Dienstag, 23. Mai 2017, 08:57:01 CEST schrieb Doug Anderson:
Quoted 17 lines
Hi,
Quoted 10 lines · Heiko Stuebner
The OP1 is a rk3399 variant used in ChromeOS devices with a slightly higher frequency rating. Therefore introduce separate operting points, from the ChromeOS tree, for it and use it in Gru devices.
Signed-off-by Heiko Stuebner <[email protected]>--- arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 2 +- arch/arm64/boot/dts/rockchip/rk3399-op1-opp.dtsi | 145 +++++++++++++++++++++++ 2 files changed, 146 insertions(+), 1 deletion(-) create mode 100644 arch/arm64/boot/dts/rockchip/rk3399-op1-opp.dtsiThe numbers here match what's in the Chrome OS tree and those were all approved by Rockchip.
Quoted 7 lines
One slight nit is that the descriptions these two patches together make it look like this will be a no-op change for OP1 devices. This is not true. After things were posted upstream there have been several adjustments to the opp points in the Chrome OS tree. Since what you have currently matches the ToT Chrome OS tree, that should mean that there's a net difference. It would be nice to mention that in the commit message.
In the mainline kernel it is a no-op change, as we're still running with the cpu-regulators disabled on gru ;-)
But to address your very valid point, I guess you mean something like
----
The OP1 is a rk3399 variant used in ChromeOS devices with a slightly higher frequency rating compared to the regular rk3399, but right now the only available operating points are somewhere in between both variants with both needing adjustments to actually fit their specs.
Therefore introduce separate operting points, from the ChromeOS kernel, for the OP1 and use it on Gru devices.
----
And I guess we should also swap patch ordering, first move Gru away from the general opps and then adust them for the regular rk3399.
Quoted 3 lines
Other than that small nit:
Reviewed-by Douglas Anderson <[email protected]>
Heiko
PATCH 2/2 arm64: dts: rockchip: introduce rk3399-op1 operating points
Hi,
Quoted 26 lines · Heiko Stuebner
Am Dienstag, 23. Mai 2017, 08:57:01 CEST schrieb Doug Anderson:
Quoted 17 lines
Hi,
Quoted 10 lines · Heiko Stuebner
The OP1 is a rk3399 variant used in ChromeOS devices with a slightly higher frequency rating. Therefore introduce separate operting points, from the ChromeOS tree, for it and use it in Gru devices.
Signed-off-by Heiko Stuebner <[email protected]>--- arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 2 +- arch/arm64/boot/dts/rockchip/rk3399-op1-opp.dtsi | 145 +++++++++++++++++++++++ 2 files changed, 146 insertions(+), 1 deletion(-) create mode 100644 arch/arm64/boot/dts/rockchip/rk3399-op1-opp.dtsiThe numbers here match what's in the Chrome OS tree and those were all approved by Rockchip.
Quoted 7 lines
One slight nit is that the descriptions these two patches together make it look like this will be a no-op change for OP1 devices. This is not true. After things were posted upstream there have been several adjustments to the opp points in the Chrome OS tree. Since what you have currently matches the ToT Chrome OS tree, that should mean that there's a net difference. It would be nice to mention that in the commit message.
Quoted 2 lines
In the mainline kernel it is a no-op change, as we're still running with the cpu-regulators disabled on gru ;-)
Ah, that's true.
Quoted 7 lines
But to address your very valid point, I guess you mean something like
----
The OP1 is a rk3399 variant used in ChromeOS devices with a slightly higher frequency rating compared to the regular rk3399, but right now the only available operating points are somewhere in between both variants with both needing adjustments to actually fit their specs.
That would be fine and would make it obvious that it's a no-op. Ironically, the OPP points that were in mainline were actually not totally in between. There were some numbers that were raised for both. :)
Quoted 6 lines
Therefore introduce separate operting points, from the ChromeOS kernel, for the OP1 and use it on Gru devices.
----And I guess we should also swap patch ordering, first move Gru away from the general opps and then adust them for the regular rk3399.
Yeah, I think swapping the order would make it slightly better.
-Doug
Heiko Stuebner
maintainerPATCH 2/2 arm64: dts: rockchip: introduce rk3399-op1 operating points
Am Dienstag, 23. Mai 2017, 09:35:05 CEST schrieb Doug Anderson:
Quoted 43 lines
Hi,
Quoted 26 lines · Heiko Stuebner
Am Dienstag, 23. Mai 2017, 08:57:01 CEST schrieb Doug Anderson:
Quoted 17 lines
Hi,
Quoted 10 lines · Heiko Stuebner
The OP1 is a rk3399 variant used in ChromeOS devices with a slightly higher frequency rating. Therefore introduce separate operting points, from the ChromeOS tree, for it and use it in Gru devices.
Signed-off-by Heiko Stuebner <[email protected]>--- arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 2 +- arch/arm64/boot/dts/rockchip/rk3399-op1-opp.dtsi | 145 +++++++++++++++++++++++ 2 files changed, 146 insertions(+), 1 deletion(-) create mode 100644 arch/arm64/boot/dts/rockchip/rk3399-op1-opp.dtsiThe numbers here match what's in the Chrome OS tree and those were all approved by Rockchip.
Quoted 7 lines
One slight nit is that the descriptions these two patches together make it look like this will be a no-op change for OP1 devices. This is not true. After things were posted upstream there have been several adjustments to the opp points in the Chrome OS tree. Since what you have currently matches the ToT Chrome OS tree, that should mean that there's a net difference. It would be nice to mention that in the commit message.
Quoted 2 lines
In the mainline kernel it is a no-op change, as we're still running with the cpu-regulators disabled on gru ;-)
Ah, that's true.
Quoted 7 lines
But to address your very valid point, I guess you mean something like
----
The OP1 is a rk3399 variant used in ChromeOS devices with a slightly higher frequency rating compared to the regular rk3399, but right now the only available operating points are somewhere in between both variants with both needing adjustments to actually fit their specs.
Quoted 4 lines
That would be fine and would make it obvious that it's a no-op. Ironically, the OPP points that were in mainline were actually not totally in between. There were some numbers that were raised for both. :)
wording fun ... then we'll make that part a
"[...] but right now
the only available operating points don't match either variant with both needing adjustments to actually fit their specs."
Quoted 8 lines
Quoted 6 lines
Therefore introduce separate operting points, from the ChromeOS kernel, for the OP1 and use it on Gru devices.
----And I guess we should also swap patch ordering, first move Gru away from the general opps and then adust them for the regular rk3399.
Yeah, I think swapping the order would make it slightly better.
Heiko
Heiko Stuebner
maintainerPATCH 1/2 arm64: dts: rockchip: update common rk3399 operating points
In reply to Heiko StuebnerAm Dienstag, 23. Mai 2017, 11:51:08 CEST schrieb Heiko Stuebner:
Quoted 6 lines
The rk3399 has multiple variants with different frequency ratings. The operating points currently in the kernel stem from the op1 variant used in Gru ChromeOS devices and may not be suitable for general rk3399 chips. Therefore bring it back to the official general operating points.
Signed-off-by Heiko Stuebner <[email protected]>
applied both for 4.13 with the description in patch2 fixed and having the patches in reverse order, as discussed in patch2.
Heiko