Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp63163pxf; Tue, 9 Mar 2021 23:58:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJx21mqf67yxwySkhin4YAv4mzcv3nkln9GHZWKJ9k0QTVWkhyCRjQHeawrF3k3G4GIMjT+q X-Received: by 2002:aa7:df14:: with SMTP id c20mr1835009edy.197.1615363122459; Tue, 09 Mar 2021 23:58:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615363122; cv=none; d=google.com; s=arc-20160816; b=nZ+AbITlzdN6Vvocl9xhs/YK4siUUITR37pzyE/tKKe/RI9Wr/cw+MM/S3nSSSjl/Y Rf4RFrzZaLnhH7zHZYjNVFEZbSQBeZ8Y/ONr5HLkQnXlp6vfCnfuFUsPogeh3Iie6yx5 pTtDKSfi7cmx8X1Ma2q6nmTe0huMtt2UNwaaQh7nd1h8mGScQsGQeVZaXU3VuydYMLY/ UFHGg9A/kObHlPPv6ZnDxuKnVkZZTjpYZeY9msxyWMyacSulI5TmLjJ235Rbb6+ci2SL ARqLc+nn/qqlJeG9yjO2sMTPJM2bz8cSXbNvaedH0BOhdKhZSDtFIqTYOdwtZzn48sOi cuKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=U7Jl6zk0Tn6ag4BOhFDWxfG4PF3HZJ5m5FFys95lABU=; b=phAwTGwJhrayYeYX3GRMIyjGtUHdtnMVXERC0Iaa8Pzslrz17l4/4MpIbpnLAYbQph WegxL1vJsilmV45C5EuljRdYT/AxH5ludYx9h6GS6QOFf5wMDPCHpmcv8tNf2BUVycsr fIDRxJpGIr6HX8jJctA0hw6n8LBKrwBAVoCqtUkyHIA/zk3+HJXLAsKgZ/v3Qh95aQiu L+VtNIoukjsJslzLo05D/WUwBxVAua18Zgzl1XPD2pcGWPf2s4rRplOus77KR+ViBwdj bmVzS2Vn6Rusor2mXaIfzXb0E1MO0R3U8IV2ZVsN4yQdmmV+k5mgTRRw0h++pPs/Srv9 mNwg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m23si11036805edq.397.2021.03.09.23.58.20; Tue, 09 Mar 2021 23:58:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232280AbhCJH5T (ORCPT + 99 others); Wed, 10 Mar 2021 02:57:19 -0500 Received: from mail.loongson.cn ([114.242.206.163]:33360 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229828AbhCJH4z (ORCPT ); Wed, 10 Mar 2021 02:56:55 -0500 Received: from localhost.localdomain (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9Dxn_O3e0hg6KoXAA--.12657S2; Wed, 10 Mar 2021 15:56:39 +0800 (CST) From: Qing Zhang To: Huacai Chen , Jiaxun Yang , Thomas Bogendoerfer , Thomas Gleixner , Marc Zyngier Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v4 0/7] Add basic support for Loongson-2K1000 Date: Wed, 10 Mar 2021 15:56:32 +0800 Message-Id: <20210310075639.20372-1-zhangqing@loongson.cn> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf9Dxn_O3e0hg6KoXAA--.12657S2 X-Coremail-Antisp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X-Mailing-List: linux-kernel@vger.kernel.org These patches support single-core DTS boot to the serial port login interface, which can be operated using conventional commands. I have successfully tested it on the Loongson 2K1000 machine. pmon: http://cgit.loongnix.org/cgit/pmon-loongson3/ Note: After the basic support is merged, I will submit SMP and other peripheral support in the future. Qing Zhang (7): MIPS: Loongson64: DeviceTree for Loongson-2K1000 MIPS: Loongson64: Distinguish firmware dependencies DTB/LEFI MIPS: Loongson64: Add support for the Loongson-2K1000 to get cpu_clock_freq MIPS: Loongson64: Add Loongson-2K1000 early_printk_port irqchip/loongson-liointc: irqchip add 2.0 version dt-bindings: interrupt-controller: Add Loongson-2K1000 LIOINTC MIPS: Loongson64: Add a Loongson-2K1000 default config file .../loongson,liointc.yaml | 7 +- arch/mips/boot/dts/loongson/Makefile | 1 + .../boot/dts/loongson/loongson64-2k1000.dtsi | 243 ++++++++++++ .../dts/loongson/loongson64_2core_2k1000.dts | 10 + arch/mips/configs/loongson2k_defconfig | 353 ++++++++++++++++++ .../include/asm/mach-loongson64/boot_param.h | 6 + .../asm/mach-loongson64/builtin_dtbs.h | 1 + .../include/asm/mach-loongson64/loongson.h | 3 +- arch/mips/loongson64/env.c | 13 +- arch/mips/loongson64/init.c | 21 +- arch/mips/loongson64/time.c | 24 ++ drivers/irqchip/irq-loongson-liointc.c | 58 ++- 12 files changed, 723 insertions(+), 17 deletions(-) create mode 100644 arch/mips/boot/dts/loongson/loongson64-2k1000.dtsi create mode 100644 arch/mips/boot/dts/loongson/loongson64_2core_2k1000.dts create mode 100644 arch/mips/configs/loongson2k_defconfig -- 2.20.1