Received: by 10.223.176.46 with SMTP id f43csp4078192wra; Tue, 23 Jan 2018 04:01:32 -0800 (PST) X-Google-Smtp-Source: AH8x224pGzUJvRoN5o0HGiS30X1LmiWLGMUBNg6WvHdiGd/ggJ2aBDoCvsCCKRBk03P2Mr5rQ5Gp X-Received: by 10.98.135.76 with SMTP id i73mr10136446pfe.183.1516708892568; Tue, 23 Jan 2018 04:01:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516708892; cv=none; d=google.com; s=arc-20160816; b=R4jeNKskHwP5iXYgh6FfoH4Mnh0FkuxbnABqK85vOB7eHNI21OEZmu1xvPEMKAStc4 qj1w1rVQPvi0o61vXvC6Rg5CXcq4YPLNkw53do9AvW+btzQ1EEFJB6B84whBvCdWDLJJ 1SbE0j2AggjbQ0wHgMDOCrlF8MX/wt6g0S5+MWKP+B/ywGVJVqlfJ7NpYwQHzd5oOWuo W9/b6remKUAHfLA2/cF0ugKuZBCpAoaVQE8mpw7UetRmDCt+Tigf+okoguDa1CiQmOBY jQj8z4tVZug5Vpj4mFusIRkJHEWI2ZY+TlqfdiBlSc0/YZrDF/MSNFu9Hv/Bzd15A7LV BqXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=JvNSlIMTyVFAQEYAKhkukqbzC538/hhFEd2DI7mvImM=; b=hkviP8wRPz/kBcmXZj9f5CChjNQQ30c+3M8eUMbWANynopEf4QqxsXekycyjlnT5Dz 071IWyCmsspTrH9NafPsCslZX+zOqsFtvCWgc0OJ3E4DiV+PgYaZtMidfjJ4nwdD4fdd IJJqVlhQO2/ckvNN/dvPR1DL+8xX0uF55mYaFeR3tzi31ECncTV097UKbFKFw/5br4Yl 3Y4/5SImOqfL1Id/KeGt0OjOL0QbkVY0gRz/kIXcvceZeM+zchBudVP7qERuzjnNq6+O BwPHYYHxX3DguaVxHx/8YkK9prmamhgBrjhw4MDgTfP1STdgxeXESf2zbv5ECovhNsUX 5j9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SWW2acvt; 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 b5si14430630pgv.317.2018.01.23.04.01.17; Tue, 23 Jan 2018 04:01:32 -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=SWW2acvt; 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 S1751200AbeAWMAp (ORCPT + 99 others); Tue, 23 Jan 2018 07:00:45 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:43464 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751086AbeAWMAn (ORCPT ); Tue, 23 Jan 2018 07:00:43 -0500 Received: by mail-pg0-f66.google.com with SMTP id n17so121472pgf.10 for ; Tue, 23 Jan 2018 04:00:43 -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; bh=JvNSlIMTyVFAQEYAKhkukqbzC538/hhFEd2DI7mvImM=; b=SWW2acvtEocO6q00oD4Caexi7fNbgExBI1AQqVKL7/UXp6ek1z+1tuuuxum6CnzfWc wD9W6ltjpioijhmOLpofJ/eiBOpLGVyAIKopzphFLw2b3kuWIpJx6BVOfQTlYUfHbTJh +V8m/GbCQ3doqW6myYL9HyL+mH0782CO9XoWI= 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; bh=JvNSlIMTyVFAQEYAKhkukqbzC538/hhFEd2DI7mvImM=; b=VVVFQxDYFvBiafLkGTvDGQX0fIscYzv/D46KLolH5LLcczZ3h0z6qSkablLCGR7lYs f6AakPSklvWpkymxtTBxodzF73kxA3ScOnsJUAkBwSKA5h7Zn5aAax9QCxlXFGxgISE4 ryqDo9I8ZIZ+6sU5yHtQ8JJk+PaDo3XZ8Grgxymp+G1vBgFqzxxL8d/U0gPWRULgxTMC xc50XMOJPmjHqsE5Byi+cAENQy90ASofOYRFZEplnq+W5Me/ZobLpR9ZBeCLzfl2SHzR 9+jC/hZJnwLH+/2ezD7w9viPi9T5wc9FgbzwPzXK5iWCzQxbfxS2YyOkyenfloR2bRMl ogWw== X-Gm-Message-State: AKwxyte/g7HXvqVTb4Khn8NocJiXsxLEzN2qLGbanAujA3VK5gCR7l5X 70H0iM1UO9DPtmZAGvt4JxS3TA== X-Received: by 2002:a17:902:8b8a:: with SMTP id ay10-v6mr5311042plb.156.1516708842578; Tue, 23 Jan 2018 04:00:42 -0800 (PST) Received: from ubt.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id p75sm5853049pfi.148.2018.01.23.04.00.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 23 Jan 2018 04:00:41 -0800 (PST) From: Chunyan Zhang To: Mark Brown , Rob Herring Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Chunyan Zhang Subject: [PATCH V4 1/5] bindings: regulator: added support for suspend states Date: Tue, 23 Jan 2018 19:59:39 +0800 Message-Id: <1516708783-6288-1-git-send-email-zhang.chunyan@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/regulator/regulator.txt | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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 -- 2.7.4