18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0 28c2ecf20Sopenharmony_ci%YAML 1.2 38c2ecf20Sopenharmony_ci--- 48c2ecf20Sopenharmony_ci$id: http://devicetree.org/schemas/usb/dwc2.yaml# 58c2ecf20Sopenharmony_ci$schema: http://devicetree.org/meta-schemas/core.yaml# 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_cititle: DesignWare HS OTG USB 2.0 controller Bindings 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_cimaintainers: 108c2ecf20Sopenharmony_ci - Rob Herring <robh@kernel.org> 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ciproperties: 138c2ecf20Sopenharmony_ci compatible: 148c2ecf20Sopenharmony_ci oneOf: 158c2ecf20Sopenharmony_ci - const: brcm,bcm2835-usb 168c2ecf20Sopenharmony_ci - const: hisilicon,hi6220-usb 178c2ecf20Sopenharmony_ci - items: 188c2ecf20Sopenharmony_ci - const: rockchip,rk3066-usb 198c2ecf20Sopenharmony_ci - const: snps,dwc2 208c2ecf20Sopenharmony_ci - items: 218c2ecf20Sopenharmony_ci - enum: 228c2ecf20Sopenharmony_ci - rockchip,px30-usb 238c2ecf20Sopenharmony_ci - rockchip,rk3036-usb 248c2ecf20Sopenharmony_ci - rockchip,rk3188-usb 258c2ecf20Sopenharmony_ci - rockchip,rk3228-usb 268c2ecf20Sopenharmony_ci - rockchip,rk3288-usb 278c2ecf20Sopenharmony_ci - rockchip,rk3328-usb 288c2ecf20Sopenharmony_ci - rockchip,rk3368-usb 298c2ecf20Sopenharmony_ci - rockchip,rv1108-usb 308c2ecf20Sopenharmony_ci - const: rockchip,rk3066-usb 318c2ecf20Sopenharmony_ci - const: snps,dwc2 328c2ecf20Sopenharmony_ci - const: lantiq,arx100-usb 338c2ecf20Sopenharmony_ci - const: lantiq,xrx200-usb 348c2ecf20Sopenharmony_ci - items: 358c2ecf20Sopenharmony_ci - enum: 368c2ecf20Sopenharmony_ci - amlogic,meson8-usb 378c2ecf20Sopenharmony_ci - amlogic,meson8b-usb 388c2ecf20Sopenharmony_ci - amlogic,meson-gxbb-usb 398c2ecf20Sopenharmony_ci - amlogic,meson-g12a-usb 408c2ecf20Sopenharmony_ci - const: snps,dwc2 418c2ecf20Sopenharmony_ci - const: amcc,dwc-otg 428c2ecf20Sopenharmony_ci - const: apm,apm82181-dwc-otg 438c2ecf20Sopenharmony_ci - const: snps,dwc2 448c2ecf20Sopenharmony_ci - const: st,stm32f4x9-fsotg 458c2ecf20Sopenharmony_ci - const: st,stm32f4x9-hsotg 468c2ecf20Sopenharmony_ci - const: st,stm32f7-hsotg 478c2ecf20Sopenharmony_ci - const: st,stm32mp15-fsotg 488c2ecf20Sopenharmony_ci - items: 498c2ecf20Sopenharmony_ci - const: st,stm32mp15-hsotg 508c2ecf20Sopenharmony_ci - const: snps,dwc2 518c2ecf20Sopenharmony_ci - const: samsung,s3c6400-hsotg 528c2ecf20Sopenharmony_ci 538c2ecf20Sopenharmony_ci reg: 548c2ecf20Sopenharmony_ci maxItems: 1 558c2ecf20Sopenharmony_ci 568c2ecf20Sopenharmony_ci interrupts: 578c2ecf20Sopenharmony_ci maxItems: 1 588c2ecf20Sopenharmony_ci 598c2ecf20Sopenharmony_ci clocks: 608c2ecf20Sopenharmony_ci maxItems: 1 618c2ecf20Sopenharmony_ci 628c2ecf20Sopenharmony_ci clock-names: 638c2ecf20Sopenharmony_ci items: 648c2ecf20Sopenharmony_ci - const: otg 658c2ecf20Sopenharmony_ci 668c2ecf20Sopenharmony_ci resets: 678c2ecf20Sopenharmony_ci items: 688c2ecf20Sopenharmony_ci - description: common reset 698c2ecf20Sopenharmony_ci - description: ecc reset 708c2ecf20Sopenharmony_ci minItems: 1 718c2ecf20Sopenharmony_ci 728c2ecf20Sopenharmony_ci reset-names: 738c2ecf20Sopenharmony_ci items: 748c2ecf20Sopenharmony_ci - const: dwc2 758c2ecf20Sopenharmony_ci - const: dwc2-ecc 768c2ecf20Sopenharmony_ci minItems: 1 778c2ecf20Sopenharmony_ci 788c2ecf20Sopenharmony_ci phys: 798c2ecf20Sopenharmony_ci maxItems: 1 808c2ecf20Sopenharmony_ci 818c2ecf20Sopenharmony_ci phy-names: 828c2ecf20Sopenharmony_ci const: usb2-phy 838c2ecf20Sopenharmony_ci 848c2ecf20Sopenharmony_ci power-domains: 858c2ecf20Sopenharmony_ci maxItems: 1 868c2ecf20Sopenharmony_ci 878c2ecf20Sopenharmony_ci vbus-supply: 888c2ecf20Sopenharmony_ci description: reference to the VBUS regulator. Depending on the current mode 898c2ecf20Sopenharmony_ci this is enabled (in "host" mode") or disabled (in "peripheral" mode). The 908c2ecf20Sopenharmony_ci regulator is updated if the controller is configured in "otg" mode and the 918c2ecf20Sopenharmony_ci status changes between "host" and "peripheral". 928c2ecf20Sopenharmony_ci 938c2ecf20Sopenharmony_ci vusb_d-supply: 948c2ecf20Sopenharmony_ci description: phandle to voltage regulator of digital section, 958c2ecf20Sopenharmony_ci 968c2ecf20Sopenharmony_ci vusb_a-supply: 978c2ecf20Sopenharmony_ci description: phandle to voltage regulator of analog section. 988c2ecf20Sopenharmony_ci 998c2ecf20Sopenharmony_ci usb33d-supply: 1008c2ecf20Sopenharmony_ci description: reference to the VBUS and ID sensing comparators supply, in 1018c2ecf20Sopenharmony_ci order to perform OTG operation, used on STM32MP15 SoCs. 1028c2ecf20Sopenharmony_ci 1038c2ecf20Sopenharmony_ci dr_mode: 1048c2ecf20Sopenharmony_ci enum: [host, peripheral, otg] 1058c2ecf20Sopenharmony_ci 1068c2ecf20Sopenharmony_ci usb-role-switch: 1078c2ecf20Sopenharmony_ci $ref: /schemas/types.yaml#/definitions/flag 1088c2ecf20Sopenharmony_ci description: Support role switch. 1098c2ecf20Sopenharmony_ci 1108c2ecf20Sopenharmony_ci g-rx-fifo-size: 1118c2ecf20Sopenharmony_ci $ref: /schemas/types.yaml#/definitions/uint32 1128c2ecf20Sopenharmony_ci description: size of rx fifo size in gadget mode. 1138c2ecf20Sopenharmony_ci 1148c2ecf20Sopenharmony_ci g-np-tx-fifo-size: 1158c2ecf20Sopenharmony_ci $ref: /schemas/types.yaml#/definitions/uint32 1168c2ecf20Sopenharmony_ci description: size of non-periodic tx fifo size in gadget mode. 1178c2ecf20Sopenharmony_ci 1188c2ecf20Sopenharmony_ci g-tx-fifo-size: 1198c2ecf20Sopenharmony_ci $ref: /schemas/types.yaml#/definitions/uint32-array 1208c2ecf20Sopenharmony_ci description: size of periodic tx fifo per endpoint (except ep0) in gadget mode. 1218c2ecf20Sopenharmony_ci 1228c2ecf20Sopenharmony_ci snps,need-phy-for-wake: 1238c2ecf20Sopenharmony_ci $ref: /schemas/types.yaml#/definitions/flag 1248c2ecf20Sopenharmony_ci description: If present indicates that the phy needs to be left on for 1258c2ecf20Sopenharmony_ci remote wakeup during suspend. 1268c2ecf20Sopenharmony_ci 1278c2ecf20Sopenharmony_ci snps,reset-phy-on-wake: 1288c2ecf20Sopenharmony_ci $ref: /schemas/types.yaml#/definitions/flag 1298c2ecf20Sopenharmony_ci description: If present indicates that we need to reset the PHY when we 1308c2ecf20Sopenharmony_ci detect a wakeup. This is due to a hardware errata. 1318c2ecf20Sopenharmony_ci 1328c2ecf20Sopenharmony_cirequired: 1338c2ecf20Sopenharmony_ci - compatible 1348c2ecf20Sopenharmony_ci - reg 1358c2ecf20Sopenharmony_ci - interrupts 1368c2ecf20Sopenharmony_ci - clocks 1378c2ecf20Sopenharmony_ci - clock-names 1388c2ecf20Sopenharmony_ci 1398c2ecf20Sopenharmony_ciadditionalProperties: false 1408c2ecf20Sopenharmony_ci 1418c2ecf20Sopenharmony_ciexamples: 1428c2ecf20Sopenharmony_ci - | 1438c2ecf20Sopenharmony_ci usb@101c0000 { 1448c2ecf20Sopenharmony_ci compatible = "rockchip,rk3066-usb", "snps,dwc2"; 1458c2ecf20Sopenharmony_ci reg = <0x10180000 0x40000>; 1468c2ecf20Sopenharmony_ci interrupts = <18>; 1478c2ecf20Sopenharmony_ci clocks = <&usb_otg_ahb_clk>; 1488c2ecf20Sopenharmony_ci clock-names = "otg"; 1498c2ecf20Sopenharmony_ci phys = <&usbphy>; 1508c2ecf20Sopenharmony_ci phy-names = "usb2-phy"; 1518c2ecf20Sopenharmony_ci }; 1528c2ecf20Sopenharmony_ci 1538c2ecf20Sopenharmony_ci... 154