diff mbox series

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

Message ID 20220511083007.17700-2-zhangqing@loongson.cn (mailing list archive)
State New
Headers show
Series [1/3] MIPS: Loongson64: Add Loongson-2K1000 SMP support | expand

Commit Message

Qing Zhang May 11, 2022, 8:30 a.m. UTC
Add the device tree node and connect it to the CPU nodes.

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

Comments

Krzysztof Kozlowski May 11, 2022, 4:04 p.m. UTC | #1
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
diff mbox series

Patch

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>;