summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/usb/typec-tcpci.txt
blob: 7ef2167ba767503a10788253a6403cac93dc550c (plain)
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
31
32
33
34
35
36
37
38
39
40
TCPCI(Typec port cotroller interface) binding
---------------------------------------------

Required properties:
- compatible:       should be "usb,tcpci".
- reg:              the i2c slave address of typec port controller device.
- interrupt-parent: the phandle to the interrupt controller which provides
                    the interrupt.
- interrupts:       interrupt specification for tcpci alert.
- port-type:        typec port type.
- default-role:     preferred power role if port type is "drp".

Required properties only for power source or drp:
- src-pdos

Required properties only for power sink or drp:
- snk-pdos
- max-snk-mv
- max-snk-ma
- op-snk-mw

Optional properties:
- sink-disable:     disable vbus sink in sink role in case we only can be source
                    for power but need dual data role.

Example:

ptn5110@50 {
	compatible = "usb,tcpci";
	reg = <0x50>;
	interrupt-parent = <&gpio3>;
	interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
	port-type = "drp";
	default-role = "sink";
	src-pdos = <0x380190c8>;
	snk-pdos = <0x380190c8 0x3802d0c8>;
	max-snk-mv = <9000>;
	max-snk-ma = <1000>;
	op-snk-mw = <9000>;
};