From nobody Mon Feb 9 13:58:12 2026 Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) (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 87E222F360A for ; Mon, 29 Dec 2025 11:04:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767006277; cv=none; b=Gl+QsFevORzfVrbN5n8Inls/fIVFIgwSLubSTwNRyQs19AaGT6s+BcqxdzJEPfLSvAbW9xcJYc7+niCjyjoyzzBDPkh45uSFgx8wvsMzKiiD5JE4zduwOfrH1X8+18XsV7QwvdhP/GhICqTJ9R+x45x4H0HYneT5mYyK18FmK7c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767006277; c=relaxed/simple; bh=VGGGcRCIUVxzkWMETn6PNZUzkC3pAjQmUfW65HhgBts=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=g9ZUwYZOdxP2uyszqLiyOOuD+oym0JpPgJch+JZ7WnGC7vMe0yYRFPsSpfPnLFKHj1FJsFJhS4tCV/PlLYdePXq9kBHLyJ93eMBtkFU4eQr0K+kDdfX8jFvXWZ22Bc7P/7rbzveh6OShmij290Wlaem+93IWuvJKkqAXejuJB3Q= 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=E3YHwhHJ; arc=none smtp.client-ip=209.85.210.169 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="E3YHwhHJ" Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-7b852bb31d9so10511769b3a.0 for ; Mon, 29 Dec 2025 03:04:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=riscstar-com.20230601.gappssmtp.com; s=20230601; t=1767006275; x=1767611075; 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=KAntNEpArzSlcAAGRMjvdDnMb9wpchgIKOFTgm4WfoE=; b=E3YHwhHJujJCM0M7Scw729eqR4ghOYcFM00ZAoxybHIF2tiugU8pce9t/sUU6AcsmD 7i+sOXDv1NyamthiOvzMg/wQ1smpVy6h3Yhcnx7zuiNiPARm+n8sMwD8KvAfeCKC+10h mG99/Fnk+YSwdQodQmfvgrbIkwwyoY37NQvJJrIVdLJYsT8eL6OuPkVMADyHS5VgOgTv lo9y+R9KdAGn/VWwTlia6O+/g6moxbwNRrC7OfmQNkxB1afo0CxvUyIPX7OXvW54fzlR jcpZ/lAa313P4DT38L9O9R4Ry2aUuHUabOOsQX2/hoUMwarezvwqiE2B2VULhLN5jsgK dGMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767006275; x=1767611075; 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=KAntNEpArzSlcAAGRMjvdDnMb9wpchgIKOFTgm4WfoE=; b=jn8W3+uKSWeqpy3JUC8fIPrrwCIItjVwk9AMdfYYjUXkOkgNPudRtrBMB3b/8MLrs1 YRbw6Zr3RV1yk9xHBxzPxnYJcXIKlzTSR7kqfIA3p0rfJooe/1Pt8qKdPxJXtXb7un67 p0wmp6sX6X5Vt8F1teDsazCcOPI2M3zfh8EWMnbDvKOJtp1tJYmqA1vnK8v4TPAP589x OCfboxLzujOXdB0asWgRgar/KreXJhuwtvFm7Xc4aeexaBcfOxT2yeG9gP4/9XsCVxoa CQYY4KHKYRTY1wsdsZoScvYMLFVJlTvwgCb37E2rHL1wCVhIf/UxRmU7vayHPS/zWQEj EaIw== X-Forwarded-Encrypted: i=1; AJvYcCXUgqt31nJewPjbezoIm+EeO5H/fyawdMQeSZhpeeu+j74cZI6vTfFYXl2u2e68aZ7Xw5wOmqFlajqYsxo=@vger.kernel.org X-Gm-Message-State: AOJu0Yx3RTX7B2ueZoEU+Vk1c8njpITnVk0mRstvk/XyEXnBKIQkGLtr QsKbFP2HxCERzu0JvLVH09iDDm7TDSgrD0k881SXuPvijs1GfmxGFbySYlHEZGyabBU= X-Gm-Gg: AY/fxX6Rkppd3i//Z5qll+2joDsX+3ItTmzTIIYq9Ciz5LSWv/C9jo7oqSkE31sLmiD fTiWpSFISxmeVJSnSETvsLZHQAhd9ErjLi9HH/ElVG1WbY0500WhLbO7V3QeP0zcYfydFJCyMUo mWSZVRHSAGquULTGJBe83XJWpFnJ19j/oDRxB8bwAwnw5AuSlXmrf1jIejlO3OWDVlBFyfzIH8c N1+9e2ax0R/GxuFEUbeMCoSzi4numobslr3d76StlnhpcCsLsZGjPCikLu+7w48mUGeCD9Dt8Cd Vp9tFNCA5l0+zOXkYgS+f6WJw4MRIhUnpQyDKM0TbYd5FVQl8ZF6zGseTF+h+wXkkHn/MWn5qxl ln1KNiPFvYy5/rlbtSctKHdTRKRgW+QI6jj1Z0do4VM2CZ/38A8zvQC2Ep9l7qA6rAgkYuQKSzi w/Ryxqs5oYje+LUFRkJR569S65ZmXV6kziCZjFHisMhQ== X-Google-Smtp-Source: AGHT+IGxV3R1g7dAVVcT92rBapwrsIWptN0T742A8OO1aZUzgYn9fWWWA5QnwUnP9SD8OJK+En90Hw== X-Received: by 2002:a05:6a00:e17:b0:7a2:84f3:cefc with SMTP id d2e1a72fcca58-7ff61b8e615mr28076555b3a.0.1767006274915; Mon, 29 Dec 2025 03:04:34 -0800 (PST) Received: from [127.0.1.1] ([2a12:a305:4::40d7]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7ff7aa32916sm29338817b3a.8.2025.12.29.03.04.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Dec 2025 03:04:34 -0800 (PST) From: Guodong Xu Date: Mon, 29 Dec 2025 19:04:05 +0800 Subject: [PATCH 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: <20251229-k3-reset-v1-2-eda0747bded3@riscstar.com> References: <20251229-k3-reset-v1-0-eda0747bded3@riscstar.com> In-Reply-To: <20251229-k3-reset-v1-0-eda0747bded3@riscstar.com> To: Philipp Zabel , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Yixun Lan 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. Signed-off-by: Guodong Xu --- drivers/reset/Kconfig | 12 ++--------= -- drivers/reset/Makefile | 2 +- drivers/reset/spacemit/Kconfig | 14 ++++++++++= ++++ drivers/reset/spacemit/Makefile | 3 +++ .../{reset-spacemit.c =3D> spacemit/reset-spacemit-k1.c} | 0 5 files changed, 20 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..de7e358c74fd --- /dev/null +++ b/drivers/reset/spacemit/Makefile @@ -0,0 +1,3 @@ +# 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