Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4130467rwd; Tue, 23 May 2023 03:42:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6O0Lz1uCcoAuvX5tUKmzR2mK1n5RkYrcKG8dd9yjeORpwY19Liw7FNgR4qEd8ii4tpBe5X X-Received: by 2002:a05:6a21:100e:b0:ec:d7cf:bcf7 with SMTP id nk14-20020a056a21100e00b000ecd7cfbcf7mr14071103pzb.17.1684838548717; Tue, 23 May 2023 03:42:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684838548; cv=none; d=google.com; s=arc-20160816; b=Ut+P3veI176OLFiUxkfGGMkHf8s3hllYDD3GQtoN3xHz6TiCT3eRkOQWBHVRj8gR94 sHjZbxdRtwHLibegUCXiV7JYu2oOHOzXJ98BMjFVbBVkyPNLlo8qtrnKLE+e7fkprkyl d4uH0sJW5gz3TJkM9jUYEaXO4YyMMCr2tJXAMoOZ48XsqCU55Q/Up6Rw6tt7shTkC7M+ COeUe670p5XQv7J+asybi8bkzI+mg5ds/MKfHkE1FaxvBkoPyGLih7RbiZE5JCt5G22/ hOzzCDJ9p9uczA11kBuwA5diV/ZgNdNqqhj+ZdtoG4WF4QpFHWRicPmvp+spk0D8jqIf 588A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=sPTpaU0MI+AKYcYS7XYeyiGHQ1aUICs7uWVzSFG0HuU=; b=jYxRc1sMdXgZDFGVmB8T/P7J9/LiZqHqkRl0/3Il3/AH6d4V+rSjoLLAQFATgnY2nV dyOEo8oEND48S1WPTd2FCf+HSnGXv7+zwbsEPX97WilMVFGeBnfvukikWquDlCZMVF5l lQ/NqXJo5dwyLLcK0j3s0qxQkZl1M0Yyq5PONvtGAWua2Ob3w49FL9XMuf/JeoHzOQHs LJz/YKrjpF6iHNafwEFh8QpWi8qu3ENbOmIwiV1Jvws+M2fPWeNMn8A/KVQx+WXUEhfH WPZvULVXOujVCH2VY7rCpP4WJmhEjRIJFx4YWq8n4fwCIhKkBlGVuGOSo+PE1Jnvmrba mE6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@geanix.com header.s=default2211 header.b=sIfySMTY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=geanix.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z22-20020a637e16000000b0052cc0b8d59dsi581830pgc.798.2023.05.23.03.42.16; Tue, 23 May 2023 03:42:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@geanix.com header.s=default2211 header.b=sIfySMTY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=geanix.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236296AbjEWJ4V (ORCPT + 99 others); Tue, 23 May 2023 05:56:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233200AbjEWJ4R (ORCPT ); Tue, 23 May 2023 05:56:17 -0400 Received: from www530.your-server.de (www530.your-server.de [188.40.30.78]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D651118; Tue, 23 May 2023 02:56:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=geanix.com; s=default2211; h=To:References:Message-Id:Content-Transfer-Encoding:Cc:Date: In-Reply-To:From:Subject:Mime-Version:Content-Type:Sender:Reply-To:Content-ID :Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To: Resent-Cc:Resent-Message-ID; bh=sPTpaU0MI+AKYcYS7XYeyiGHQ1aUICs7uWVzSFG0HuU=; b=sIfySMTYO/8E3llsH3sU3FFRfPRssMKDqQZ2wWuMxhNmab6goU1CVBuObnab5YlRn9fFAdRBZ59 Ynepm4voH0sK8HmQR8xLBXNJ1k+Ou6rK67sbFIvR3MgVwPXB7BXglfKnkWO6u6JGGZs36I90rHx9k qUGqpHhg6mYtoRH6Y8XdwPXZRlKvUHrGPYjVMCj48+f5oYQpfK6oPZhuWt/tX9rRrFwEGX0POZNyI CJcmnq5E8QZKCVGn64VQC5Y9/xnqkCBoHBOjYDwfuQELsMJUOfS2wUzaRvKd1OTp6P1Sxd7I9FoHw em8wHE6EPkF1/9g80/Or/DuE10ItjVUOBjIQ==; Received: from sslproxy03.your-server.de ([88.198.220.132]) by www530.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1q1OkL-000PUc-Q9; Tue, 23 May 2023 11:56:01 +0200 Received: from [185.17.218.86] (helo=smtpclient.apple) by sslproxy03.your-server.de with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1q1OkL-000Fvb-Cn; Tue, 23 May 2023 11:56:01 +0200 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\)) Subject: Re: [PATCH v2 3/3] dt-bindings: mfd: stpmic1: add fsl,pmic-poweroff property From: =?utf-8?Q?Sean_Nyekj=C3=A6r?= In-Reply-To: <20230516-footprint-handoff-bcd553ff6146@spud> Date: Tue, 23 May 2023 11:55:50 +0200 Cc: robh+dt@kernel.org, Lee Jones , Krzysztof Kozlowski , Conor Dooley , pascal Paillet , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: <9B1EE405-77D3-4980-9A13-9D4F87C1A64F@geanix.com> References: <20230516132225.3012541-1-sean@geanix.com> <20230516132225.3012541-3-sean@geanix.com> <20230516-footprint-handoff-bcd553ff6146@spud> To: Conor Dooley X-Mailer: Apple Mail (2.3731.600.7) X-Authenticated-Sender: sean@geanix.com X-Virus-Scanned: Clear (ClamAV 0.103.8/26916/Tue May 23 09:22:39 2023) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey Conor, > On 16 May 2023, at 20.06, Conor Dooley wrote: >=20 > Hey Sean, >=20 > On Tue, May 16, 2023 at 03:22:24PM +0200, Sean Nyekjaer wrote: >> Document the new optional "fsl,pmic-poweroff" property. >>=20 >> Signed-off-by: Sean Nyekjaer >> --- >> Documentation/devicetree/bindings/mfd/st,stpmic1.yaml | 8 ++++++++ >> 1 file changed, 8 insertions(+) >>=20 >> diff --git a/Documentation/devicetree/bindings/mfd/st,stpmic1.yaml = b/Documentation/devicetree/bindings/mfd/st,stpmic1.yaml >> index 9573e4af949e..5183a7c660d2 100644 >> --- a/Documentation/devicetree/bindings/mfd/st,stpmic1.yaml >> +++ b/Documentation/devicetree/bindings/mfd/st,stpmic1.yaml >> @@ -26,6 +26,14 @@ properties: >>=20 >> interrupt-controller: true >>=20 >> + st,pmic-poweroff: >> + $ref: /schemas/types.yaml#/definitions/flag >> + description: | >> + if present, configure the PMIC to shutdown all power rails = when >> + power off sequence have finished. >> + Use this option if the SoC should be powered off by external = power management >> + IC (PMIC). >=20 > Just reading this description, this is sounding quite like a "software > behaviour" type of property, which are not permitted, rather than > describing some element of the hardware. Clearly you are trying to = solve > an actual problem though, so try re-phrasing the description (and > property name) to focus on what exact hardware configuration it is = that > you are trying to special-case. > Krzysztof suggested that the samsung,s2mps11-acokb-ground property in > samsung,s2mps11.yaml is addressing a similar problem, so that could be > good to look at. Better wording? Indicates that the power management IC (PMIC) is used to power off = the board. So as the last step in the power off sequence set the SWOFF bit in = the main control register (MAIN_CR) register, to shutdown all power = rails. >=20 > Also, the dt-binding patch should go before the patch adding the > property to the driver. >=20 I will switch them around. > Thanks, > Conor. /Sean