Received: by 10.223.176.46 with SMTP id f43csp2361289wra; Sun, 21 Jan 2018 18:17:51 -0800 (PST) X-Google-Smtp-Source: AH8x224/I3XTWyYZ6lmB61m5mwSsD5Hh9w5FJ70MUWKcQfgEoF7GH+UesrRCc9eF3qCb5nVO3sqH X-Received: by 10.99.174.69 with SMTP id e5mr5964771pgp.263.1516587471623; Sun, 21 Jan 2018 18:17:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516587471; cv=none; d=google.com; s=arc-20160816; b=Kl2MwWpWD/c9T6FSL27tjm7dKqjNrda7ElsaAmMUYInB303RQYF/EGCXgIX9IEMmCl 96M2gO6KjNvTI5Tb1bWsB2t6N6DCObwMubyrxgz90Pgnsd4ePSRRatvP/FdsAk82GXWd NIBE1841FbNoqJdG7CFKQ2AA+rOTJbi0tuR+20XY9vLb1ilzD155y66FXyPoSI/oWzQ2 gFtisqBaaI1/kxS47eixIFfYtknrSndt9Sm6byrJbshPFgMyglkF95y5SecJreNFuhtZ XPBr4V3lRT7UvTQNLuYu08hQWURmLYGxpDdeJJ5LO7Op3xK+6ZMSy0Cou97q8rHo9YeP Rozw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=53Cz1y/0QEky8yTfdZhYg23AaaHXQ5PTAqbBvqi3HtU=; b=teBqZflTm+/KImz/nsr1J1rYa3xVnGdDRr8Rg2dUeZpHo9LcxUSEHazrFYSQEPXDKL VQ0TC0rGAL4TFFeC84ONap5wzrTp4TfmKFi/8KcVOpTIQazUJeqY2iBZsoKmDVBsexXA /W/mnok0Kp7PJIHyKHR4EGBN8YPy9bKzPy16hQF147zwhtdoPDEljrdyPcVMBHzKOHQh 9sSszJLgfxRVFKBo/HQw9tZYQ2Tne6IHCU73xE2qnXqxgJKyUB4ZcgT7woJeMhtXArVN 01MmlAY5WXC0nwLL3XA8SNN8PMKfxnBfXermAMIPmjcOfZji0cOlbmX/iKRHhXz2+J1F nRAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=chpeSMU6; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 77si14417291pfj.82.2018.01.21.18.17.37; Sun, 21 Jan 2018 18:17:51 -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; dkim=pass header.i=@linaro.org header.s=google header.b=chpeSMU6; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751231AbeAVCQJ (ORCPT + 99 others); Sun, 21 Jan 2018 21:16:09 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:43412 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751076AbeAVCQH (ORCPT ); Sun, 21 Jan 2018 21:16:07 -0500 Received: by mail-wm0-f66.google.com with SMTP id g1so13420942wmg.2 for ; Sun, 21 Jan 2018 18:16:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=53Cz1y/0QEky8yTfdZhYg23AaaHXQ5PTAqbBvqi3HtU=; b=chpeSMU6QpFWabWFfSlaLrSNO8vT92rbvXUqkRTJptROESLYqpQ7ekY0geZJwVOfqU ywk+SuISBESiIeFgB0qTAboSvyebx0O0n35R670DDKLP73D+FWHC7zcrgZmrhlKNB/89 h1vRa2KLQQwPxz2VVwu5dw0e8DFfbBsI/+cgk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=53Cz1y/0QEky8yTfdZhYg23AaaHXQ5PTAqbBvqi3HtU=; b=DoqHUXLFHPePCEaSuWR3upGL2bTNeHFMNS+dq45CY6kdg0vptzH4Hwesk1JgvjpEqD 5FOeCXXZhf10IeQfKuZEbAkYTwI6PE9xjVJzeM+0s63rr4qdx9hQqUoxG8GDp/ZdY79c dyljX0G+0t7jhJsPj0sGOA5CvpKlrG3ot9k/csUDcW+oHN/wMfn++LFVCTtT4NqN195q g9kNlSdKEgR3fcqeUisuOaS5JXvVPyArG3i/C5SbKhIVSlBxDvkRmNPQNjSkKkmk5AWr 9gbkua/6LW9mJa/07i5B+hiubkyd78QgHfhbvPik41AZq3ni1E025ln3RrOD0jQkX1Pp gxPg== X-Gm-Message-State: AKwxytfqSDQU+71cSWkSoCKgNMPZdRhv11pS+yL/bashbLSB7XoyGsNd Aa4Hst/Ue+iechDEbYROXjVDml5NBSQM4eMHQnZ5nBIg X-Received: by 10.80.244.23 with SMTP id r23mr10581496edm.2.1516587366551; Sun, 21 Jan 2018 18:16:06 -0800 (PST) MIME-Version: 1.0 Received: by 10.80.157.13 with HTTP; Sun, 21 Jan 2018 18:16:05 -0800 (PST) In-Reply-To: <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> <20180119221108.nndgk3ln573n6zew@rob-hp-laptop> From: Chunyan Zhang Date: Mon, 22 Jan 2018 10:16:05 +0800 Message-ID: Subject: Re: [PATCH v3 1/5] bindings: regulator: added support for suspend states To: Rob Herring Cc: Mark Brown , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Ulf Hansson , Arnd Bergmann , Chunyan Zhang Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20 January 2018 at 06:11, Rob Herring wrote: > 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. Ok, I guess just updating this one instead of the whole patchset for this minor modification should be fine. > >> + - 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 >>