Lines Matching +full:role +full:- +full:switch +full:- +full:default +full:- +full:mode

1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 ---
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,mt8186-mtu3
28 - mediatek,mt8188-mtu3
29 - mediatek,mt8192-mtu3
30 - mediatek,mt8195-mtu3
31 - mediatek,mt8365-mtu3
32 - const: mediatek,mtu3
36 - description: the registers of device MAC
37 - description: the registers of IP Port Control
39 reg-names:
41 - const: mac
42 - const: ippc
46 use "interrupts-extended" when the interrupts are connected to the
50 - description: SSUSB device controller interrupt
51 - description: optional, wakeup interrupt used to support runtime PM
53 interrupt-names:
55 - const: device
56 - const: wakeup
58 power-domains:
65 - description: Controller clock used by normal mode
66 - description: Reference clock used by low power mode etc
67 - description: Mcu bus clock for register access
68 - description: DMA bus clock for data transfer
69 - description: DRD controller clock
70 - description: Frame count clock
72 clock-names:
75 - const: sys_ck # required, others are optional
76 - const: ref_ck
77 - const: mcu_ck
78 - const: dma_ck
79 - const: xhci_ck
80 - const: frmcnt_ck
88 - description: USB2/HS PHY # required, others are optional
89 - description: USB3/SS(P) PHY
90 - description: USB2/HS PHY # the following for backward compatible
91 - description: USB3/SS(P) PHY
92 - description: USB2/HS PHY
93 - description: USB3/SS(P) PHY
94 - description: USB2/HS PHY
95 - description: USB3/SS(P) PHY
96 - description: USB2/HS PHY
98 vusb33-supply:
101 vbus-supply:
104 Regulator of USB VBUS5v, needed when supports dual-role mode.
106 model it as a regulator. See bindings/regulator/fixed-regulator.yaml
108 new bindings, and put into a usb-connector node.
112 default: otg
114 maximum-speed:
115 enum: [super-speed-plus, super-speed, high-speed, full-speed]
120 "#address-cells":
123 "#size-cells":
132 when supports dual-role mode.
134 new bindings, and use "usb-role-switch" property instead.
136 usb-role-switch:
138 description: Support role switch.
141 role-switch-default-mode:
143 default: host
146 $ref: /schemas/connector/usb-connector.yaml#
148 Connector for dual role switch, especially for "gpio-usb-b-connector"
154 using the OF graph bindings specified, if the "usb-role-switch"
170 enable-manual-drd:
173 supports manual dual-role switch via debugfs; usually used when
174 receptacle is TYPE-A and also wants to support dual-role mode.
177 wakeup-source:
178 description: enable USB remote wakeup, see power/wakeup-source.txt
181 mediatek,syscon-wakeup:
182 $ref: /schemas/types.yaml#/definitions/phandle-array
189 - description:
191 - description:
194 - description: |
196 1 - used by mt8173 etc, revision 1 without following IPM rule;
197 2 - used by mt2712 etc, revision 2 with following IPM rule;
198 101 - used by mt8183, specific 1.01;
199 102 - used by mt8192, specific 1.02;
200 103 - used by mt8195, IP0, specific 1.03;
201 105 - used by mt8195, IP2, specific 1.05;
202 106 - used by mt8195, IP3, specific 1.06;
205 mediatek,u3p-dis-msk:
210 mediatek,u2p-dis-msk:
213 bit1 for u2port1, ... etc; but can't disable u2port0 if dual role mode
216 # Required child node when support dual-role
218 "^usb@[0-9a-f]+$":
220 $ref: /schemas/usb/mediatek,mtk-xhci.yaml#
223 example if the host mode is enabled.
226 connector: [ usb-role-switch ]
227 port: [ usb-role-switch ]
228 role-switch-default-mode: [ usb-role-switch ]
229 wakeup-source: [ 'mediatek,syscon-wakeup' ]
232 - compatible
233 - reg
234 - reg-names
235 - interrupts
236 - clocks
237 - clock-names
242 # Dual role switch by extcon
243 - |
244 #include <dt-bindings/clock/mt8173-clk.h>
245 #include <dt-bindings/interrupt-controller/arm-gic.h>
246 #include <dt-bindings/interrupt-controller/irq.h>
247 #include <dt-bindings/phy/phy.h>
248 #include <dt-bindings/power/mt8173-power.h>
251 compatible = "mediatek,mt8173-mtu3", "mediatek,mtu3";
253 reg-names = "mac", "ippc";
256 power-domains = <&scpsys MT8173_POWER_DOMAIN_USB>;
258 clock-names = "sys_ck";
259 vusb33-supply = <&mt6397_vusb_reg>;
260 vbus-supply = <&usb_p0_vbus>;
263 wakeup-source;
264 mediatek,syscon-wakeup = <&pericfg 0x400 1>;
265 #address-cells = <1>;
266 #size-cells = <1>;
270 compatible = "mediatek,mt8173-xhci", "mediatek,mtk-xhci";
272 reg-names = "mac";
274 power-domains = <&scpsys MT8173_POWER_DOMAIN_USB>;
276 clock-names = "sys_ck", "ref_ck";
277 vusb33-supply = <&mt6397_vusb_reg>;
281 # Dual role switch by gpio-usb-b-connector
282 - |
283 #include <dt-bindings/gpio/gpio.h>
284 #include <dt-bindings/power/mt2712-power.h>
287 compatible = "mediatek,mt2712-mtu3", "mediatek,mtu3";
289 reg-names = "mac", "ippc";
292 power-domains = <&scpsys MT2712_POWER_DOMAIN_USB2>;
294 clock-names = "sys_ck";
296 usb-role-switch;
297 #address-cells = <1>;
298 #size-cells = <1>;
302 compatible = "mediatek,mt2712-xhci", "mediatek,mtk-xhci";
304 reg-names = "mac";
306 power-domains = <&scpsys MT2712_POWER_DOMAIN_USB>;
308 clock-names = "sys_ck", "ref_ck";
312 compatible = "gpio-usb-b-connector", "usb-b-connector";
314 id-gpios = <&pio 12 GPIO_ACTIVE_HIGH>;
315 vbus-supply = <&usb_p0_vbus>;
319 # Dual role switch with type-c
320 - |
322 compatible = "mediatek,mt8183-mtu3", "mediatek,mtu3";
324 reg-names = "mac", "ippc";
328 clock-names = "sys_ck";
329 mediatek,syscon-wakeup = <&pericfg 0x400 1>;
330 wakeup-source;
332 usb-role-switch;
333 role-switch-default-mode = "host";
334 #address-cells = <1>;
335 #size-cells = <1>;
339 compatible = "mediatek,mt8183-xhci", "mediatek,mtk-xhci";
341 reg-names = "mac";
344 clock-names = "sys_ck";
349 remote-endpoint = <&hs_ep>;