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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 22971C433F5 for ; Mon, 25 Oct 2021 02:00:25 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 283D461073 for ; Mon, 25 Oct 2021 02:00:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 283D461073 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=sholland.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E62F083461; Mon, 25 Oct 2021 04:00:21 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=sholland.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=sholland.org header.i=@sholland.org header.b="BH2gqXRJ"; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="czhiERSW"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1AEEC834B0; Mon, 25 Oct 2021 04:00:18 +0200 (CEST) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 1192D82E7D for ; Mon, 25 Oct 2021 04:00:14 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=sholland.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=samuel@sholland.org Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 508E25C011D; Sun, 24 Oct 2021 22:00:13 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sun, 24 Oct 2021 22:00:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm1; bh=snukrqUC2+NpsTAX0MvmBNy76V a9lJywziRmaYEpVPU=; b=BH2gqXRJdyemeJNEuHATqPTCzz4Na0fJe2AaTBBddA LyAESAwGfMK7ZZxR6l809ewZET8IG8QpQgpB/Mv5X7NehqDbokwNtuBYV/Ah/dCz 3J2TFsFfc8yVmHwa2/JbimHMo66HNW0H8r7EGCvC2IS6UjRtqJt60dHGuaWXhGL9 mI00qVKl3w2b7qv8Ij94T2UN3IO7oNbXBCcx1HU5Oas4pNFQ3cyKGQMEhcVizXYO +ClTqjhDhxKb0c3kz8TGmsMDSPpjhzrEkJqRTxZ/s7EUdgaAYjHd3NNycIK/6L7R yjrKOVvmLPuKgaAlUBFUxyzitOInt/xeqtwIpD8J5DgQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=snukrqUC2+NpsTAX0 MvmBNy76Va9lJywziRmaYEpVPU=; b=czhiERSW5OuS4KJKnFk+WQAuLSPLoWSKn rxRdajOAMIX/HPFKqEQtKDhjpZav/PmLgGfOT1b0NNfROCezrVaKFMBhS2HMkg4Y ivyR8B4eFHdq7hcfJ/DMG8DwE/N8iIoEOJitVY7sHGyn/uLs590eSIlrpxBbH8ig sR6oJkUk6WqV2ruHNL7pZv/kPTNjH8vJW6xuNTNN+vZTlFnuFV8gs6E/3fCxNSqv 1yZrIYqtzBtuV+lgu3VLDXiwEUjPuCLul7NEPlc9jMugXzRenC6OEZgkTzgjwixm ym5CBXLW5mTtvqhMFyK6+c3LWetx8P7qjtKkEFvjzXUb5CBuBdJQg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvdefgedghedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgvlhcu jfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtffrrg htthgvrhhnpeethffhudfhueejhfeuffeihfefveetleekgeevjeeuleevteeljeeiudfh udetgeenucffohhmrghinhepohiilhgrsghsrdhorhhgnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepshgrmhhuvghlsehshhholhhlrghnugdr ohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 24 Oct 2021 22:00:11 -0400 (EDT) From: Samuel Holland To: u-boot@lists.denx.de, Jagan Teki , Andre Przywara Cc: Jaehoon Chung , Samuel Holland Subject: [PATCH v2 0/4] power: axp: Move poweroff to DM_PMIC/SYSRESET driver Date: Sun, 24 Oct 2021 21:00:06 -0500 Message-Id: <20211025020011.22052-1-samuel@sholland.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean This series replaces the do_poweroff() implementation from the non-DM AXP PMIC drivers with a sysreset uclass device, if sysreset is providing its own do_poweroff() definition. After applying this series, plus the following additional series: https://patchwork.ozlabs.org/project/uboot/list/?series=259143 https://patchwork.ozlabs.org/project/uboot/list/?series=259151 https://patchwork.ozlabs.org/project/uboot/list/?series=259152 and further enabling three Kconfig options: SYSRESET SYSRESET_WATCHDOG SYSRESET_WATCHDOG_AUTO you will have removed exactly one (1) call to pmic_bus_write() from U-Boot, hopefully without breaking anything else. Once all of these series land, I will send a patch enabling those options and removing the old do_poweroff() function implementations. At that point we will be one quarter of the way to removing pmic_bus from U-Boot proper. Note that because SYSRESET is disabled by default, each of those other series can be applied independently. Changes in v2: - Rebased on top of u-boot/master (axp_pmic_bind) Samuel Holland (4): include: axp_pmic: Add missing header guard definition include: axp_pmic: Include headers for all variants power: axp: Avoid do_poweroff conflict with sysreset power: pmic: axp: Implement poweroff via sysreset drivers/power/axp152.c | 2 ++ drivers/power/axp209.c | 2 ++ drivers/power/axp221.c | 2 ++ drivers/power/axp305.c | 2 +- drivers/power/axp809.c | 2 ++ drivers/power/axp818.c | 2 ++ drivers/power/pmic/Kconfig | 2 ++ drivers/power/pmic/axp.c | 49 +++++++++++++++++++++++++++++++++++++- include/axp152.h | 2 ++ include/axp209.h | 2 ++ include/axp221.h | 2 ++ include/axp809.h | 2 ++ include/axp818.h | 2 ++ include/axp_pmic.h | 13 +--------- 14 files changed, 72 insertions(+), 14 deletions(-) -- 2.32.0