From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7865ECCF9E5 for ; Sun, 26 Oct 2025 22:45:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=sCqN3EVy3fWj4G4FKMUZLDe1i+F8jkb2VM8LfvPsrLk=; b=DRlDGcUXuHSfVi yak8e8J1Ii32Mu+PlqrA/LxXaZ25zJxSo638cilnVW80Unj/0ycJJeEt/Mf6a0MNv8ZN2ZXguK2QJ KctaSKDXfKDKpvdvpw0oqrqVPVSzd93gJuA4Rmlz8N1ZbrcIZTvMNBSCC//1wUuO7Rjt61d20pTLI H8WWDALwV0LLbmiTA+RuoUmiBr8Gld24qIYiCMtOlfVXznsvDHvhlkOIewK+OkMe2plVFEAbUYiG1 xpEi1FbPF3YzRs4CrzTqsKFdD/qHTcR07z5nAZSBNit7YxznL6CDVqIWSPAcf7+Smimu7z7bVBEMo Sa7TOUBtmq0Yc+AXgERA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vD9Tu-0000000CpAo-3TE0; Sun, 26 Oct 2025 22:44:58 +0000 Received: from hall.aurel32.net ([2001:bc8:30d7:100::1]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vD9Tr-0000000Cp9f-3Xy4 for linux-riscv@lists.infradead.org; Sun, 26 Oct 2025 22:44:57 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=aurel32.net ; s=202004.hall; h=Content-Transfer-Encoding:MIME-Version:Message-ID:Date: Subject:Cc:To:From:Content-Type:From:Reply-To:Subject:Content-ID: Content-Description:In-Reply-To:References:X-Debbugs-Cc; bh=Orn0lmQZTpTRXV6O0W26xT9lQ0WI/2Temggr2n9UBr8=; b=0rBsHn9okjlt+oed7tHwcHk4aw NMRPnaKfkQ59JoneVtvr5pppB9acbJcBV65e9LMoO8fGpC/rIvy25aos9f8vHBzisz14t7dpwz//D HhMUox3M1eKvsWNUYf5cO3qlFdg/h1QUw8UPA+yG5I3uCjeaPelwVGBg2QiEoMh04ZWuNdZjHAD7X vCpVi4AmgIqs3rRS9apIj+3u/Qf4Ro+tKEbcMD8CPSCfsWl30LLFnzblTrJyuZLzV+QRKJKMiYwoj Osi+v94H4QQ9H45pmj3rSHWoiF/XpIcebPBoyUVfB8Q6azhJ9RzMevAghYEaEXY1bOKZ9Efh+Q4Dv 0dZABUng==; Received: from [2a01:e34:ec5d:a741:1ee1:92ff:feb4:5ec0] (helo=ohm.rr44.fr) by hall.aurel32.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vD9TV-0065U1-1G; Sun, 26 Oct 2025 23:44:33 +0100 From: Aurelien Jarno To: linux-kernel@vger.kernel.org, Lee Jones , Sebastian Reichel , Troy Mitchell , Yixun Lan , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , linux-riscv@lists.infradead.org (open list:RISC-V ARCHITECTURE:Keyword:riscv), spacemit@lists.linux.dev (open list:RISC-V SPACEMIT SoC Support:Keyword:spacemit) Cc: Aurelien Jarno , linux-pm@vger.kernel.org (open list:SYSTEM RESET/SHUTDOWN DRIVERS), linux-riscv@lists.infradead.org (open list:RISC-V SPACEMIT SoC Support), spacemit@lists.linux.dev (open list:RISC-V SPACEMIT SoC Support) Subject: [PATCH v4 0/2] driver: reset: spacemit-p1: add driver for poweroff/reboot Date: Sun, 26 Oct 2025 23:41:13 +0100 Message-ID: <20251026224424.1891541-1-aurelien@aurel32.net> X-Mailer: git-send-email 2.47.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20251026_154456_334870_D972289F X-CRM114-Status: GOOD ( 10.22 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org This adds poweroff/reboot support for the SpacemiT P1 PMIC chip, which is commonly paired with the SpacemiT K1 SoC. Note: For reliable operation, this driver depends on a this patch that adds atomic transfer support to the SpacemiT I2C controller driver: https://lore.kernel.org/spacemit/20251009-k1-i2c-atomic-v4-1-a89367870286@linux.spacemit.com/ Changes between version 3 and version 4: - Replace the "select" by a "depends on" - Remove outdated Reviewed-by Here is version 3 of this series: https://lore.kernel.org/spacemit/20251021201451.1013640-1-aurelien@aurel32.net/ Changes between version 2 and version 3: - Allow building as a module - Remove outdated Acked-by and Tested-by - Collect Reviewed-by Here is version 2 of this series: https://lore.kernel.org/spacemit/20251019191519.3898095-1-aurelien@aurel32.net/ Changes between version 1 and version 2: - Rebase onto v6.18-rc1 - Use dev_err_probe() to simplify the code - Fix indentation of patch 1 - Collect Acked-by and Tested-by Here is version 1 of this series: https://lore.kernel.org/spacemit/20250927220824.1267318-1-aurelien@aurel32.net/ Aurelien Jarno (2): driver: reset: spacemit-p1: add driver for poweroff/reboot mfd: simple-mfd-i2c: add a reboot cell for the SpacemiT P1 chip drivers/mfd/simple-mfd-i2c.c | 1 + drivers/power/reset/Kconfig | 9 +++ drivers/power/reset/Makefile | 1 + drivers/power/reset/spacemit-p1-reboot.c | 88 ++++++++++++++++++++++++ 4 files changed, 99 insertions(+) create mode 100644 drivers/power/reset/spacemit-p1-reboot.c -- 2.47.2 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv