From: Zain Wang Date: Thu, 7 Apr 2016 10:29:20 +0000 (+0800) Subject: Documentation: bindings: add devicetree bindings for fusb302 drivers X-Git-Tag: firefly_0821_release~1977 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=52072269c349faac4fd10f4adb3f589219cce6eb;p=firefly-linux-kernel-4.4.55.git Documentation: bindings: add devicetree bindings for fusb302 drivers Change-Id: Ifa82d8602d2ee39d43aac6cc98f8a402a0bd67d0 Signed-off-by: Zain Wang --- diff --git a/Documentation/devicetree/bindings/mfd/fusb302.txt b/Documentation/devicetree/bindings/mfd/fusb302.txt new file mode 100644 index 000000000000..239994208931 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/fusb302.txt @@ -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"; + }; +