From patchwork Wed May 11 08:30:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qing Zhang X-Patchwork-Id: 12845933 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B9EB4C433F5 for ; Wed, 11 May 2022 08:30:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243580AbiEKIaZ (ORCPT ); Wed, 11 May 2022 04:30:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237797AbiEKIaW (ORCPT ); Wed, 11 May 2022 04:30:22 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id ADDCB18B965; Wed, 11 May 2022 01:30:19 -0700 (PDT) Received: from localhost.localdomain (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9BxkNoPdHtiw+cQAA--.6S3; Wed, 11 May 2022 16:30:09 +0800 (CST) From: Qing Zhang To: Rob Herring , Krzysztof Kozlowski , Thomas Bogendoerfer , Jiaxun Yang Cc: devicetree@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, yangtiezhu@loongson.cn, zhangqing@loongson.cn Subject: [PATCH 2/3] MIPS: Loongson64: DTS: Add Loongson-2K1000 DTS related smp support Date: Wed, 11 May 2022 16:30:06 +0800 Message-Id: <20220511083007.17700-2-zhangqing@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220511083007.17700-1-zhangqing@loongson.cn> References: <20220511083007.17700-1-zhangqing@loongson.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAf9BxkNoPdHtiw+c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aVFxhVjvjDU0xZFpf9x0JUoVb9UUUUU= X-CM-SenderInfo: x2kd0wptlqwqxorr0wxvrqhubq/ Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org Add the device tree node and connect it to the CPU nodes. Signed-off-by: Qing Zhang --- .../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>;