mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-13 02:28:43 +04:00
realtek: rtl930x: describe CPUs and reserve IP7 for CP0 timer
Describe both MIPS 34Kc CPUs in the RTL930x device tree and provide their shared 800 MHz CPU clock through a fixed-clock provider. Keep the existing frequency property on the CPUs node, as the Realtek MIPS platform's measure_hpt_freq callback uses it to determine the CP0 Count frequency. The CPU clock references provide a proper clock description for both CPU nodes independently of that platform-specific timer setup. RTL930x has two CPU cores, so add both CPU nodes and reference the shared CPU clock from each of them. Also stop routing the RTL930x interrupt controller through CPU interrupt IP7. The per-CPU CP0 Count/Compare timer uses IP7, and having the RTL930x interrupt controller claim it prevents the R4K clockevent from requesting its timer IRQ with "Failed to request irq 7 (timer)". Leave IP7 available for the CP0 Count/Compare timer while the RTL930x interrupt controller continues to use IP2 through IP6. This allows the R4K clockevent to initialize correctly on both CPUs. Assisted-by: ChatGPT (OpenAI GPT-5.6 Sol) Link: https://github.com/openwrt/openwrt/pull/24969 Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
This commit is contained in:
1 parent
96123077f0
commit
5aedad31aa
1 file changed
+17
-2
@@ -15,10 +15,25 @@
|
||||
#size-cells = <0>;
|
||||
frequency = <800000000>;
|
||||
|
||||
cpu@0 {
|
||||
cpu0: cpu@0 {
|
||||
device_type = "cpu";
|
||||
compatible = "mips,mips34Kc";
|
||||
reg = <0>;
|
||||
clocks = <&cpu_clk>;
|
||||
};
|
||||
|
||||
cpu1: cpu@1 {
|
||||
device_type = "cpu";
|
||||
compatible = "mips,mips34Kc";
|
||||
reg = <1>;
|
||||
clocks = <&cpu_clk>;
|
||||
};
|
||||
};
|
||||
|
||||
cpu_clk: cpu-clock {
|
||||
compatible = "fixed-clock";
|
||||
#clock-cells = <0>;
|
||||
clock-frequency = <800000000>;
|
||||
};
|
||||
|
||||
memory@0 {
|
||||
@@ -69,7 +84,7 @@
|
||||
#interrupt-cells = <2>;
|
||||
|
||||
interrupt-parent = <&cpuintc>;
|
||||
interrupts = <2>, <3>, <4>, <5>, <6>, <7>;
|
||||
interrupts = <2>, <3>, <4>, <5>, <6>;
|
||||
};
|
||||
|
||||
snand: spi@1a400 {
|
||||
|
||||
Reference in new issue
Block a user