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 8E401C433F5 for ; Thu, 4 Nov 2021 07:48:42 +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 1740761183 for ; Thu, 4 Nov 2021 07:48:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 1740761183 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de 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 84A4E83685; Thu, 4 Nov 2021 08:48:40 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1636012120; bh=1Sfch/8LSlWSEriPSQnUlTbGlMzDGOKpLeSi3NXvEiA=; h=Subject:To:Cc:References:From:Date:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=ljnX1egyKzGSmOOwjAaTRngoE/fz3cDO7R0g2Xik7PH87ASPZozJbIWp9soE8oawL I7PBrhT5kSOHca9E+PaQbw1zXGOvSpcNU5RRUHNFj3Krzu3K4Z3qLLMoceUoDfTEuw NxFZmBX2wEj7kpOqkvg0X4DyJF/r1oQkKyqFcUDs5NzzDb9DaiuT96Sv/6lGZ4ewCy KN2WrC3d/A+clMQm2MAZvx1rPZuQZxwsKV2E3BLtk+2bsvwZKVFhpD+ytV2aOM4fbW av2brQfopFmfxnxdYWJDSu2xhueYMjG+BdaC1sPqFeitOApjWwLy99ZLtz59LdsZ2Z bexnVL65kld+Q== Received: by phobos.denx.de (Postfix, from userid 109) id B15B383685; Thu, 4 Nov 2021 08:48:38 +0100 (CET) Received: from mout-u-204.mailbox.org (mout-u-204.mailbox.org [IPv6:2001:67c:2050:1::465:204]) (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 EA5048367E for ; Thu, 4 Nov 2021 08:48:33 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sr@denx.de Received: from smtp2.mailbox.org (unknown [91.198.250.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-204.mailbox.org (Postfix) with ESMTPS id 4HlG3P3TfPzQk11; Thu, 4 Nov 2021 08:48:33 +0100 (CET) Subject: Re: [PATCH v3 6/6] sunxi: Use sysreset framework for poweroff/reset To: Samuel Holland , u-boot@lists.denx.de, Jagan Teki , Andre Przywara Cc: Bin Meng , Heinrich Schuchardt , Sean Anderson , Simon Glass References: <20211104035516.28268-1-samuel@sholland.org> <20211104035516.28268-7-samuel@sholland.org> From: Stefan Roese Message-ID: <05e0da07-1c47-71f1-abbc-2f1cccaf5282@denx.de> Date: Thu, 4 Nov 2021 08:48:29 +0100 MIME-Version: 1.0 In-Reply-To: <20211104035516.28268-7-samuel@sholland.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-DE Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 555461300 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 On 04.11.21 04:55, Samuel Holland wrote: > Instead of hardcoding the watchdog for reset, and the PMIC for poweroff, > use the sysreset framework to manage the available poweroff/reset > backends. This allows (as examples) using the PMIC to do a cold reset, > and using a GPIO to power off H3/H5 boards lacking a PMIC. Furthermore, > it removes the need to hardcode watchdog MMIO addresses, since the > sysreset backends can be discovered using the device tree. > > Reviewed-by: Heinrich Schuchardt > Signed-off-by: Samuel Holland Reviewed-by: Stefan Roese Thanks, Stefan > --- > > (no changes since v2) > > Changes in v2: > - New patch > > arch/arm/Kconfig | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > index b4808d4c75..ae911d6e35 100644 > --- a/arch/arm/Kconfig > +++ b/arch/arm/Kconfig > @@ -1084,6 +1084,9 @@ config ARCH_SUNXI > imply SPL_MMC if MMC > imply SPL_POWER > imply SPL_SERIAL > + imply SYSRESET > + imply SYSRESET_WATCHDOG > + imply SYSRESET_WATCHDOG_AUTO > imply USB_GADGET > imply WDT > > Viele Grüße, Stefan -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr@denx.de