Lines Matching +full:power +full:- +full:role
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,mt8188-mtu3
28 - mediatek,mt8192-mtu3
29 - mediatek,mt8195-mtu3
30 - const: mediatek,mtu3
34 - description: the registers of device MAC
35 - description: the registers of IP Port Control
37 reg-names:
39 - const: mac
40 - const: ippc
44 use "interrupts-extended" when the interrupts are connected to the
48 - description: SSUSB device controller interrupt
49 - description: optional, wakeup interrupt used to support runtime PM
51 interrupt-names:
53 - const: device
54 - const: wakeup
56 power-domains:
57 description: A phandle to USB power domain node to control USB's MTCMOS
63 - description: Controller clock used by normal mode
64 - description: Reference clock used by low power mode etc
65 - description: Mcu bus clock for register access
66 - description: DMA bus clock for data transfer
68 clock-names:
71 - const: sys_ck # required, others are optional
72 - const: ref_ck
73 - const: mcu_ck
74 - const: dma_ck
82 - description: USB2/HS PHY # required, others are optional
83 - description: USB3/SS(P) PHY
84 - description: USB2/HS PHY # the following for backward compatible
85 - description: USB3/SS(P) PHY
86 - description: USB2/HS PHY
87 - description: USB3/SS(P) PHY
88 - description: USB2/HS PHY
89 - description: USB3/SS(P) PHY
90 - description: USB2/HS PHY
92 vusb33-supply:
95 vbus-supply:
98 Regulator of USB VBUS5v, needed when supports dual-role mode.
100 model it as a regulator. See bindings/regulator/fixed-regulator.yaml
102 new bindings, and put into a usb-connector node.
108 maximum-speed:
109 enum: [super-speed-plus, super-speed, high-speed, full-speed]
114 "#address-cells":
117 "#size-cells":
126 when supports dual-role mode.
128 new bindings, and use "usb-role-switch" property instead.
130 usb-role-switch:
132 description: Support role switch.
135 role-switch-default-mode:
140 $ref: /schemas/connector/usb-connector.yaml#
142 Connector for dual role switch, especially for "gpio-usb-b-connector"
148 using the OF graph bindings specified, if the "usb-role-switch"
152 enable-manual-drd:
155 supports manual dual-role switch via debugfs; usually used when
156 receptacle is TYPE-A and also wants to support dual-role mode.
159 wakeup-source:
160 description: enable USB remote wakeup, see power/wakeup-source.txt
163 mediatek,syscon-wakeup:
164 $ref: /schemas/types.yaml#/definitions/phandle-array
171 - description:
173 - description:
176 - description: |
178 1 - used by mt8173 etc, revision 1 without following IPM rule;
179 2 - used by mt2712 etc, revision 2 with following IPM rule;
180 101 - used by mt8183, specific 1.01;
181 102 - used by mt8192, specific 1.02;
184 mediatek,u3p-dis-msk:
189 mediatek,u2p-dis-msk:
192 bit1 for u2port1, ... etc; but can't disable u2port0 if dual role mode
195 # Required child node when support dual-role
197 "^usb@[0-9a-f]+$":
199 $ref: /schemas/usb/mediatek,mtk-xhci.yaml#
205 connector: [ 'usb-role-switch' ]
206 port: [ 'usb-role-switch' ]
207 role-switch-default-mode: [ 'usb-role-switch' ]
208 wakeup-source: [ 'mediatek,syscon-wakeup' ]
211 - compatible
212 - reg
213 - reg-names
214 - interrupts
215 - clocks
216 - clock-names
221 # Dual role switch by extcon
222 - |
223 #include <dt-bindings/clock/mt8173-clk.h>
224 #include <dt-bindings/interrupt-controller/arm-gic.h>
225 #include <dt-bindings/interrupt-controller/irq.h>
226 #include <dt-bindings/phy/phy.h>
227 #include <dt-bindings/power/mt8173-power.h>
230 compatible = "mediatek,mt8173-mtu3", "mediatek,mtu3";
232 reg-names = "mac", "ippc";
235 power-domains = <&scpsys MT8173_POWER_DOMAIN_USB>;
237 clock-names = "sys_ck";
238 vusb33-supply = <&mt6397_vusb_reg>;
239 vbus-supply = <&usb_p0_vbus>;
242 wakeup-source;
243 mediatek,syscon-wakeup = <&pericfg 0x400 1>;
244 #address-cells = <1>;
245 #size-cells = <1>;
249 compatible = "mediatek,mt8173-xhci", "mediatek,mtk-xhci";
251 reg-names = "mac";
253 power-domains = <&scpsys MT8173_POWER_DOMAIN_USB>;
255 clock-names = "sys_ck", "ref_ck";
256 vusb33-supply = <&mt6397_vusb_reg>;
260 # Dual role switch by gpio-usb-b-connector
261 - |
262 #include <dt-bindings/gpio/gpio.h>
263 #include <dt-bindings/power/mt2712-power.h>
266 compatible = "mediatek,mt2712-mtu3", "mediatek,mtu3";
268 reg-names = "mac", "ippc";
271 power-domains = <&scpsys MT2712_POWER_DOMAIN_USB2>;
273 clock-names = "sys_ck";
275 usb-role-switch;
276 #address-cells = <1>;
277 #size-cells = <1>;
281 compatible = "mediatek,mt2712-xhci", "mediatek,mtk-xhci";
283 reg-names = "mac";
285 power-domains = <&scpsys MT2712_POWER_DOMAIN_USB>;
287 clock-names = "sys_ck", "ref_ck";
291 compatible = "gpio-usb-b-connector", "usb-b-connector";
293 id-gpios = <&pio 12 GPIO_ACTIVE_HIGH>;
294 vbus-supply = <&usb_p0_vbus>;
298 # Dual role switch with type-c
299 - |
301 compatible ="mediatek,mt8183-mtu3", "mediatek,mtu3";
303 reg-names = "mac", "ippc";
307 clock-names = "sys_ck";
308 mediatek,syscon-wakeup = <&pericfg 0x400 1>;
309 wakeup-source;
311 usb-role-switch;
312 role-switch-default-mode = "host";
313 #address-cells = <1>;
314 #size-cells = <1>;
318 compatible = "mediatek,mt8183-xhci", "mediatek,mtk-xhci";
320 reg-names = "mac";
323 clock-names = "sys_ck";
328 remote-endpoint = <&hs_ep>;