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=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no 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 4BC06C2D0E4 for ; Tue, 24 Nov 2020 13:21:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DC4902083E for ; Tue, 24 Nov 2020 13:21:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387675AbgKXNVJ (ORCPT ); Tue, 24 Nov 2020 08:21:09 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:34515 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726714AbgKXNVJ (ORCPT ); Tue, 24 Nov 2020 08:21:09 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 082EC5C0107; Tue, 24 Nov 2020 08:21:08 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 24 Nov 2020 08:21:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=lzRzm4KvEYKdIaEdFXpNQf1V5ga 7opO7foqqpcsFI7w=; b=AShZo6MPDXx8yioK6yjaWOKFRZRnukoAtWuCTNB/dZH +AwlqIjTKn3Rp3XzCQojew98wZVxiJRYKvliLNd6zjZIRrNB7X7IwgbOsLtXnFw/ TVH/aFM95IN9ZRbt8lZadwyJ4CkVZfb1V8nB9HpFY+aF3D0IJGrM9bYu8DpW+vWq JerirhYSsZpNlvM+1qSVLl8TX3ZDEuBhgDgUod/6E4iaeD/Zg0glGMCX6JdPlyWu ZAUVo65xuZw2agWVXaomI5pdUjVp0g6Ff8JKNjtRtHSJ54ghyscwSxbA9R21tx06 Sni6DemtRdhTeZ4E1+HnW+hnKI4xwps2webrW3AZhKQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=lzRzm4 KvEYKdIaEdFXpNQf1V5ga7opO7foqqpcsFI7w=; b=B+PtIFkrDlKCMcAyJR5V4T yGT6kdkWYNgkm0QciCYTZCJ0rD1vDzwyJd1qwUrJaN9tfJpghX+fK4add7TZ3NBT 3Xlp9fQIjgk6BeV9FLf39S+lDH3W5ZzCcc5wHRbWJEs6tztZ5Exs/V3qf00lzIXQ zppyf6YcbebfDfPischlnQM/xyBJ68m/Cdh4jJYFSdqCQjNbLH15zCN9t2oAIBWS NTCupBAgS+z9dJkuZE8wtUglT9WGhUU4g+0ZS5UJb8gIy9dlCik4TuL919+vl1w5 MI1O1dRrpp2Y11IjYrrdY4GiPYb+wet9CuKao5PjRJk4C099vn9lhnWdC8AUztfA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudegkedgheduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpeforgigihhm vgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrth htvghrnhepleekgeehhfdutdeljefgleejffehfffgieejhffgueefhfdtveetgeehieeh gedunecukfhppeeltddrkeelrdeikedrjeeinecuvehluhhsthgvrhfuihiivgepudenuc frrghrrghmpehmrghilhhfrhhomhepmhgrgihimhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Received: from localhost (lfbn-tou-1-1502-76.w90-89.abo.wanadoo.fr [90.89.68.76]) by mail.messagingengine.com (Postfix) with ESMTPA id BFF473280059; Tue, 24 Nov 2020 08:21:06 -0500 (EST) Date: Tue, 24 Nov 2020 14:21:05 +0100 From: Maxime Ripard To: Chen-Yu Tsai Cc: Samuel Holland , Michael Klein , Rob Herring , devicetree , linux-kernel , linux-arm-kernel Subject: Re: [PATCH] ARM: dts: sun8i-h2-plus-bananapi-m2-zero: add gpio-poweroff to DT Message-ID: <20201124132105.oai6gejdvdsnbzyx@gilmour> References: <20201123161041.2304766-1-michael@fossekall.de> <4bf42c9e-9f70-bc30-1a88-44a127cd989a@sholland.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="tp5irkdtwqk5souk" Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org --tp5irkdtwqk5souk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 24, 2020 at 12:41:37PM +0800, Chen-Yu Tsai wrote: > On Tue, Nov 24, 2020 at 12:14 PM Samuel Holland wro= te: > > > > 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. >=20 > I wonder if this (gpio-poweroff) works if those regulators are also in th= e DT? It's probably not going to probe at all, since both would claim the exclusive usage of the GPIO? I guess we should model this properly using the regulator framework, and regulator_force_disable allows to bypass any usage count Maxime --tp5irkdtwqk5souk Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCX70IwQAKCRDj7w1vZxhR xVDgAQDtHkWRvMCy6Xtrt2MCroKwIz7m6pjWGS4rUDmBo/khsgEA+ketyMtNKirF of9BbDNLz0A1dy0Lit5yoivYKfNsTwk= =OxTb -----END PGP SIGNATURE----- --tp5irkdtwqk5souk--