From patchwork Thu Dec 11 03:16:41 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Zhong X-Patchwork-Id: 5473961 Return-Path: X-Original-To: patchwork-linux-rockchip@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id CB32FBEEA8 for ; Thu, 11 Dec 2014 03:17:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F07B620172 for ; Thu, 11 Dec 2014 03:17:26 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 22FC02017D for ; Thu, 11 Dec 2014 03:17:26 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XyuFp-0001DR-J3; Thu, 11 Dec 2014 03:17:25 +0000 Received: from mail-pa0-f51.google.com ([209.85.220.51]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XyuFm-0000zr-B4 for linux-rockchip@lists.infradead.org; Thu, 11 Dec 2014 03:17:23 +0000 Received: by mail-pa0-f51.google.com with SMTP id ey11so4100078pad.24 for ; Wed, 10 Dec 2014 19:17:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=tERI9urQkDOQVAVjNf9hLc6mQEgoNfFusjPxW811gpU=; b=iVkryG1ELwksGLqx52t388VHHmSlg4UTWZG+AIHpAB0fMIOKvEVvlvXD2B642zcSFD SYzoajW4OoiqbXGwS8oCgU9Dy0BZQJQ58n5aKMpJiE1TuUKqu8F3MMF+HDzmj1ZlAJmu RV+dStP33DIM6F0ue0T7hZbT6tAEtsdu4apNcxV6GNYUpjJF1sTqDQyxr1khogWO0KFa f4MFKAXjoW96R/ihsCCjBVu4dI0Ihqiw+wKXMc1jB3HaLmt46Mcan15tUrPSRicqzoey UcNcQ4yxRj/Aw48hewwIqfOkg4ytGBXvtIz/L89jB9Q2xJisoAfy5gf9PHetkswivNX3 uEvA== X-Received: by 10.70.118.1 with SMTP id ki1mr12791488pdb.69.1418267820758; Wed, 10 Dec 2014 19:17:00 -0800 (PST) Received: from localhost.localdomain ([104.167.231.143]) by mx.google.com with ESMTPSA id xq4sm5455086pbb.21.2014.12.10.19.16.54 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 10 Dec 2014 19:16:59 -0800 (PST) From: Chris Zhong To: heiko@sntech.de, dianders@chromium.org, broonie@kernel.org Subject: [PATCH v2 1/2] mfd: dt-bindings: add the description about dvs gpio for rk808 Date: Thu, 11 Dec 2014 11:16:41 +0800 Message-Id: <1418267802-13159-2-git-send-email-zyw@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1418267802-13159-1-git-send-email-zyw@rock-chips.com> References: <1418267802-13159-1-git-send-email-zyw@rock-chips.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141210_191722_482162_212DE334 X-CRM114-Status: UNSURE ( 8.92 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.4 (/) Cc: Mark Rutland , devicetree@vger.kernel.org, Pawel Moll , Ian Campbell , Zhang Qing , linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Rob Herring , Kumar Gala , Chris Zhong , Lee Jones X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP add the description about dvs1, dvs2, dvsok, and add the example. Signed-off-by: Chris Zhong Reviewed-by: Doug Anderson --- Changes in v2: - increase description about dvs pins Documentation/devicetree/bindings/mfd/rk808.txt | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mfd/rk808.txt b/Documentation/devicetree/bindings/mfd/rk808.txt index 9e6e259..923cdca 100644 --- a/Documentation/devicetree/bindings/mfd/rk808.txt +++ b/Documentation/devicetree/bindings/mfd/rk808.txt @@ -24,6 +24,14 @@ Optional properties: - vcc10-supply: The input supply for LDO_REG6 - vcc11-supply: The input supply for LDO_REG8 - vcc12-supply: The input supply for SWITCH_REG2 +- dvs-gpios: buck1/2 can be controlled by gpio dvs, this is GPIO specifiers + for 2 host gpio's used for dvs. The format of the gpio specifier depends in + the gpio controller. If DVS GPIOs aren't present, voltage changes will happen + without being very quickly with no slow ramp time. +- dvsok-gpios: if we use dvs gpio to control buck1/2, this gpio will be pull + high, once RK808 completed the adjustment of voltage. If the DVSOK isn't + present, we'll just delay based on whatever is specified in the regulator + constraints. Regulators: All the regulators of RK808 to be instantiated shall be listed in a child node named 'regulators'. Each regulator is represented @@ -55,7 +63,10 @@ Example: interrupt-parent = <&gpio0>; interrupts = <4 IRQ_TYPE_LEVEL_LOW>; pinctrl-names = "default"; - pinctrl-0 = <&pmic_int>; + pinctrl-0 = <&pmic_int &dvs_ok &dvs_1 &dvs_2>; + dvsok-gpios = <&gpio7 9 GPIO_ACTIVE_HIGH>; + dvs-gpios = <&gpio7 11 GPIO_ACTIVE_HIGH>, + <&gpio7 15 GPIO_ACTIVE_HIGH>; reg = <0x1b>; rockchip,system-power-controller; wakeup-source;