Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp623613imm; Wed, 18 Jul 2018 08:00:37 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdP59mNPci8BjZe4CC50Y57UkKWIyINB3GFNRPn+l9kFEOGKbFpthL3g3HqczHXKG2XJiOi X-Received: by 2002:a17:902:4a0c:: with SMTP id w12-v6mr6287808pld.289.1531926037529; Wed, 18 Jul 2018 08:00:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531926037; cv=none; d=google.com; s=arc-20160816; b=GYt76m5CxDG92ChBG0Pa20j5bG4/4wHbc0Sto5Zp0vdu5Mz/BrNCq3SrcQViZM1n0r so4ppRnlKM3Y1d4j+r39hH5cULTmEDS5s4umfSpMXIaIH8g6N32spk9s2r+4Z/vkmi0K HpNN4XJq8ZmWlwXrp4RgMzfKqA49f7Wm2fd3QWHO+gT2BdrSvcsb0niJppliKnIAjXl3 QpVSroiiqbVHoc/fNwI4WmAyjJbPwiZj4eVUXylB7QfQTvIBeZuh4jas0+tFrJ1tUu7Q Amral2Kz55Rh3qLOck8Xo5p8vtT58yv6yaj2lkOb/zVECZhpttqLEm2cViAJgL2vfnbV xOGg== 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:arc-authentication-results; bh=nSCeywSh5kwc3Ss71Ptx2dALt8TkSM7cLtVbDVErdDg=; b=wE+kznWuvrppil6AN8tN3DtvTrlEVGeuWLgWmwYfKctP1GxHo5TlJ+vLW9MiNk/MBr kaq6+v/ahbT/tRoUchqSsaKBh0p0sUMxWhgvY/5d/7A5Uml+Ir1ATROe5Hh7sqIlR6Rh gU4EBHz4ZiuoA5Vlx26G0KXOeXSPoYzcZ3JHHXDMhF5TZml3X3WagxxV7GtDhjpGgPTQ EJ3io1Gi0/rR0hZsfUR2sbDaMpstGrdH4JYoAxD35ZzYUg1Xq6C+QflGrsqede1sgm56 p2H0aq7TfUuAU6PNn3acUMr3F3AESOrhmZEx0nkW8+cTSq06YluHsAN0PQLYgLR3dde9 CXhw== 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 r28-v6si3562343pgk.458.2018.07.18.08.00.22; Wed, 18 Jul 2018 08:00:37 -0700 (PDT) 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 S1731241AbeGRPhY (ORCPT + 99 others); Wed, 18 Jul 2018 11:37:24 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:55565 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731068AbeGRPhX (ORCPT ); Wed, 18 Jul 2018 11:37:23 -0400 Received: from wicke.hi.pengutronix.de ([2001:67c:670:100:2e4d:54ff:fe9d:8eb7]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ffnut-00067J-SU; Wed, 18 Jul 2018 16:58:59 +0200 Received: from mfe by wicke.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1ffnut-0005Qi-0S; Wed, 18 Jul 2018 16:58:59 +0200 Date: Wed, 18 Jul 2018 16:58:58 +0200 From: Marco Felsch To: Rob Herring Cc: lgirdwood@gmail.com, broonie@kernel.org, mark.rutland@arm.com, fabio.estevam@nxp.com, Anson.Huang@nxp.com, kernel@pengutronix.de, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/3] dt-bindings: pfuze100: add optional disable switch-regulators binding Message-ID: <20180718145858.7xsyweyohiazrkl2@pengutronix.de> References: <20180713125002.24331-1-m.felsch@pengutronix.de> <20180713125002.24331-2-m.felsch@pengutronix.de> <20180716175535.GA10835@rob-hp-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180716175535.GA10835@rob-hp-laptop> User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:2e4d:54ff:fe9d:8eb7 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 Hi Rob, thanks for the review. I will integrate it in a v3. Regards, Marco On 18-07-16 11:55, Rob Herring wrote: > On Fri, Jul 13, 2018 at 02:50:01PM +0200, Marco Felsch wrote: > > This binding is used to keep the backward compatibility with the current > > dtb's [1]. The binding informs the driver that the unused switch regulators > > can be disabled. > > If it is not specified, the driver doesn't disable the switch regulators. > > > > [1] https://patchwork.kernel.org/patch/10490381/ > > > > Signed-off-by: Marco Felsch > > > > --- > > Changes in V2: > > - add more information about the binding > > - rename binding and add vendor prefix > > > > .../devicetree/bindings/regulator/pfuze100.txt | 11 +++++++++++ > > 1 file changed, 11 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/regulator/pfuze100.txt b/Documentation/devicetree/bindings/regulator/pfuze100.txt > > index 672c939045ff..2c46b8d368db 100644 > > --- a/Documentation/devicetree/bindings/regulator/pfuze100.txt > > +++ b/Documentation/devicetree/bindings/regulator/pfuze100.txt > > @@ -4,6 +4,17 @@ Required properties: > > - compatible: "fsl,pfuze100", "fsl,pfuze200", "fsl,pfuze3000", "fsl,pfuze3001" > > - reg: I2C slave address > > > > +Optional properties: > > +- fsl,pfuze-support-disable: Boolean, if present disable all unused switch > > + regulators to save power consumption. Attention, till 4.18 these regulators > > You shouldn't have kernel version info in bindings. > > > + were always on without specifying "regulator-always-on". So be sure to mark > > + import regulators as "regulator-always-on" (e.g. DDR ref, DDR supply). If > > s/import/important/ > > > + not present, the switched regualtors are always on and can't be disabled. > > + This binding is a workaround to keep backward compatibility with old dtb's > > + which rely on the fact that the switched regulators are always on and don't > > + mark them explicit as "regulator-always-on". On new dtbs this property should > > + always be present. > > + > > Required child node: > > - regulators: This is the list of child nodes that specify the regulator > > initialization data for defined regulators. Please refer to below doc > > -- > > 2.18.0 > > > -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-5082 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |