Skip to contentSkip to conversation

riscv: dts: jh7110: override syscrg assigned clock rates with defaults

PATCH Superseded E Shattow 2 participants 3 messages May 3, 2025 – May 8, 2025 RISC-V

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

E Shattow

author
#0 lore raw

PATCH 1/1 riscv: dts: jh7110: override syscrg assigned clock rates with defaults

JH7110 drivers are missing support for CPU frequency scaling, so override upstream device-tree to use default clock rates for syscrg. This override duplicates a portion of jh7110-common-u-boot.dtsi file planned for removal.

---
 arch/riscv/dts/jh7110-u-boot.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/riscv/dts/jh7110-u-boot.dtsi +1 -0
index a9e318c4a31..13adbb6922c 100644
@@ -108,6 +108,7 @@
 
 &syscrg {
 	bootph-pre-ram;
+	assigned-clock-rates = <0>; /* cpufreq not implemented, use defaults */
 };
 
 &stgcrg {

base-commit: 6cc812f8cc55c132458c7da5b9fb7666315cbe8c

Signature · 1 line
2.49.0
author
#1 lore raw
Quoted 22 lines · E Shattow

JH7110 drivers are missing support for CPU frequency scaling, so override upstream device-tree to use default clock rates for syscrg. This override duplicates a portion of jh7110-common-u-boot.dtsi file planned for removal.

---
 arch/riscv/dts/jh7110-u-boot.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/riscv/dts/jh7110-u-boot.dtsi +1 -0
index a9e318c4a31..13adbb6922c 100644
@@ -108,6 +108,7 @@
 
 &syscrg {
 	bootph-pre-ram;
+	assigned-clock-rates = <0>; /* cpufreq not implemented, use defaults */
 };
 
 &stgcrg {
Quoted 1 line

base-commit: 6cc812f8cc55c132458c7da5b9fb7666315cbe8c

I missed the sort ordering on adding this, it should be ordered above the bootph-pre-ram hint. Will fix with v2 after review and taking comments. -E

#2 lore raw
In reply to E Shattow
Quoted 8 lines · E Shattow

JH7110 drivers are missing support for CPU frequency scaling, so override upstream device-tree to use default clock rates for syscrg. This override duplicates a portion of jh7110-common-u-boot.dtsi file planned for removal.

---
 arch/riscv/dts/jh7110-u-boot.dtsi | 1 +
 1 file changed, 1 insertion(+)

Hi,

You can add my reviewed-by tag when sending v2 patch.

Thanks,
Leo