Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2613423imm; Mon, 16 Jul 2018 10:56:28 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcaginH9q7CAPw6E5Crn2UgDZBBdVp5KqXw+NoqthxWRaQUoDZS8X7mna9fqcxr9v0CehYg X-Received: by 2002:a63:951e:: with SMTP id p30-v6mr16372932pgd.318.1531763788080; Mon, 16 Jul 2018 10:56:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531763788; cv=none; d=google.com; s=arc-20160816; b=KzGjxjqqsyQ0rkTu7/v+sLsZbJKLhYw+Y7nB8wN7Deu3EnhtLbQNZrT45plz4ocJES bsA8o9rQLRmLKKBlTrmYAPMVpe64l0RiIOefrqj05YbZ/F8jOlue4g0632C2ETiUHaNa z573ZmNABVoRPYIDj29xEy4eBWfDR6QvWl8hBuMIdog2YUq0glxVzkrsx1gJH4if+MuG QvXBxk9ZVL4bv7/Vcj1GqJ0fFdwokF77/O+LdHR9zq02mpvpCcSAEld2BZ8ssPHUnaV7 ojirIPjnk+7iFQtw0RA30NrR/BWR2N7Pda57CZc4oDxsZblFLq1hBl64mrzqtxcH3jfe icmA== 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=z+n2y7bqnH05oma4+qLV+X6GQKqHQu56p2vXD3bDgNA=; b=F/ShqrBvV2RhCojnfKeHrIjetE5Cs6P1kLF4uUJhGUKtqD6n0pDMGZGfpU2odf1Pv5 Y5tEx8YQQJjpe/o9uX8oF8bABNTHT2wz+kRdGkGPfMkPPLgbfLu8Jha33lsmdnHECIjF Iq7/nWH0Q4LOIol8VdFO9ZE4sVBIFWN6paJc5bYd+zuE4o8l3MELo/nDWTQPfVJeBvmm JDVKKih87j/ZAvgnm2oxsBlDe+Iy6SWJucqiB59+bNfg1O9bjqpL1ROoc0E1uY6CoA+1 sCmYnK1/u//lvuwraBd8mXW8JMHEFLhhZwp+975m6csgu+BCWvFccdcsHXBGxESFm6ux sIeA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l26-v6si29900857pgu.191.2018.07.16.10.56.12; Mon, 16 Jul 2018 10:56:28 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728198AbeGPSYI (ORCPT + 99 others); Mon, 16 Jul 2018 14:24:08 -0400 Received: from mail-yb0-f196.google.com ([209.85.213.196]:43312 "EHLO mail-yb0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727479AbeGPSYI (ORCPT ); Mon, 16 Jul 2018 14:24:08 -0400 Received: by mail-yb0-f196.google.com with SMTP id x10-v6so15760609ybl.10; Mon, 16 Jul 2018 10:55:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=z+n2y7bqnH05oma4+qLV+X6GQKqHQu56p2vXD3bDgNA=; b=rJVdGcIVyeByHtGwIFWGG0UIeRzFnGIApkPOaGdXbvtrTMFo+dr7QRG0QzexdsexUl YZhtq8pRQcYamaHHk+u5lptPUu6tA/GIg5QIo4Qo4FO9r6wPzCe0PghZgTMJ00KeNsZW M1Lq5QwUeCuhuYk4ORqR298aTJbeRXpFjANqgMxUy94jiMgusD6lb1qHhORuB5wyVJGP BjRho7ke3IU+XDt80vzIAAHcf1jSaBXtmzVJZ58bXGJDWZ1teupvAS+8cLyAilR7gOxk tERJYBt8kgMTrHjURhLPTKY+fo116e0B+ZNQTnzS2mLyAqTBiqTei9iQ7VWD27XQlfZx ZwGQ== X-Gm-Message-State: AOUpUlHmzHRmr1w4jjxEP299V9gYrSPyarNRBfxVwK0xdfX5Z9dfUgsy CG+wQRPwj5CRGRZeg2wtMg== X-Received: by 2002:a25:848d:: with SMTP id v13-v6mr9352865ybk.389.1531763737645; Mon, 16 Jul 2018 10:55:37 -0700 (PDT) Received: from localhost (24-223-123-72.static.usa-companies.net. [24.223.123.72]) by smtp.gmail.com with ESMTPSA id c74-v6sm19075287ywh.17.2018.07.16.10.55.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 16 Jul 2018 10:55:36 -0700 (PDT) Date: Mon, 16 Jul 2018 11:55:35 -0600 From: Rob Herring To: Marco Felsch 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: <20180716175535.GA10835@rob-hp-laptop> References: <20180713125002.24331-1-m.felsch@pengutronix.de> <20180713125002.24331-2-m.felsch@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180713125002.24331-2-m.felsch@pengutronix.de> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 >