From patchwork Thu Nov 5 13:34:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen Feng X-Patchwork-Id: 56047 Delivered-To: patch@linaro.org Received: by 10.112.61.134 with SMTP id p6csp413172lbr; Thu, 5 Nov 2015 05:44:08 -0800 (PST) X-Received: by 10.68.89.197 with SMTP id bq5mr9487815pbb.1.1446731047971; Thu, 05 Nov 2015 05:44:07 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cj10si7809419pad.61.2015.11.05.05.44.07; Thu, 05 Nov 2015 05:44:07 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1032421AbbKENoG (ORCPT + 6 others); Thu, 5 Nov 2015 08:44:06 -0500 Received: from szxga02-in.huawei.com ([119.145.14.65]:30667 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756134AbbKENoF (ORCPT ); Thu, 5 Nov 2015 08:44:05 -0500 Received: from 172.24.1.47 (EHLO szxeml426-hub.china.huawei.com) ([172.24.1.47]) by szxrg02-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id CVT68609; Thu, 05 Nov 2015 21:35:04 +0800 (CST) Received: from vm163-62.huawei.com (10.184.163.62) by szxeml426-hub.china.huawei.com (10.82.67.181) with Microsoft SMTP Server id 14.3.235.1; Thu, 5 Nov 2015 21:34:54 +0800 From: Chen Feng To: , , , , , , , , , , , , , , , , , , , , , , , , CC: , , , Subject: [PATCH 3/7] doc:bindings:Document for hi655x pmic driver Date: Thu, 5 Nov 2015 21:34:44 +0800 Message-ID: <1446730488-31930-4-git-send-email-puck.chen@hisilicon.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1446730488-31930-1-git-send-email-puck.chen@hisilicon.com> References: <1446730488-31930-1-git-send-email-puck.chen@hisilicon.com> MIME-Version: 1.0 X-Originating-IP: [10.184.163.62] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020204.563B5B0B.0245,ss=1,re=0.000,fgs=0, ip=0.0.0.0, so=2013-06-18 04:22:30, dmn=2011-05-27 18:58:46 X-Mirapoint-Loop-Id: df018634e7e44c450309c4eb4c802dc8 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add Document for hi655x pmic driver Signed-off-by: Chen Feng Signed-off-by: Fei Wang --- .../regulator/hisilicon,hi655x-regulator.txt | 50 ++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/hisilicon,hi655x-regulator.txt -- 1.9.1 -- 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 diff --git a/Documentation/devicetree/bindings/regulator/hisilicon,hi655x-regulator.txt b/Documentation/devicetree/bindings/regulator/hisilicon,hi655x-regulator.txt new file mode 100644 index 0000000..66c6a73 --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/hisilicon,hi655x-regulator.txt @@ -0,0 +1,50 @@ +Hisilicon Hi655x Voltage regulators + +Note: +The hi655x regulator control is managed by hi655x Power IC. +So the node of this regulator must be child node of hi655x +pmic node. + +The driver uses the regulator core framework, so please also +take the bindings of regulator.txt for reference. + +Required properties: +- compatible: Must be "hisilicon,hi655x-regulator-pmic"; +- regulator-name: Regulator name in SoC. +- regulator-min-microvolt: Smallest voltage support. +- regulator-max-microvolt: Largest voltages support. +- regulator-initial-mode: Init mode of this regulator. +- regulator-valid-modes-mask: Valid support mode mask. +- regulator-off-on-delay: The time wait for power steady +- regulator-ctrl-regs: Registers offset of control register. + In turn with enable disable and status register offset. +- regulator-ctrl-mask: The control mask of the register. +- regulator-vset-regs: Voltage set register offset. +- regulator-vset-mask: voltage set control mask. +- regulator-n-vol: The num of support voltages. +- regulator-vset-table: The table of support voltages. + +Example: + pmic: pmic@f8000000 { + compatible = "hisilicon,hi655x-pmic-driver"; + ... + ldo2: regulator@a21 { + compatible = "hisilicon,hi655x-regulator-pmic"; + regulator-name = "ldo2"; + regulator-min-microvolt = <2500000>; + regulator-max-microvolt = <3200000>; + regulator-valid-modes-mask = <0x02>; + regulator-initial-mode = <0x02>; + regulator-off-on-delay = <120>; + regulator-ctrl-regs = <0x029 0x02a 0x02b>; + regulator-ctrl-mask = <0x1>; + regulator-vset-regs = <0x072>; + regulator-vset-mask = <0x3>; + regulator-n-vol = <8>; + regulator-vset-table = <2500000>,<2600000>, + <2700000>,<2800000>, + <2900000>,<3000000>, + <3100000>,<3200000>; + }; + ... + }