From patchwork Mon Jan 22 07:59:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chunyan Zhang X-Patchwork-Id: 125335 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp1021877ljf; Mon, 22 Jan 2018 00:00:09 -0800 (PST) X-Google-Smtp-Source: AH8x226/C8zcxZ8L7LhX4IN5d7Ji72w/IZAJpQcFkFmPS8bdhKnnHf9cmyLyXkziw906a1UAltiK X-Received: by 10.98.23.23 with SMTP id 23mr7766792pfx.179.1516608009260; Mon, 22 Jan 2018 00:00:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516608009; cv=none; d=google.com; s=arc-20160816; b=mLXuVjySYveVPNOnyggCeFeyhsSBHNQt33MPSrOYJpcRZGfxm0VX6FRIXLI62ne6NR VpGdBW8tUX8zWilgX/sLJySICgoVd45WGoYrb4hrs90mNtBpL0bb/bMS9t/MLiNu+sT1 qZ2jowqTaoh2S+FUCzIi7zHQA64KzGUNkRw6m83eRNYZCFFC3EeMIrjZnprm5TMGdRcy JxkWInjSorl4iRsjPJttIFTdJBCgAI0FDU4RUZb+VSML5q4rBmmsRg0m6o6DxpWb5iNt 3lLJsUhHCHwlS0/qG+SqquAFFYrb9aj/JzNAiapXUmxFDGu2IaFNIUs88Rf0H9EXE44z okKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=53bvtcz5qz5jdfIlVbg1Wm3bgIOf6n9+YR63eeKrxYM=; b=Sn9jLh0DKuPqn66erTSn1xuK4b/xIKSQJTon26kYl/oiiEYgkdox3terFoGRGN4Wy+ O6sdKfeC7IS1GQxvdrxhGTwj4wVwkmXtOoYwqcp8LDzw+8nD4bZHHq05EP/SHHJEThUb XGi1UEOou50Czcc2a9Z5CMm8bBlSnZtDYncM2/a0+AfAYbZs+jcI2cg/HGOG9SicSSbT 6H+D+wdIOi8Cxjs5zuisuG6Gplnmi/yy8JdBv9s8ossef5sGBmQaGAHTDjHuU+ZNHlkM hGPecXBLkkXuzc8mKTeYCfr0HWFjfW3SrQQTFkBwJm+OM/NKKUrL98APupVTBpee9EYH Bv8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=evyY4DmP; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (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 k83si15402595pfa.246.2018.01.22.00.00.08; Mon, 22 Jan 2018 00:00:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=evyY4DmP; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751265AbeAVIAH (ORCPT + 6 others); Mon, 22 Jan 2018 03:00:07 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:42688 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751255AbeAVIAG (ORCPT ); Mon, 22 Jan 2018 03:00:06 -0500 Received: by mail-pg0-f66.google.com with SMTP id q67so6483422pga.9 for ; Mon, 22 Jan 2018 00:00:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=GxjiwE7y0YyDOH/aY6Zza9WwgHLSEkJRBVYFDg7LblQ=; b=evyY4DmP1Pn0jJ38LmI5BKt77HIUXgOGRVg7GGLH2cZBPI4cjBbgB+xjdgu+5WSxBn t63D8RZ5mw9/lhr4cnaUO7E0voxFNyYFCCHouSa7OMSA9UpNZQbE7ll9Jv8zOZa/eIYS 5vgn7b+SvvOBIF3pVniUnWINnNUdzpE7gfqcw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=GxjiwE7y0YyDOH/aY6Zza9WwgHLSEkJRBVYFDg7LblQ=; b=mutNxVHbfBkdk4ZwcEQzIJ6rwY/PW0SkLn3NJtdiGeCqiGJbbZq0bgt5vVCEMBL7o+ f1aHBQZiQyr9vEPwLw3YiqHVD9OeKDq0ij0vQGT//e7KhmwCkEkNKfQE01N4WovgebbC G0Sm/Xr4q0Ncs/ClQQuXJUJqC6pQMMQqYL2Q88wXIbdnCic1en5Flc8ke2/tOOnZg3r6 o/+Edg9a9KX33tSbn4kJRfMCSsS/c0EhuWBVSRiAeHW+pCCPu+5SpUrWIjw/AwvjGcPj /cRFPVr9+Ss+90VteEZvBNFxtgmGeER8Kw9oBjBll78l/3Da2lahH0216jkl2VlH7kZn WwuQ== X-Gm-Message-State: AKwxytfWONpb2tW1Ot/KjjOkx5HuFVf9IorwOU9kU8AILOzWuz/yWOGi RhXlW0EEmL5ruDSBAolSGbvoHQ== X-Received: by 10.99.96.203 with SMTP id u194mr6598219pgb.167.1516608005752; Mon, 22 Jan 2018 00:00:05 -0800 (PST) Received: from ubt.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id g77sm29986258pfk.49.2018.01.21.23.59.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 22 Jan 2018 00:00:04 -0800 (PST) From: Chunyan Zhang To: Mark Brown , Rob Herring Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Ulf Hansson , Arnd Bergmann , Chunyan Zhang Subject: [PATCH V4 1/5] bindings: regulator: added support for suspend states Date: Mon, 22 Jan 2018 15:59:21 +0800 Message-Id: <1516607961-379-1-git-send-email-zhang.chunyan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515752305-15907-2-git-send-email-zhang.chunyan@linaro.org> References: <1515752305-15907-2-git-send-email-zhang.chunyan@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/regulator/regulator.txt b/Documentation/devicetree/bindings/regulator/regulator.txt index 378f6dc..e459226 100644 --- a/Documentation/devicetree/bindings/regulator/regulator.txt +++ b/Documentation/devicetree/bindings/regulator/regulator.txt @@ -42,8 +42,16 @@ 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. This property is now deprecated, instead + setting voltage for suspend mode via the API which regulator + driver provides is recommended. + - 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