aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFei Wang <w.f@huawei.com>2015-09-19 10:17:47 +0800
committerAndrey Konovalov <andrey.konovalov@linaro.org>2015-10-08 18:57:32 +0300
commitbf6f1de3b390fa14261ace5cdb72cc2a4e24c1ee (patch)
treebb4d752545ca48985bcbfa53e27f8502b1ca34e0
parentd55b9e909886c2db390042987a0e1df1bcd92e2e (diff)
dt-bindings: mtcmos: Document Hi6220 mtcmos driver
Document the new compatible for Hisilicon Hi6220 mtcmos driver. Signed-off-by: Fei Wang <w.f@huawei.com>
-rw-r--r--Documentation/devicetree/bindings/regulator/hisilicon,hi6220-mtcmos.txt32
1 files changed, 32 insertions, 0 deletions
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 000000000000..748ac6284634
--- /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 hi6220 soc control register
+
+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>;
+ };
+ };