Documentation: bindings: add devicetree bindings for fusb302 drivers
authorZain Wang <wzz@rock-chips.com>
Thu, 7 Apr 2016 10:29:20 +0000 (18:29 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Fri, 5 Aug 2016 06:49:59 +0000 (14:49 +0800)
Change-Id: Ifa82d8602d2ee39d43aac6cc98f8a402a0bd67d0
Signed-off-by: Zain Wang <wzz@rock-chips.com>
Documentation/devicetree/bindings/mfd/fusb302.txt [new file with mode: 0644]

diff --git a/Documentation/devicetree/bindings/mfd/fusb302.txt b/Documentation/devicetree/bindings/mfd/fusb302.txt
new file mode 100644 (file)
index 0000000..2399942
--- /dev/null
@@ -0,0 +1,23 @@
+Fairchild FUSB301 Driver
+
+Required properties:
+- compatible: "fairchild,fusb302"
+- reg: I2C slave address
+- pinctrl-names: Musb be "default"
+- pinctrl-0: fusb1_int musb be set to pull up.
+- vbus-5v-gpios: enable/disable 5v vbus output
+- vbus-other-gpios: enable/disable other high-voltage vbus output
+- int-n-gpios: I2C int pin
+
+example:
+       fusb1: fusb30x@22 {
+               compatible = "fairchild,fusb302";
+               reg = <0x22>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&fusb1_int>;
+               vbus-5v-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
+               vbus-other-gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
+               int-n-gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>;
+               status = "okay";
+       };
+