* [PATCH 0/3] riscv: dts: spacemit: add cpu scaling for 3 boards
@ 2026-08-04 13:32 Andre Heider
2026-08-04 13:32 ` [PATCH 1/3] riscv: dts: spacemit: k1-musepi-pro: add cpu scaling Andre Heider
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Andre Heider @ 2026-08-04 13:32 UTC (permalink / raw)
To: Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti,
Yixun Lan
Cc: linux-riscv, spacemit
This series adds cpu scaling for 3 boards, each authored and tested by a
community member on their device:
- k1-musepi-pro
fixed include order
v1: https://lore.kernel.org/all/20260614122812.2287506-1-a.heider@gmail.com/
- orangepi-rv2
unchanged, included here because it's still unmerged, probably just
fell through the cracks
v2: https://lore.kernel.org/spacemit/20260615-k1-cpufreq-orangepi-rv2-v2-1-237f006e580b@gmail.com/
- k1-orangepi-r2s
new patch from Vincent, cc'ed
origin: https://github.com/dhewg/openwrt/pull/3
Andre Heider (1):
riscv: dts: spacemit: k1-musepi-pro: add cpu scaling
Jonatan Hazell (1):
riscv: dts: spacemit: orangepi-r2s: Add cpu scaling for K1 SoC
Vincent Legoll (1):
riscv: dts: spacemit: orangepi-rv2: Add cpu scaling for K1 SoC
.../riscv/boot/dts/spacemit/k1-musepi-pro.dts | 35 ++++++++++++++++++-
.../boot/dts/spacemit/k1-orangepi-r2s.dts | 35 ++++++++++++++++++-
.../boot/dts/spacemit/k1-orangepi-rv2.dts | 35 ++++++++++++++++++-
3 files changed, 102 insertions(+), 3 deletions(-)
--
2.53.0
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/3] riscv: dts: spacemit: k1-musepi-pro: add cpu scaling
2026-08-04 13:32 [PATCH 0/3] riscv: dts: spacemit: add cpu scaling for 3 boards Andre Heider
@ 2026-08-04 13:32 ` Andre Heider
2026-08-04 13:32 ` [PATCH 2/3] riscv: dts: spacemit: orangepi-rv2: Add cpu scaling for K1 SoC Andre Heider
2026-08-04 13:32 ` [PATCH 3/3] riscv: dts: spacemit: orangepi-r2s: " Andre Heider
2 siblings, 0 replies; 4+ messages in thread
From: Andre Heider @ 2026-08-04 13:32 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Yixun Lan,
Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti
Cc: devicetree, linux-riscv, spacemit, linux-kernel
Enable CPU DVFS by including the OPP table and wiring the CPU nodes to the
CPU regulator supply.
Signed-off-by: Andre Heider <a.heider@gmail.com>
---
.../riscv/boot/dts/spacemit/k1-musepi-pro.dts | 35 ++++++++++++++++++-
1 file changed, 34 insertions(+), 1 deletion(-)
diff --git a/arch/riscv/boot/dts/spacemit/k1-musepi-pro.dts b/arch/riscv/boot/dts/spacemit/k1-musepi-pro.dts
index 246f8f2ab62b..23f32a8a3d45 100644
--- a/arch/riscv/boot/dts/spacemit/k1-musepi-pro.dts
+++ b/arch/riscv/boot/dts/spacemit/k1-musepi-pro.dts
@@ -8,6 +8,7 @@
/dts-v1/;
#include "k1.dtsi"
+#include "k1-opp.dtsi"
#include "k1-pinctrl.dtsi"
/ {
@@ -99,6 +100,38 @@ &combo_phy {
status = "okay";
};
+&cpu_0 {
+ cpu-supply = <&buck1_0v9>;
+};
+
+&cpu_1 {
+ cpu-supply = <&buck1_0v9>;
+};
+
+&cpu_2 {
+ cpu-supply = <&buck1_0v9>;
+};
+
+&cpu_3 {
+ cpu-supply = <&buck1_0v9>;
+};
+
+&cpu_4 {
+ cpu-supply = <&buck1_0v9>;
+};
+
+&cpu_5 {
+ cpu-supply = <&buck1_0v9>;
+};
+
+&cpu_6 {
+ cpu-supply = <&buck1_0v9>;
+};
+
+&cpu_7 {
+ cpu-supply = <&buck1_0v9>;
+};
+
ð0 {
phy-handle = <&rgmii0>;
phy-mode = "rgmii-id";
@@ -178,7 +211,7 @@ pmic@41 {
dldoin2-supply = <&buck5>;
regulators {
- buck1 {
+ buck1_0v9: buck1 {
regulator-min-microvolt = <500000>;
regulator-max-microvolt = <1050000>;
regulator-ramp-delay = <5000>;
--
2.53.0
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/3] riscv: dts: spacemit: orangepi-rv2: Add cpu scaling for K1 SoC
2026-08-04 13:32 [PATCH 0/3] riscv: dts: spacemit: add cpu scaling for 3 boards Andre Heider
2026-08-04 13:32 ` [PATCH 1/3] riscv: dts: spacemit: k1-musepi-pro: add cpu scaling Andre Heider
@ 2026-08-04 13:32 ` Andre Heider
2026-08-04 13:32 ` [PATCH 3/3] riscv: dts: spacemit: orangepi-r2s: " Andre Heider
2 siblings, 0 replies; 4+ messages in thread
From: Andre Heider @ 2026-08-04 13:32 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Paul Walmsley,
Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Yixun Lan
Cc: Vincent Legoll, devicetree, linux-riscv, spacemit, linux-kernel
From: Vincent Legoll <vincent.legoll@gmail.com>
Enable CPU DVFS on OrangePi RV2
Signed-off-by: Vincent Legoll <vincent.legoll@gmail.com>
---
.../boot/dts/spacemit/k1-orangepi-rv2.dts | 35 ++++++++++++++++++-
1 file changed, 34 insertions(+), 1 deletion(-)
diff --git a/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts b/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts
index b907a1396b21..dc6836ff7f1c 100644
--- a/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts
+++ b/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts
@@ -7,6 +7,7 @@
/dts-v1/;
#include "k1.dtsi"
+#include "k1-opp.dtsi"
#include "k1-pinctrl.dtsi"
/ {
@@ -80,6 +81,38 @@ &combo_phy {
status = "okay";
};
+&cpu_0 {
+ cpu-supply = <&buck1_0v9>;
+};
+
+&cpu_1 {
+ cpu-supply = <&buck1_0v9>;
+};
+
+&cpu_2 {
+ cpu-supply = <&buck1_0v9>;
+};
+
+&cpu_3 {
+ cpu-supply = <&buck1_0v9>;
+};
+
+&cpu_4 {
+ cpu-supply = <&buck1_0v9>;
+};
+
+&cpu_5 {
+ cpu-supply = <&buck1_0v9>;
+};
+
+&cpu_6 {
+ cpu-supply = <&buck1_0v9>;
+};
+
+&cpu_7 {
+ cpu-supply = <&buck1_0v9>;
+};
+
&emmc {
bus-width = <8>;
mmc-hs400-1_8v;
@@ -162,7 +195,7 @@ pmic@41 {
dldoin2-supply = <&buck5>;
regulators {
- buck1 {
+ buck1_0v9: buck1 {
regulator-min-microvolt = <500000>;
regulator-max-microvolt = <1050000>;
regulator-ramp-delay = <5000>;
--
2.53.0
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 3/3] riscv: dts: spacemit: orangepi-r2s: Add cpu scaling for K1 SoC
2026-08-04 13:32 [PATCH 0/3] riscv: dts: spacemit: add cpu scaling for 3 boards Andre Heider
2026-08-04 13:32 ` [PATCH 1/3] riscv: dts: spacemit: k1-musepi-pro: add cpu scaling Andre Heider
2026-08-04 13:32 ` [PATCH 2/3] riscv: dts: spacemit: orangepi-rv2: Add cpu scaling for K1 SoC Andre Heider
@ 2026-08-04 13:32 ` Andre Heider
2 siblings, 0 replies; 4+ messages in thread
From: Andre Heider @ 2026-08-04 13:32 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Paul Walmsley,
Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Yixun Lan
Cc: Jonatan Hazell, devicetree, linux-riscv, spacemit, linux-kernel
From: Jonatan Hazell <jonatanh@hotmail.com>
Enable CPU DVFS on OrangePi R2S by including the shared K1 OPP tables
and wiring the CPU cores to the P1 PMIC's buck1 rail.
This mirrors the existing cpu-scaling support for the Banana Pi BPI-F3
and OrangePi RV2. Tested on the R2S hardware.
Signed-off-by: Jonatan Hazell <jonatanh@hotmail.com>
---
.../boot/dts/spacemit/k1-orangepi-r2s.dts | 35 ++++++++++++++++++-
1 file changed, 34 insertions(+), 1 deletion(-)
diff --git a/arch/riscv/boot/dts/spacemit/k1-orangepi-r2s.dts b/arch/riscv/boot/dts/spacemit/k1-orangepi-r2s.dts
index 2d1ba34cb00e..6ebd4334410e 100644
--- a/arch/riscv/boot/dts/spacemit/k1-orangepi-r2s.dts
+++ b/arch/riscv/boot/dts/spacemit/k1-orangepi-r2s.dts
@@ -6,6 +6,7 @@
/dts-v1/;
#include "k1.dtsi"
+#include "k1-opp.dtsi"
#include "k1-pinctrl.dtsi"
/ {
@@ -50,6 +51,38 @@ vcc5v0_usb: regulator-vcc5v0-usb {
};
};
+&cpu_0 {
+ cpu-supply = <&buck1_0v9>;
+};
+
+&cpu_1 {
+ cpu-supply = <&buck1_0v9>;
+};
+
+&cpu_2 {
+ cpu-supply = <&buck1_0v9>;
+};
+
+&cpu_3 {
+ cpu-supply = <&buck1_0v9>;
+};
+
+&cpu_4 {
+ cpu-supply = <&buck1_0v9>;
+};
+
+&cpu_5 {
+ cpu-supply = <&buck1_0v9>;
+};
+
+&cpu_6 {
+ cpu-supply = <&buck1_0v9>;
+};
+
+&cpu_7 {
+ cpu-supply = <&buck1_0v9>;
+};
+
&combo_phy {
status = "okay";
};
@@ -132,7 +165,7 @@ pmic@41 {
dldoin2-supply = <&buck5>;
regulators {
- buck1 {
+ buck1_0v9: buck1 {
regulator-min-microvolt = <500000>;
regulator-max-microvolt = <1050000>;
regulator-ramp-delay = <5000>;
--
2.53.0
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-08-04 13:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-04 13:32 [PATCH 0/3] riscv: dts: spacemit: add cpu scaling for 3 boards Andre Heider
2026-08-04 13:32 ` [PATCH 1/3] riscv: dts: spacemit: k1-musepi-pro: add cpu scaling Andre Heider
2026-08-04 13:32 ` [PATCH 2/3] riscv: dts: spacemit: orangepi-rv2: Add cpu scaling for K1 SoC Andre Heider
2026-08-04 13:32 ` [PATCH 3/3] riscv: dts: spacemit: orangepi-r2s: " Andre Heider
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox