hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/Documentation/devicetree/bindings/usb/mediatek,mtu3.txt
....@@ -16,8 +16,8 @@
1616 entry in clock-names
1717 - clock-names : must contain "sys_ck" for clock of controller,
1818 the following clocks are optional:
19
- "ref_ck", "mcu_ck" and "dam_ck";
20
- - phys : see usb-hcd.txt in the current directory
19
+ "ref_ck", "mcu_ck" and "dma_ck";
20
+ - phys : see usb-hcd.yaml in the current directory
2121 - dr_mode : should be one of "host", "peripheral" or "otg",
2222 refer to usb/generic.txt
2323
....@@ -28,8 +28,13 @@
2828 parent's address space
2929 - extcon : external connector for vbus and idpin changes detection, needed
3030 when supports dual-role mode.
31
+ it's considered valid for compatibility reasons, not allowed for
32
+ new bindings, and use "usb-role-switch" property instead.
3133 - vbus-supply : reference to the VBUS regulator, needed when supports
3234 dual-role mode.
35
+ it's considered valid for compatibility reasons, not allowed for
36
+ new bindings, and put into a usb-connector node.
37
+ see connector/usb-connector.yaml.
3338 - pinctrl-names : a pinctrl state named "default" is optional, and need be
3439 defined if auto drd switch is enabled, that means the property dr_mode
3540 is set as "otg", and meanwhile the property "mediatek,enable-manual-drd"
....@@ -39,6 +44,8 @@
3944
4045 - maximum-speed : valid arguments are "super-speed", "high-speed" and
4146 "full-speed"; refer to usb/generic.txt
47
+ - usb-role-switch : use USB Role Switch to support dual-role switch, but
48
+ not extcon; see usb/generic.txt.
4249 - enable-manual-drd : supports manual dual-role switch via debugfs; usually
4350 used when receptacle is TYPE-A and also wants to support dual-role
4451 mode.
....@@ -53,7 +60,7 @@
5360 - mediatek,u3p-dis-msk : mask to disable u3ports, bit0 for u3port0,
5461 bit1 for u3port1, ... etc;
5562
56
-additionally the properties from usb-hcd.txt (in the current directory) are
63
+additionally the properties from usb-hcd.yaml (in the current directory) are
5764 supported.
5865
5966 Sub-nodes:
....@@ -61,6 +68,9 @@
6168 if host mode is enabled. The DT binding details of xhci can be found in:
6269 Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.txt
6370
71
+The port would be added as subnode if use "usb-role-switch" property.
72
+ see graph.txt
73
+
6474 Example:
6575 ssusb: usb@11271000 {
6676 compatible = "mediatek,mt8173-mtu3";