From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B3A8526F45A; Wed, 9 Jul 2025 11:07:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752059247; cv=none; b=ojPc35uy+GaOeuM/h+JLiHk4xz0K45qu6agU7GN2RFI/EiLbWOtw8lQp9cGPAeq/p/PxrxFGjVAu2IV9C+US0ZNxnvCp6wdzYfryslSl2TkuL6W/VvRsCCU1GquO6qeN1Q6kouIpAQWZxdFa+GMm4YSHNterTjKTwTwOi6FVDss= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752059247; c=relaxed/simple; bh=9xgK+fBhA8h6jU2nAkgquJvvHtf3UTyu5jZV7nmkulY=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=lqxKAR4Nd4qq6HHAqj4cfx30mvF12VMal1NTDtQ7tfOEmJaCyLUtsMK504QhNOM7v+mIXYcnRVfiWkcR9PXhPYwcxbQKus+sMfMprR51J2fSUYcq1UWEmyCGzj3AG7XALW+nJbizgrwUYjHbvA+Qz5s95YTU0NcvD0Jg6hmJf0Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=l0Ayf6ZX; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="l0Ayf6ZX" Received: by smtp.kernel.org (Postfix) with ESMTPS id 87503C4CEEF; Wed, 9 Jul 2025 11:07:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1752059247; bh=9xgK+fBhA8h6jU2nAkgquJvvHtf3UTyu5jZV7nmkulY=; h=From:Subject:Date:To:Cc:Reply-To:From; b=l0Ayf6ZXcoKrtMmriIZLctPpPQQ+doQ/iXreRso00nHWkXJqDa9EGTe/a76dERfUf CKY+D54U1F39xa+stGjhAH94xUgPZBjbeoCDk1ZmhD8aOGy7LetCR0MIA0MP5ZbnPY e69SvQsM+soSjGtDH32XmydI5AnGheg01k5eOnLMk3AjvcUxdFm/4PpDOHQm8Oslsd Kg7WgigAWkHKBpqxulAvcfdbKsVL34/pQVGr1oBXgJkkxvRw/Gm5lwGHVuycxbcxHw PiiuXcxXwlYaBFKkjV9jNtQ5nxTzFF50XCcgK+5NIiOJ5puS5b3SHDneJN3BaHpYCg TbkJOLpjAwlWg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 77566C83F0A; Wed, 9 Jul 2025 11:07:27 +0000 (UTC) From: Keguang Zhang via B4 Relay Subject: [PATCH v2 0/9] MIPS: loongson32: Convert all platform devices to DT Date: Wed, 09 Jul 2025 19:05:51 +0800 Message-Id: <20250709-loongson1-arch-v2-0-bcff6e518c09@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAA9NbmgC/zWNSw7CIBQAr9K8tY8ApR9ceQ/jgtBXILZgQI2x6 d1FE5ezmJkNCuVABY7NBpmeoYQUK8hDA9ab6AjDVBkklx1XQuGSUnQlRYEmW48dmdHSpKw2Gqp 0yzSH1y94vlSec1rx7jOZf6blg9SiVa0Ymei1Uv2AAq/kHnXH3t/pya0mLMymFfb9A3byxBqjA AAA To: Thomas Bogendoerfer , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jiaxun Yang , Keguang Zhang Cc: linux-mips@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1752059245; l=3440; i=keguang.zhang@gmail.com; s=20231129; h=from:subject:message-id; bh=9xgK+fBhA8h6jU2nAkgquJvvHtf3UTyu5jZV7nmkulY=; b=H+G1PpJx5Jx4sLoMA0qdN+92ka3q+Vr90XkUJakkUx8pUHiGmrDHCKGJh7ShbhBrmbFWrjXRi kfMkC6BMBMcCQx97SH4ple36WcC5lWv6ymHDOBlFDRjzU3bHkabn0bF X-Developer-Key: i=keguang.zhang@gmail.com; a=ed25519; pk=FMKGj/JgKll/MgClpNZ3frIIogsh5e5r8CeW2mr+WLs= X-Endpoint-Received: by B4 Relay for keguang.zhang@gmail.com/20231129 with auth_id=102 X-Original-From: Keguang Zhang Reply-To: keguang.zhang@gmail.com Convert all platform devices to Device Tree. Remove all obsolete platform device code. Switch to the generic MIPS kernel. Update Kconfig and Makefile accordingly. Update and rename the defconfig. Changes in v2: - Document two new boards: loongson,ls1b-demo and loongson,cq-t300b. - Submit complete DTS files for each board. - Switch to the generic MIPS kernel. - Consolidate Loongson1 defconfigs. - Link to v1: https://lore.kernel.org/all/20230729134318.1694467-1-keguang.zhang@gmail.com/ --- Keguang Zhang (9): dt-bindings: mips: loongson: Add LS1B demo board dt-bindings: mips: loongson: Add CQ-T300B board MIPS: dts: loongson: Add LS1B-DEMO board MIPS: dts: loongson: Add LSGZ_1B_DEV board MIPS: dts: loongson: Add Smartloong-1C board MIPS: dts: loongson: Add CQ-T300B board MIPS: loongson32: Switch to generic kernel MIPS: Unify Loongson1 PRID_REV MIPS: configs: Consolidate Loongson1 defconfigs .../devicetree/bindings/mips/loongson/devices.yaml | 2 + MAINTAINERS | 3 +- arch/mips/Kconfig | 64 ++--- arch/mips/boot/dts/Makefile | 1 + arch/mips/boot/dts/loongson/Makefile | 9 + arch/mips/boot/dts/loongson/cq-t300b.dts | 93 +++++++ arch/mips/boot/dts/loongson/loongson1.dtsi | 136 ++++++++++ arch/mips/boot/dts/loongson/loongson1b.dtsi | 198 ++++++++++++++ arch/mips/boot/dts/loongson/loongson1c.dtsi | 141 ++++++++++ arch/mips/boot/dts/loongson/ls1b-demo.dts | 108 ++++++++ arch/mips/boot/dts/loongson/lsgz_1b_dev.dts | 145 +++++++++++ arch/mips/boot/dts/loongson/smartloong-1c.dts | 93 +++++++ .../{loongson1b_defconfig => loongson1_defconfig} | 94 +++++-- arch/mips/configs/loongson1c_defconfig | 121 --------- arch/mips/include/asm/cpu-type.h | 3 +- arch/mips/include/asm/cpu.h | 3 +- arch/mips/include/asm/mach-loongson32/irq.h | 107 -------- arch/mips/include/asm/mach-loongson32/loongson1.h | 50 ---- arch/mips/include/asm/mach-loongson32/platform.h | 23 -- arch/mips/include/asm/mach-loongson32/regs-mux.h | 124 --------- arch/mips/kernel/cpu-probe.c | 6 +- arch/mips/loongson32/Kconfig | 43 +--- arch/mips/loongson32/Makefile | 17 -- arch/mips/loongson32/Platform | 1 - arch/mips/loongson32/common/Makefile | 6 - arch/mips/loongson32/common/irq.c | 191 -------------- arch/mips/loongson32/common/platform.c | 285 --------------------- arch/mips/loongson32/common/prom.c | 42 --- arch/mips/loongson32/common/setup.c | 26 -- arch/mips/loongson32/common/time.c | 23 -- arch/mips/loongson32/ls1b/Makefile | 6 - arch/mips/loongson32/ls1b/board.c | 55 ---- arch/mips/loongson32/ls1c/Makefile | 6 - arch/mips/loongson32/ls1c/board.c | 23 -- 34 files changed, 1049 insertions(+), 1199 deletions(-) --- base-commit: b5a1f9870f9828bd6625d6c946c66be4983d56f6 change-id: 20250414-loongson1-arch-5ea8ced4c9a9 Best regards, -- Keguang Zhang