From nobody Mon Feb 9 05:58:30 2026 Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 14F3841C2E1 for ; Tue, 20 Jan 2026 11:11:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768907481; cv=none; b=a/2hpvS1TUIqGVsM6GI44nciyuzkNVMOoBNDMmIRZS/KM71OB7k4XHQRafhRXrhIJE3oed31cyzE97g7mzdt30DIiFBB0oxcWnaF2tPeHxiyy4mLmRWp9KCcmzgaTsSAmdQaQpx9xLcRI/SnVDMsdIRsZnbKUY4ucjmIEGDTsbQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768907481; c=relaxed/simple; bh=dfwYfXDU7fRvePV7n6sSb6fLGHYkCvkdHHCR07GvgC4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=rISLaH91NEjrjoqGB/Umis4rKDVwNW8mPsxWiBGz+qdhhWFNhfbqorN2kwOQKwR22Guk3pOdKI/j5aUgEyKpX/r7wmmSNI2rs1Xx4t7vEZ3VON0JKd6UbQVOp2SxDBgLA8zSyufPH/s/PW6DIF/ynL20V18+CIaA0fKGrydBXyM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=riscstar.com; spf=pass smtp.mailfrom=riscstar.com; dkim=pass (2048-bit key) header.d=riscstar-com.20230601.gappssmtp.com header.i=@riscstar-com.20230601.gappssmtp.com header.b=L7YbPn8l; arc=none smtp.client-ip=209.85.210.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=riscstar.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=riscstar.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=riscstar-com.20230601.gappssmtp.com header.i=@riscstar-com.20230601.gappssmtp.com header.b="L7YbPn8l" Received: by mail-pf1-f172.google.com with SMTP id d2e1a72fcca58-81e9d0cd082so4078252b3a.0 for ; Tue, 20 Jan 2026 03:11:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=riscstar-com.20230601.gappssmtp.com; s=20230601; t=1768907479; x=1769512279; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=JaBSZVkVDpyEFk0K6mei2gWdyNIGdA1b2fG0c+mMO1c=; b=L7YbPn8lCpt4K5uxcX9gVkPm+WnVbHmbzOhD/OrSXKQWqSvpBfXBYOIqfb/ohaY2U6 PQ9s72o1LtT63Z198blFgTcESPzCDjJyrK7dokr6M8s81xsvCNkKfOU7P/hpw/GGPNOY 80/+vGtX2rGHo4T7fnRjw9AwIxfIeAE6tahmzJEasOFJmdkHZEUTMScde1UFNf3tzO1z LRhQ0i//8MKKaF4NnaOS2Z/c1SaCu8acUe+Q2bIyuOLK7I1LegnjczU8c5No/dDaszyq ibZgluRLYQYq5QeWYoqR6htO1S8Fy3W3D4ZrjBq0Zd1Ku4GXwriO17BEYRD5o+0rhHiH 5s6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768907479; x=1769512279; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=JaBSZVkVDpyEFk0K6mei2gWdyNIGdA1b2fG0c+mMO1c=; b=FCuZ/N7qw/RhJ7fmRfpFNUuUfu9+lDn3QTAiGyeVYz7G0acP7jWUFQEWvhe3PUQJ67 V/egE3nqquB2Xlo7R2W4UYGZQQ5XmPDtCXDFIjmtaNvydRT4NWoGVvTPOzzh17ULpZx7 8CsGeYJSf6caWFMmN4MWgde3Ad7CEmGefG/4FKGJgaTHKJtiMK6taGAkvCmUikcqiSLq shBG11/brYCgOn6kHehmfxxBbGh3QtYNN3yon82PZU60Fq/N6AIzsw/jH9xBXv9pTh21 JtXPpIcCf9Oak8XLPiGFymVupBMV/YLYuYYVH7B4AQojuuXtfTfUifSA8uOlHoHL3gAg H8mQ== X-Forwarded-Encrypted: i=1; AJvYcCVW2YyfHiPGVpEl4Dhell3RXKStxcLuMFj7R9+vAetIm/Pea9sasjcuxoEQrr7g4hA/91qM0DIRko89ewo=@vger.kernel.org X-Gm-Message-State: AOJu0YwJDkMWYHsp/cN+Aw3nb4BH8KcjIZ+vfL9i3cm6TRfiAeJe2e3+ vZZZSOEpjt1tccpuStbcyu21VQrjNzrajxl/I+ITWPfnyUTvYrnBN3G5mgp5nddiEsbeyebbUKc 3HM4omC/iWw== X-Gm-Gg: AY/fxX56GA7cs0HUvtyqruRavxYD9F6ArJpZ2pgEY5rlZ/L2qXuTC+X9EDfLxDJ/igj u2xyJjPRuRmO+c0iOEs9KOySYr4Pvxm7PxpxDYsf5soqv/CCNr5S5NM/GQHCq+x52yTkt5GRWL8 kBGOeULPLujWZO2PGZ6Wi5PcLUkct239PLN7cfcEKxEYzhFl248EsdT5Uc5hcuemAHk6mi/1hYf g4z7Oi8frpFT3sNOOTmdAlFqRXt1vzsMzps3H1pG4NluTODgtn3fyjHRCcS3aa8lbt1Il0WJVhQ pa4td+yhGOEkEoeEfNvJw5ovLlk6SehuS8aw0LZasnIJ/yMtv/8G51DqwpNJxCNhz21r6BSgIL2 6MtXwozLLFw/Qac1YDQ243d6quznWT15sOu4bouhUOPr+0a7ATci177y7KBSqKYMdDg8b/pAl4Z c5hGDwWjpgErsW0afHEsH7b54EA/0+BY63kB2l1LaK1w== X-Received: by 2002:a05:6a00:3a25:b0:81f:4063:f1e4 with SMTP id d2e1a72fcca58-81fa184efc7mr11353743b3a.56.1768907479280; Tue, 20 Jan 2026 03:11:19 -0800 (PST) Received: from [127.0.1.1] ([2a12:a305:4::4015]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-81fa10efc6bsm11398349b3a.29.2026.01.20.03.11.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Jan 2026 03:11:18 -0800 (PST) From: Guodong Xu Date: Tue, 20 Jan 2026 19:10:50 +0800 Subject: [PATCH v3 2/4] reset: Create subdirectory for SpacemiT drivers 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: quoted-printable Message-Id: <20260120-k3-reset-v3-2-effe87f4bdbe@riscstar.com> References: <20260120-k3-reset-v3-0-effe87f4bdbe@riscstar.com> In-Reply-To: <20260120-k3-reset-v3-0-effe87f4bdbe@riscstar.com> To: Philipp Zabel , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Yixun Lan , Haylen Chu Cc: Alex Elder , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, spacemit@lists.linux.dev, Guodong Xu X-Mailer: b4 0.14.3 Create a dedicated subdirectory for SpacemiT reset drivers to allow for better organization as support for more SoCs is added. Move the existing K1 reset driver into this new directory and rename it to reset-spacemit-k1.c. Rename the Kconfig symbol to RESET_SPACEMIT_K1 and update its default from ARCH_SPACEMIT to SPACEMIT_K1_CCU. The reset driver depends on the clock driver to register reset devices as an auxiliary device, so the default should reflect this dependency. Also sort the drivers/reset/Kconfig entries alphabetically. Reviewed-by: Alex Elder Signed-off-by: Guodong Xu --- v3: Add Alex's reviewed-by. Remove the trailing empty newline in Makefile to keep constant style with others in the reset folder. v2: No change. --- drivers/reset/Kconfig | 12 ++--------= -- drivers/reset/Makefile | 2 +- drivers/reset/spacemit/Kconfig | 14 ++++++++++= ++++ drivers/reset/spacemit/Makefile | 2 ++ .../{reset-spacemit.c =3D> spacemit/reset-spacemit-k1.c} | 0 5 files changed, 19 insertions(+), 11 deletions(-) diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig index 6e5d6deffa7d..b110f0fa7bb1 100644 --- a/drivers/reset/Kconfig +++ b/drivers/reset/Kconfig @@ -299,15 +299,6 @@ config RESET_SOCFPGA This enables the reset driver for the SoCFPGA ARMv7 platforms. This driver gets initialized early during platform init calls. =20 -config RESET_SPACEMIT - tristate "SpacemiT reset driver" - depends on ARCH_SPACEMIT || COMPILE_TEST - select AUXILIARY_BUS - default ARCH_SPACEMIT - help - This enables the reset controller driver for SpacemiT SoCs, - including the K1. - config RESET_SUNPLUS bool "Sunplus SoCs Reset Driver" if COMPILE_TEST default ARCH_SUNPLUS @@ -406,9 +397,10 @@ config RESET_ZYNQMP This enables the reset controller driver for Xilinx ZynqMP SoCs. =20 source "drivers/reset/amlogic/Kconfig" +source "drivers/reset/hisilicon/Kconfig" +source "drivers/reset/spacemit/Kconfig" source "drivers/reset/starfive/Kconfig" source "drivers/reset/sti/Kconfig" -source "drivers/reset/hisilicon/Kconfig" source "drivers/reset/tegra/Kconfig" =20 endif diff --git a/drivers/reset/Makefile b/drivers/reset/Makefile index 9c3e484dfd81..fc0cc99f8514 100644 --- a/drivers/reset/Makefile +++ b/drivers/reset/Makefile @@ -2,6 +2,7 @@ obj-y +=3D core.o obj-y +=3D amlogic/ obj-y +=3D hisilicon/ +obj-y +=3D spacemit/ obj-y +=3D starfive/ obj-y +=3D sti/ obj-y +=3D tegra/ @@ -38,7 +39,6 @@ obj-$(CONFIG_RESET_RZV2H_USB2PHY) +=3D reset-rzv2h-usb2ph= y.o obj-$(CONFIG_RESET_SCMI) +=3D reset-scmi.o obj-$(CONFIG_RESET_SIMPLE) +=3D reset-simple.o obj-$(CONFIG_RESET_SOCFPGA) +=3D reset-socfpga.o -obj-$(CONFIG_RESET_SPACEMIT) +=3D reset-spacemit.o obj-$(CONFIG_RESET_SUNPLUS) +=3D reset-sunplus.o obj-$(CONFIG_RESET_SUNXI) +=3D reset-sunxi.o obj-$(CONFIG_RESET_TH1520) +=3D reset-th1520.o diff --git a/drivers/reset/spacemit/Kconfig b/drivers/reset/spacemit/Kconfig new file mode 100644 index 000000000000..552884e8b72a --- /dev/null +++ b/drivers/reset/spacemit/Kconfig @@ -0,0 +1,14 @@ +# SPDX-License-Identifier: GPL-2.0-only + +config RESET_SPACEMIT_K1 + tristate "SpacemiT K1 reset driver" + depends on ARCH_SPACEMIT || COMPILE_TEST + depends on SPACEMIT_K1_CCU + select AUXILIARY_BUS + default SPACEMIT_K1_CCU + help + Support for reset controller in SpacemiT K1 SoC. + This driver works with the SpacemiT K1 clock controller + unit (CCU) driver to provide reset control functionality + for various peripherals and subsystems in the SoC. + diff --git a/drivers/reset/spacemit/Makefile b/drivers/reset/spacemit/Makef= ile new file mode 100644 index 000000000000..34e3350136bb --- /dev/null +++ b/drivers/reset/spacemit/Makefile @@ -0,0 +1,2 @@ +# SPDX-License-Identifier: GPL-2.0 +obj-$(CONFIG_RESET_SPACEMIT_K1) +=3D reset-spacemit-k1.o diff --git a/drivers/reset/reset-spacemit.c b/drivers/reset/spacemit/reset-= spacemit-k1.c similarity index 100% rename from drivers/reset/reset-spacemit.c rename to drivers/reset/spacemit/reset-spacemit-k1.c --=20 2.43.0