Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1263227

[PATCH 2/7] doc:bindings:Document for mtcmos regulator on hi6220 SoC

From Chen Feng <puck.chen@hisilicon.com>
Newsgroups linux.kernel
Subject [PATCH 2/7] doc:bindings:Document for mtcmos regulator on hi6220 SoC
Date 2015-11-05 15:00 +0100
Message-ID <qrtf5-7pc-27@gated-at.bofh.it> (permalink)
References <qrsVH-7i3-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Add Document for mtcmos driver on hi6220 SoC

Signed-off-by: Chen Feng <puck.chen@hisilicon.com>
Signed-off-by: Fei Wang <w.f@huawei.com>
---
 .../bindings/regulator/hisilicon,hi6220-mtcmos.txt | 32 ++++++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/regulator/hisilicon,hi6220-mtcmos.txt

diff --git a/Documentation/devicetree/bindings/regulator/hisilicon,hi6220-mtcmos.txt b/Documentation/devicetree/bindings/regulator/hisilicon,hi6220-mtcmos.txt
new file mode 100644
index 0000000..bb06e1b
--- /dev/null
+++ b/Documentation/devicetree/bindings/regulator/hisilicon,hi6220-mtcmos.txt
@@ -0,0 +1,32 @@
+Hi6220 mtcmos Voltage regulators
+
+Required parent device properties:
+- compatible: Must be "hisilicon,hi6220-mtcmos-driver"
+- hisilicon,mtcmos-steady-us: The time to wait for power steady
+- hisilicon,mtcmos-sc-on-base: address of mtcmos on hi6220 SoC
+
+Required child device properties:
+- regulator-name: The name of mtcmos
+- hisilicon,ctrl-regs: Offset of ctrl-regs
+- hisilicon,ctrl-data: The bit to ctrl the regulator
+
+Example:
+        mtcmos {
+                compatible = "hisilicon,hi6220-mtcmos-driver";
+                hisilicon,mtcmos-steady-us = <10>;
+                hisilicon,mtcmos-sc-on-base  = <0xf7800000>;
+                hisilicon,mtcmos-acpu-on-base = <0xf65a0000>;
+
+                mtcmos1: regulator@a1{
+                        regulator-name = "G3D_PD_VDD";
+                        regulator-compatible = "mtcmos1";
+                        hisilicon,ctrl-regs = <0x830 0x834 0x83c>;
+                        hisilicon,ctrl-data = <1 0x1>;
+                };
+                mtcmos2: regulator@a2{
+                        regulator-name = "SOC_MED";
+                        regulator-compatible = "mtcmos2";
+                        hisilicon,ctrl-regs = <0x830 0x834 0x83c>;
+                        hisilicon,ctrl-data = <2 0x1>;
+                };
+        };
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/7] Add Support for Hi6220 PMIC Hi6553 MFD Core Chen Feng <puck.chen@hisilicon.com> - 2015-11-05 14:50 +0100
  [PATCH 6/7] regulator: hisilicon: Add hi655x pmic voltage regulator driver Chen Feng <puck.chen@hisilicon.com> - 2015-11-05 15:00 +0100
    Re: [PATCH 6/7] regulator: hisilicon: Add hi655x pmic voltage  regulator driver Mark Brown <broonie@kernel.org> - 2015-11-05 16:30 +0100
    Re: [PATCH 6/7] regulator: hisilicon: Add hi655x pmic voltage  regulator driver Andy Shevchenko <andy.shevchenko@gmail.com> - 2015-11-06 22:30 +0100
  [PATCH 2/7] doc:bindings:Document for mtcmos regulator on hi6220 SoC Chen Feng <puck.chen@hisilicon.com> - 2015-11-05 15:00 +0100
    Re: [PATCH 2/7] doc:bindings:Document for mtcmos regulator on hi6220  SoC Mark Brown <broonie@kernel.org> - 2015-11-05 15:20 +0100
    Re: [PATCH 2/7] doc:bindings:Document for mtcmos regulator on hi6220  SoC Rob Herring <robh@kernel.org> - 2015-11-05 21:40 +0100

csiph-web