Lines Matching +full:usb +full:- +full:role +full:- +full:switch

1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 ---
5 $id: http://devicetree.org/schemas/usb/mediatek,mtu3.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
11 - Chunfeng Yun <chunfeng.yun@mediatek.com>
14 - $ref: "usb-drd.yaml"
23 - enum:
24 - mediatek,mt2712-mtu3
25 - mediatek,mt8173-mtu3
26 - mediatek,mt8183-mtu3
27 - mediatek,mt8192-mtu3
28 - const: mediatek,mtu3
32 - description: the registers of device MAC
33 - description: the registers of IP Port Control
35 reg-names:
37 - const: mac
38 - const: ippc
42 use "interrupts-extended" when the interrupts are connected to the
46 - description: SSUSB device controller interrupt
47 - description: optional, wakeup interrupt used to support runtime PM
49 interrupt-names:
51 - const: device
52 - const: wakeup
54 power-domains:
55 description: A phandle to USB power domain node to control USB's MTCMOS
61 - description: Controller clock used by normal mode
62 - description: Reference clock used by low power mode etc
63 - description: Mcu bus clock for register access
64 - description: DMA bus clock for data transfer
66 clock-names:
69 - const: sys_ck # required, others are optional
70 - const: ref_ck
71 - const: mcu_ck
72 - const: dma_ck
76 List of all the USB PHYs used, it's better to keep the sequence
80 - description: USB2/HS PHY # required, others are optional
81 - description: USB3/SS(P) PHY
82 - description: USB2/HS PHY # the following for backward compatible
83 - description: USB3/SS(P) PHY
84 - description: USB2/HS PHY
85 - description: USB3/SS(P) PHY
86 - description: USB2/HS PHY
87 - description: USB3/SS(P) PHY
88 - description: USB2/HS PHY
90 vusb33-supply:
91 description: Regulator of USB AVDD3.3v
93 vbus-supply:
96 Regulator of USB VBUS5v, needed when supports dual-role mode.
98 model it as a regulator. See bindings/regulator/fixed-regulator.yaml
100 new bindings, and put into a usb-connector node.
106 maximum-speed:
107 enum: [super-speed-plus, super-speed, high-speed, full-speed]
109 "#address-cells":
112 "#size-cells":
121 when supports dual-role mode.
123 new bindings, and use "usb-role-switch" property instead.
125 usb-role-switch:
127 description: Support role switch.
130 role-switch-default-mode:
135 $ref: /connector/usb-connector.yaml#
137 Connector for dual role switch, especially for "gpio-usb-b-connector"
143 using the OF graph bindings specified, if the "usb-role-switch"
147 enable-manual-drd:
150 supports manual dual-role switch via debugfs; usually used when
151 receptacle is TYPE-A and also wants to support dual-role mode.
154 wakeup-source:
155 description: enable USB remote wakeup, see power/wakeup-source.txt
158 mediatek,syscon-wakeup:
159 $ref: /schemas/types.yaml#/definitions/phandle-array
162 A phandle to syscon used to access the register of the USB wakeup glue
166 - description:
168 - description:
171 - description: |
173 1 - used by mt8173 etc, revision 1 without following IPM rule;
174 2 - used by mt2712 etc, revision 2 with following IPM rule;
175 101 - used by mt8183, specific 1.01;
176 102 - used by mt8192, specific 1.02;
179 mediatek,u3p-dis-msk:
184 mediatek,u2p-dis-msk:
187 bit1 for u2port1, ... etc; but can't disable u2port0 if dual role mode
190 # Required child node when support dual-role
192 "^usb@[0-9a-f]+$":
194 $ref: /usb/mediatek,mtk-xhci.yaml#
200 connector: [ 'usb-role-switch' ]
201 port: [ 'usb-role-switch' ]
202 role-switch-default-mode: [ 'usb-role-switch' ]
203 wakeup-source: [ 'mediatek,syscon-wakeup' ]
206 - compatible
207 - reg
208 - reg-names
209 - interrupts
210 - clocks
211 - clock-names
216 # Dual role switch by extcon
217 - |
218 #include <dt-bindings/clock/mt8173-clk.h>
219 #include <dt-bindings/interrupt-controller/arm-gic.h>
220 #include <dt-bindings/interrupt-controller/irq.h>
221 #include <dt-bindings/phy/phy.h>
222 #include <dt-bindings/power/mt8173-power.h>
224 usb@11271000 {
225 compatible = "mediatek,mt8173-mtu3", "mediatek,mtu3";
227 reg-names = "mac", "ippc";
230 power-domains = <&scpsys MT8173_POWER_DOMAIN_USB>;
232 clock-names = "sys_ck";
233 vusb33-supply = <&mt6397_vusb_reg>;
234 vbus-supply = <&usb_p0_vbus>;
237 wakeup-source;
238 mediatek,syscon-wakeup = <&pericfg 0x400 1>;
239 #address-cells = <1>;
240 #size-cells = <1>;
243 xhci: usb@11270000 {
244 compatible = "mediatek,mt8173-xhci", "mediatek,mtk-xhci";
246 reg-names = "mac";
248 power-domains = <&scpsys MT8173_POWER_DOMAIN_USB>;
250 clock-names = "sys_ck", "ref_ck";
251 vusb33-supply = <&mt6397_vusb_reg>;
255 # Dual role switch by gpio-usb-b-connector
256 - |
257 #include <dt-bindings/gpio/gpio.h>
258 #include <dt-bindings/power/mt2712-power.h>
260 usb@112c1000 {
261 compatible = "mediatek,mt2712-mtu3", "mediatek,mtu3";
263 reg-names = "mac", "ippc";
266 power-domains = <&scpsys MT2712_POWER_DOMAIN_USB2>;
268 clock-names = "sys_ck";
270 usb-role-switch;
271 #address-cells = <1>;
272 #size-cells = <1>;
275 host0: usb@11270000 {
276 compatible = "mediatek,mt2712-xhci", "mediatek,mtk-xhci";
278 reg-names = "mac";
280 power-domains = <&scpsys MT2712_POWER_DOMAIN_USB>;
282 clock-names = "sys_ck", "ref_ck";
286 compatible = "gpio-usb-b-connector", "usb-b-connector";
288 id-gpios = <&pio 12 GPIO_ACTIVE_HIGH>;
289 vbus-supply = <&usb_p0_vbus>;
293 # Dual role switch with type-c
294 - |
295 usb@11201000 {
296 compatible ="mediatek,mt8183-mtu3", "mediatek,mtu3";
298 reg-names = "mac", "ippc";
302 clock-names = "sys_ck";
303 mediatek,syscon-wakeup = <&pericfg 0x400 1>;
304 wakeup-source;
306 usb-role-switch;
307 role-switch-default-mode = "host";
308 #address-cells = <1>;
309 #size-cells = <1>;
312 host: usb@11200000 {
313 compatible = "mediatek,mt8183-xhci", "mediatek,mtk-xhci";
315 reg-names = "mac";
318 clock-names = "sys_ck";
323 remote-endpoint = <&hs_ep>;