[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220511083007.17700-2-zhangqing@loongson.cn>
Date: Wed, 11 May 2022 16:30:06 +0800
From: Qing Zhang <zhangqing@...ngson.cn>
To: Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Thomas Bogendoerfer <tsbogend@...ha.franken.de>,
Jiaxun Yang <jiaxun.yang@...goat.com>
Cc: devicetree@...r.kernel.org, linux-mips@...r.kernel.org,
linux-kernel@...r.kernel.org, yangtiezhu@...ngson.cn,
zhangqing@...ngson.cn
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 <zhangqing@...ngson.cn>
---
.../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@...11000 {
+ compatible = "loongson, mmio-ipi";
+ reg = <0 0x1fe11000 0 0x40>;
+ };
+
package0: bus@...00000 {
compatible = "simple-bus";
#address-cells = <2>;
--
2.20.1
Powered by blists - more mailing lists