Received: by 10.223.176.46 with SMTP id f43csp84713wra; Fri, 19 Jan 2018 14:12:17 -0800 (PST) X-Google-Smtp-Source: ACJfBovas5xy4aTfGeZQOcIrUtTqU05NCKIU8zyk55SjpYSJhHyyRNQhoyJhrtVK0/cAaEg2Rcuj X-Received: by 10.99.174.15 with SMTP id q15mr24975757pgf.265.1516399936940; Fri, 19 Jan 2018 14:12:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516399936; cv=none; d=google.com; s=arc-20160816; b=hHUw7OGs8TChar3CPPQ0mRjmQ45/azxuNIA/5nn8/cOzTmUD/PXdNgr2ZvaYturR/L a7e2en4W39dps9qcBNkwfygshzDuTdXW7rBPXgNN/MwUkTtV1yXDhLcn2b+FaKIBTG9R mYyzmFLCdP09kn7Ee8j7SRNrPksGGMpdOeUSoWAmrb2z9eXQoriC+D+e4Jj6FN9PxauW tHwTJzL44eIRPUa4PEn5726ALUTAjfBTuEmg2ADAvUiQ5VD7SkU7F2kkmKlos0KbGSQJ 5WrstVz+83Au9w0i5TiYp0/7KsZhfdTjG0W5B4J5f9EzFh4KTUdUw0C7UliVHfsoBOk7 AwIQ== 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=mSapAfkKcozyX56W1JCQDY4fQ9eHyMkXe+4IyVQQzjI=; b=J4lAswVl0vcj62Rle+9a+//QmFdFlzyKsCA1jBl1CNAr7laOVXHjQiVFH1D635fMsC tVRKSCZis8SF3w+Scj8faW9YisdZllexrmhHaDRHwFlVUZAkOHYqZoGWEK3qoP3Ra5IK hRed4NOLChQmAsdk3qCMcMuiY/SQEI+e94Qv3prVzd8V6PoeUsdY/iBmcTdMZ4QzF9vm hoVMkA0fzzfdzzs9x2rjcHb5HMZOqIa7I/10M7qoQjJm6AM0ITvniUY3wdFgl4NHws76 bcDhm53G1hhvgrKrqRMrcmeJMhIPApboZ1AnVDQbvW8g8V2ZH4LmV+QZaBh0Cpuc52AU ADUA== 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 a6si9990905pfl.299.2018.01.19.14.12.00; Fri, 19 Jan 2018 14:12:16 -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 S1756620AbeASWLP (ORCPT + 99 others); Fri, 19 Jan 2018 17:11:15 -0500 Received: from mail-ot0-f196.google.com ([74.125.82.196]:40204 "EHLO mail-ot0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756492AbeASWLK (ORCPT ); Fri, 19 Jan 2018 17:11:10 -0500 Received: by mail-ot0-f196.google.com with SMTP id x4so2670844otg.7; Fri, 19 Jan 2018 14:11:10 -0800 (PST) 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=mSapAfkKcozyX56W1JCQDY4fQ9eHyMkXe+4IyVQQzjI=; b=fU9TEVQKVXJwUsoU0rU2rl1kAlcY8kjdgkWKUZG6TaXeYQJnJ0PIW+EdcmEa5lc04G pplxoXF7K/gp8hQGBErHOMYAyTyg57HlaM7gFgj0p10C9U6ctC6MHdv4xSW1h3Vvh3R0 4skfL/52cFT+Z2GrLRMOeI3ezWqqNtcQ6eIBHNQE9Ed7vRgUbGjf20BOFC2njt006Y0k LSUi6E+WP1kQI5SvyBzLMk6+pSIQXiX5LpvKjY/Arp0jcclP7CJb9AmKHdYAsydgT9Bj Cr0DoxvBZF2uLMX2l+ApdkSJv7UNfZjE2iE4a5MZVREE80/bhVwyHJZ3y6gDWvk5VfW+ NhSQ== X-Gm-Message-State: AKwxytchUCt2GQjspo/aQKhKa4FkbH267LU0r4J5gWlfYoYa2pMCfZPw OAUHstZXgPx774Tp0D1nKsfBCuA= X-Received: by 10.157.13.75 with SMTP id 69mr6565332oti.162.1516399869575; Fri, 19 Jan 2018 14:11:09 -0800 (PST) Received: from localhost (216-188-254-6.dyn.grandenetworks.net. [216.188.254.6]) by smtp.gmail.com with ESMTPSA id x27sm5006822oth.12.2018.01.19.14.11.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 19 Jan 2018 14:11:09 -0800 (PST) Date: Fri, 19 Jan 2018 16:11:08 -0600 From: Rob Herring To: Chunyan Zhang Cc: Mark Brown , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Ulf Hansson , Arnd Bergmann , Chunyan Zhang Subject: Re: [PATCH v3 1/5] bindings: regulator: added support for suspend states Message-ID: <20180119221108.nndgk3ln573n6zew@rob-hp-laptop> References: <1515752305-15907-1-git-send-email-zhang.chunyan@linaro.org> <1515752305-15907-2-git-send-email-zhang.chunyan@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1515752305-15907-2-git-send-email-zhang.chunyan@linaro.org> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 12, 2018 at 06:18:21PM +0800, Chunyan Zhang wrote: > Some systems need to set regulators to specific states when they enter > low power modes, especially around CPUs. There are many of these modes > depending on the particular runtime state. > > Currently the regulator consumers are not granted permission to change > suspend state of regulator devices, the constraints are configured at > startup. In order to allow changes in a vlotage range, we need to add > new properties for voltage range and a flag to give permission to > change the suspend voltage and suspend on/off in suspend mode. > > Signed-off-by: Chunyan Zhang > --- > Documentation/devicetree/bindings/regulator/regulator.txt | 15 +++++++++++++-- > 1 file changed, 13 insertions(+), 2 deletions(-) > > diff --git a/Documentation/devicetree/bindings/regulator/regulator.txt b/Documentation/devicetree/bindings/regulator/regulator.txt > index 378f6dc..532e286 100644 > --- a/Documentation/devicetree/bindings/regulator/regulator.txt > +++ b/Documentation/devicetree/bindings/regulator/regulator.txt > @@ -42,8 +42,19 @@ Optional properties: > - regulator-state-[mem/disk] node has following common properties: > - regulator-on-in-suspend: regulator should be on in suspend state. > - regulator-off-in-suspend: regulator should be off in suspend state. > - - regulator-suspend-microvolt: regulator should be set to this voltage > - in suspend. > + - regulator-suspend-min-microvolt: minimum voltage may be set in > + suspend state. > + - regulator-suspend-max-microvolt: maximum voltage may be set in > + suspend state. > + - regulator-suspend-microvolt: the default voltage which regulator > + would be set in suspend. The voltage for suspend also can be > + adjusted among {regulator-suspend-min-microvolt, > + regulator-suspend-max-microvolt} by calling > + regulator_set_suspend_voltage(). This property is now deprecated, > + setting voltage for suspend mode via API the regulator driver > + provides is recommended. Please reword. This is Linux implementation details that shouldn't be in the binding. > + - regulator-changeable-in-suspend: whether the default voltage and > + the regulator on/off in suspend can be changed in runtime. > - regulator-mode: operating mode in the given suspend state. > The set of possible operating modes depends on the capabilities of > every hardware so the valid modes are documented on each regulator > -- > 2.7.4 >