Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1631451pxu; Tue, 24 Nov 2020 05:25:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJwpJ/+OCgZDqnKqeAcjY0jtTVdHEKYDKdU9LGgZyxHLw5bB8+iVBACGje0Dqx6tlYLcheYj X-Received: by 2002:a17:906:82d9:: with SMTP id a25mr4181290ejy.101.1606224300050; Tue, 24 Nov 2020 05:25:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606224300; cv=none; d=google.com; s=arc-20160816; b=kArJ7ULuRTtSuY4Sb9lUfElTuTAcTdAYKM4tXhcWB9h6WqZFyZZcZVyKWXIRR7M/PR YZ1wvE3m7Uc6WxQgC1k12Q/UYS8HG8LVTOIBhIVKLImJNJK1MxO1lFI0XXGdGjIG3R/L d4jZ5V/ONxPKBG6fSsmS8oYFFGTmFDfNQRvONftuwzviVK3Nkzrjj/evAud2Kwv0Ymat o1pvk0hFMDQuKnr1rOkydp9fVyy4aReeqat9cFEmr3BX8YVVBhs9qT2W7e4rvpGkcmDl guLIZ0fP3ZmtosixQr+ZzZ3WsAgurOQhGRznHNmbURBrtLMBmmK8z3JtBnVNDopIO1nW nZ+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=lzRzm4KvEYKdIaEdFXpNQf1V5ga7opO7foqqpcsFI7w=; b=lr0NOirw732j04/SEPJZByYhXuBioBrPHpl1iZaBM8iNYfFRTyiTHfIMVNQGUWfrfK iJcSzLd6OhjPrQgB06PrzCiOOgD4jnupW+KlC9Y/Mr21iXMzTGQyIUxC4SZnE7pOtYhk 9ER43qhB8dAw/sxkVVwxMxx8aUqH832LIB0XszsMHXBRxEAhOszlgeBBKBXfm3YUlIGN 7j4rLEM9WfPai0utpPumYCtb1EcOvRt2LxPi0ZfSTLFghzpfHoG87K6v62IPffQC5ID+ /ssxdjWbFSip1gGA36UbyzgzedC9Q9qJeeNofL0HWW3wcGFfUBL8xckZnfZr0d0CmcA7 Sg7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm1 header.b=AShZo6MP; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=B+PtIFkr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a24si8724685ejr.522.2020.11.24.05.24.35; Tue, 24 Nov 2020 05:25:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm1 header.b=AShZo6MP; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=B+PtIFkr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387901AbgKXNVJ (ORCPT + 99 others); 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: linux-kernel@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--