hc
2023-02-18 a08c8b75ee83d7f62c9aefc23bfb42082aa4076c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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
- fusb302,role: typec port power role
       (ROLE_MODE_DRP/ROLE_MODE_DFP/ROLE_MODE_UFP)
- fusb302,try_role: enable try.role function, it would try your wanted
           role when detect.
           Valid when fusb302,role == ROLE_MODE_DRP.
           (ROLE_MODE_DFP/ROLE_MODE_UFP)
 
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>;
       fusb302,role = "ROLE_MODE_DRP";
       fusb302,try_role = "ROLE_MODE_DFP";
       status = "okay";
   };