xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/mfd/fusb302.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1Fairchild FUSB301 Driver
2
3Required properties:
4- compatible: "fairchild,fusb302"
5- reg: I2C slave address
6- pinctrl-names: Musb be "default"
7- pinctrl-0: fusb1_int musb be set to pull up.
8- vbus-5v-gpios: enable/disable 5v vbus output
9- vbus-other-gpios: enable/disable other high-voltage vbus output
10- int-n-gpios: I2C int pin
11- fusb302,role: typec port power role
12		(ROLE_MODE_DRP/ROLE_MODE_DFP/ROLE_MODE_UFP)
13- fusb302,try_role: enable try.role function, it would try your wanted
14		    role when detect.
15		    Valid when fusb302,role == ROLE_MODE_DRP.
16		    (ROLE_MODE_DFP/ROLE_MODE_UFP)
17
18example:
19	fusb1: fusb30x@22 {
20		compatible = "fairchild,fusb302";
21		reg = <0x22>;
22		pinctrl-names = "default";
23		pinctrl-0 = <&fusb1_int>;
24		vbus-5v-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
25		vbus-other-gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
26		int-n-gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>;
27		fusb302,role = "ROLE_MODE_DRP";
28		fusb302,try_role = "ROLE_MODE_DFP";
29		status = "okay";
30	};
31
32