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 X-Spam-Level: X-Spam-Status: No, score=-15.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3526FC64E69 for ; Tue, 24 Nov 2020 04:15:29 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8D7C22085B for ; Tue, 24 Nov 2020 04:15:27 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="bK1fVsbz"; dkim=temperror (0-bit key) header.d=sholland.org header.i=@sholland.org header.b="G6voIAJ+"; dkim=temperror (0-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="mMVsAErg" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8D7C22085B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=sholland.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:Subject: From:References:To:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=aN3Iwv5w1YurzHzhP6OG6QvQBixVPL1GeX+fY5xSeGw=; b=bK1fVsbzEzsp1dS0GL/Mtbpr3 48isTOg9TmVQsgwON51ui3K8MfU85j96EVdksjLoEO1hXUMhyEDav7NxCjTnEeximUlbIfQ8eHdX9 8AGKKZsiR0ah+/wfVCOrzG4lnr/vq8bYxXT3cVPTKGvELuuysXe6Fhj/IQqi8QdBg8+UUHnnqVRMg LtXJyLd3UkIrrssyM+8kwjpfZxx4rdrMWPLy0zKOVvDg5fzPgZUjIRYZLgeNDhI6bjmjYcFbvWMOO ZAkYWu7pVOyx2kIWHKyrK9N0lR0dhlRcD9fmnlxM9txOzB+KgSPCMGletFboNR1WZHcaJF5QGCwoS XhU/o1lcw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1khPjF-0004AI-W9; Tue, 24 Nov 2020 04:14:58 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1khPjD-00049D-9q for linux-arm-kernel@lists.infradead.org; Tue, 24 Nov 2020 04:14:56 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id C4E3415CD; Mon, 23 Nov 2020 23:14:47 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Mon, 23 Nov 2020 23:14:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= to:cc:references:from:subject:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=j A4ah2CMYgsd377/SA0s2RVNHVfzfBJJzqdBqULdqJ8=; b=G6voIAJ+kzoLQKsB7 9qvGVriR5E1TG9UNzg0XV80gOiOApQ37SHsDWwNXmrU1N6r8kX1tF5ziZVijvNOY 4g8AsePgeG6lTiA2zYkVpuZXN1289B/ViYhIcCCUgBsj5UD5jFDjk2mPeAjF0lqD mnYIvUPG3SC8g6JtFMeLB4gwybi664nL/wwsFx9TjC1hMuyNcUBVcmZRIlHOtPZU v7kXIgoAGBpsoek3C0gSD9Ddgswnx7OMrVYtNuKOwrgkOdSjhS/ikpiJNnWp7qK6 fwZlqd7tjY5WoCJ1k+eF9UryIODx5Hwg12k6TXQxILlgQrxmkDunnSnQsvAB1SBk qJbHg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=jA4ah2CMYgsd377/SA0s2RVNHVfzfBJJzqdBqULdq J8=; b=mMVsAErgT9rltMMz6YSqFahh7gX/lX7/1SHSkdBp/7fwSEwNCuIAfLz2M D/8IpM3IqYOTnX/VpzOuXRiP+i60snN9qVJhYilNqZrfAPdlwzZ15iZ5GXmoj4eO oVPvL+0MAfl93XmfiT5EUSHMv+ciKfoWP+odAhjvJ4z1TKFWOEDzxDwJY9E/jY/b CzbXi0ugPM6es0eUlvjR7BTZ7jmj4uNoPytDUVnD12Y1ZlgW/pwjsH/R24mkdUYG V5csy/ScWDETsZj1ZmzwutgQJtlfsRm8EqkGsDIz40PjmIuwN+RRNzx0IKjwmo41 ULnxLWIesRx8GAI+IU2Z7lYfkECug== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudegjedgleeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepvfhfhffukffffgggjggtgfesthekredttdefjeenucfhrhhomhepufgrmhhu vghlucfjohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecugg ftrfgrthhtvghrnhepvddttdejieduudfgffevteekffegffeguddtgfefkeduvedukeff hedtfeevuedvnecukfhppeejtddrudefhedrudegkedrudehudenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehsrghmuhgvlhesshhhohhllhgr nhgurdhorhhg X-ME-Proxy: Received: from [70.135.148.151] (70-135-148-151.lightspeed.stlsmo.sbcglobal.net [70.135.148.151]) by mail.messagingengine.com (Postfix) with ESMTPA id 215483064AB0; Mon, 23 Nov 2020 23:14:46 -0500 (EST) To: Michael Klein , Rob Herring , Maxime Ripard , Chen-Yu Tsai References: <20201123161041.2304766-1-michael@fossekall.de> From: Samuel Holland Subject: Re: [PATCH] ARM: dts: sun8i-h2-plus-bananapi-m2-zero: add gpio-poweroff to DT Message-ID: <4bf42c9e-9f70-bc30-1a88-44a127cd989a@sholland.org> Date: Mon, 23 Nov 2020 22:14:45 -0600 User-Agent: Mozilla/5.0 (X11; Linux ppc64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <20201123161041.2304766-1-michael@fossekall.de> Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201123_231455_510308_E96CCA70 X-CRM114-Status: GOOD ( 17.75 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 11/23/20 10:10 AM, Michael Klein wrote: > Add gpio-poweroff node to allow the board to power itself off after > shutdown by disabling the SYSTEM and CPUX regulators (U5 resp. U6). > The RST button can be used to restart the board. The PSCI client will override this driver once the PSCI implementation is upgraded to v0.2 or newer functions. So having this around should cause no compatibility issues (although it would print an error in dmesg at that point). This seems like a reasonable thing to do for the other H2+/H3 boards that use a similar regulator layout. Reviewed-by: Samuel Holland > Signed-off-by: Michael Klein > --- > arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts b/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts > index 4c6704e4c57e..76e79e6db733 100644 > --- a/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts > +++ b/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts > @@ -46,6 +46,11 @@ sw4 { > }; > }; > > + gpio_poweroff { > + compatible = "gpio-poweroff"; > + gpios = <&r_pio 0 8 GPIO_ACTIVE_LOW>; /* PL8 */ > + }; > + > reg_vdd_cpux: vdd-cpux-regulator { > compatible = "regulator-gpio"; > regulator-name = "vdd-cpux"; > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel