2022-05-11 09:02:13

by Qing Zhang

[permalink] [raw]
Subject: [PATCH 2/3] MIPS: Loongson64: DTS: Add Loongson-2K1000 DTS related smp support

Add the device tree node and connect it to the CPU nodes.

Signed-off-by: Qing Zhang <[email protected]>
---
.../mips/boot/dts/loongson/loongson64-2k1000.dtsi | 15 +++++++++++++++
1 file changed, 15 insertions(+)

diff --git a/arch/mips/boot/dts/loongson/loongson64-2k1000.dtsi b/arch/mips/boot/dts/loongson/loongson64-2k1000.dtsi
index 8143a61111e3..3b765c063d7a 100644
--- a/arch/mips/boot/dts/loongson/loongson64-2k1000.dtsi
+++ b/arch/mips/boot/dts/loongson/loongson64-2k1000.dtsi
@@ -20,6 +20,16 @@
reg = <0x0>;
#clock-cells = <1>;
clocks = <&cpu_clk>;
+ enable-method = "mmio-ipi";
+ };
+
+ cpu1: cpu@1 {
+ device_type = "cpu";
+ compatible = "loongson,gs264";
+ reg = <0x1>;
+ #clock-cells = <1>;
+ clocks = <&cpu_clk>;
+ enable-method = "mmio-ipi";
};
};

@@ -44,6 +54,11 @@
compatible = "mti,cpu-interrupt-controller";
};

+ ipi: interrupt-controller@1fe11000 {
+ compatible = "loongson, mmio-ipi";
+ reg = <0 0x1fe11000 0 0x40>;
+ };
+
package0: bus@10000000 {
compatible = "simple-bus";
#address-cells = <2>;
--
2.20.1



2022-05-13 01:50:08

by Krzysztof Kozlowski

[permalink] [raw]
Subject: Re: [PATCH 2/3] MIPS: Loongson64: DTS: Add Loongson-2K1000 DTS related smp support

On 11/05/2022 10:30, Qing Zhang wrote:
> Add the device tree node and connect it to the CPU nodes.

>
> + ipi: interrupt-controller@1fe11000 {
> + compatible = "loongson, mmio-ipi";

No spaces in compatibles. The compatible needs bindings.


Best regards,
Krzysztof