Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp7804255ybc; Fri, 29 Nov 2019 01:15:06 -0800 (PST) X-Google-Smtp-Source: APXvYqyp7RXoYczIaIHfwgMtbdLIA1lrT1RNQSjS0rH0hVYhSawRr5po53DeT6XzyOA42eFuMYVf X-Received: by 2002:a17:906:ce3a:: with SMTP id sd26mr18081352ejb.16.1575018906655; Fri, 29 Nov 2019 01:15:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575018906; cv=none; d=google.com; s=arc-20160816; b=oAJ8dduli2P4vuqv3mKCmo1wHA4LYrbid3bEhx4zSfsODKk3r08DQp1lWhmCDMgK0r YsfQZcgE/4xGi372VFPf5vbILs86IOcFu55KecDecBboiCodrRs00VBFnHW2QCpP1b6g bAIuBts+Zcni2SxP9io8xhTCbThOAmFadnhBrRogs63IVbi0SXVn9064CeNQ2A72+HE1 Hto/qY4sOVM2Zplbsh/XDyOfIYYiaURO23zgBk3erYLFcEdPkwQlPpbHMblQK36SLVzI F2Cw+nUGTOD8xRzLCt/8ObvW8KB8F0ku77tQpmhVca6kudrbxdhiOPvCgUX475fWZSCk a5Xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=L7n7LhgNi7qfe5gRSXIc27UeKOsJEBS/NzdFcqaraLg=; b=fmYiOWKhei9S5g9jnVbZOliwR9IRw+ZFcRfW0e7zvNPOsISqWV1DPbkU3ERPw4NSNU CHxEa6eUBthhuGXWYkJybLGMOnjywbG6SI53NJZa5oJDflu9cTlPozyyox/pcmDbSSWi 0z+0vdf+UaLGqIrH43JyNv/ASs5ggpgMt2PR0r1pVqTKFFU2kDA8j9wMXzBYxuNhk7rz yVTj6N223DOQs6+SGyQ0749eteprZez5Jrh7GSjxaxrTFLNAk57fP/tlWdz5Nas+KYZy Eq27pmM1Cv22P4JayNK+Ha0AJDwZnvFYVOQPySmXtSvaSLVvxolJpLhmfj4th2APPQml 9rMQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id op26si367760ejb.337.2019.11.29.01.14.41; Fri, 29 Nov 2019 01:15:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726793AbfK2JL0 (ORCPT + 99 others); Fri, 29 Nov 2019 04:11:26 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:38037 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726709AbfK2JL0 (ORCPT ); Fri, 29 Nov 2019 04:11:26 -0500 Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iacJ6-0003Rw-Em; Fri, 29 Nov 2019 10:11:20 +0100 Received: from mfe by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1iacJ5-0005iC-TE; Fri, 29 Nov 2019 10:11:19 +0100 Date: Fri, 29 Nov 2019 10:11:19 +0100 From: Marco Felsch To: Linus Walleij Cc: Bartosz Golaszewski , Support Opensource , Lee Jones , Rob Herring , Liam Girdwood , Mark Brown , stwiss.opensource@diasemi.com, Adam Thomson , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "linux-kernel@vger.kernel.org" , Sascha Hauer Subject: Re: [PATCH v2 5/5] regulator: da9062: add gpio based regulator dis-/enable support Message-ID: <20191129091119.wqwpr4jklj27hdfp@pengutronix.de> References: <20191127135932.7223-1-m.felsch@pengutronix.de> <20191127135932.7223-6-m.felsch@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 10:09:27 up 14 days, 28 min, 29 users, load average: 0.06, 0.05, 0.00 User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: mfe@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19-11-29 09:25, Linus Walleij wrote: > On Wed, Nov 27, 2019 at 2:59 PM Marco Felsch wrote: > > > Each regulator can be enabeld/disabled by the internal pmic state > > machine or by a gpio input signal. Typically the OTP configures the > > regulators to be enabled/disabled on a specific sequence number which is > > most the time fine. Sometimes we need to reconfigure that due to a PCB > > bug. This patch adds the support to disable/enable the regulator based > > on a gpio input signal. > > > > Signed-off-by: Marco Felsch > > Overall I think this is fine, it's a solid use case that need to be > supported. > > > + struct reg_field ena_gpi; > > Maybe just add some doc comment to this struct member? Yes, I can do that. > IIUC it is a general purpose input that can be configured > such that it will enable one of the DA9062 regulators when > asserted. (Correct?) Yes that's correct. Regards, Marco > Yours, > Linus Walleij > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |