Benjamin Gaignard | f3ca745 | 2020-01-07 10:16:30 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | %YAML 1.2 |
| 3 | --- |
| 4 | $id: http://devicetree.org/schemas/usb/dwc2.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: DesignWare HS OTG USB 2.0 controller Bindings |
| 8 | |
| 9 | maintainers: |
| 10 | - Rob Herring <robh@kernel.org> |
| 11 | |
Fabrice Gasnier | bb88dbb | 2021-10-13 15:57:02 +0200 | [diff] [blame] | 12 | allOf: |
| 13 | - $ref: usb-drd.yaml# |
| 14 | |
Benjamin Gaignard | f3ca745 | 2020-01-07 10:16:30 +0100 | [diff] [blame] | 15 | properties: |
| 16 | compatible: |
| 17 | oneOf: |
| 18 | - const: brcm,bcm2835-usb |
| 19 | - const: hisilicon,hi6220-usb |
| 20 | - items: |
| 21 | - const: rockchip,rk3066-usb |
| 22 | - const: snps,dwc2 |
| 23 | - items: |
Johan Jonker | 95b18f2 | 2020-03-11 13:21:20 +0100 | [diff] [blame] | 24 | - enum: |
Rob Herring | f516fb7 | 2020-04-20 21:24:47 -0500 | [diff] [blame] | 25 | - rockchip,px30-usb |
| 26 | - rockchip,rk3036-usb |
| 27 | - rockchip,rk3188-usb |
| 28 | - rockchip,rk3228-usb |
| 29 | - rockchip,rk3288-usb |
Tobias Schramm | 56d4261 | 2021-05-14 17:00:42 +0200 | [diff] [blame] | 30 | - rockchip,rk3308-usb |
Rob Herring | f516fb7 | 2020-04-20 21:24:47 -0500 | [diff] [blame] | 31 | - rockchip,rk3328-usb |
| 32 | - rockchip,rk3368-usb |
| 33 | - rockchip,rv1108-usb |
Benjamin Gaignard | f3ca745 | 2020-01-07 10:16:30 +0100 | [diff] [blame] | 34 | - const: rockchip,rk3066-usb |
| 35 | - const: snps,dwc2 |
| 36 | - const: lantiq,arx100-usb |
| 37 | - const: lantiq,xrx200-usb |
| 38 | - items: |
Neil Armstrong | 28d5ee0 | 2020-03-31 10:37:29 +0200 | [diff] [blame] | 39 | - enum: |
Rob Herring | f516fb7 | 2020-04-20 21:24:47 -0500 | [diff] [blame] | 40 | - amlogic,meson8-usb |
| 41 | - amlogic,meson8b-usb |
| 42 | - amlogic,meson-gxbb-usb |
| 43 | - amlogic,meson-g12a-usb |
Benjamin Gaignard | f3ca745 | 2020-01-07 10:16:30 +0100 | [diff] [blame] | 44 | - const: snps,dwc2 |
| 45 | - const: amcc,dwc-otg |
Christian Lamparter | 704c70f | 2020-09-20 02:18:49 +0200 | [diff] [blame] | 46 | - const: apm,apm82181-dwc-otg |
Benjamin Gaignard | f3ca745 | 2020-01-07 10:16:30 +0100 | [diff] [blame] | 47 | - const: snps,dwc2 |
| 48 | - const: st,stm32f4x9-fsotg |
| 49 | - const: st,stm32f4x9-hsotg |
| 50 | - const: st,stm32f7-hsotg |
Amelie Delaunay | d498501 | 2020-01-24 09:41:30 +0100 | [diff] [blame] | 51 | - const: st,stm32mp15-fsotg |
Benjamin Gaignard | 1a21240 | 2020-05-13 16:59:35 +0200 | [diff] [blame] | 52 | - items: |
| 53 | - const: st,stm32mp15-hsotg |
| 54 | - const: snps,dwc2 |
Benjamin Gaignard | f3ca745 | 2020-01-07 10:16:30 +0100 | [diff] [blame] | 55 | - const: samsung,s3c6400-hsotg |
| 56 | |
| 57 | reg: |
| 58 | maxItems: 1 |
| 59 | |
| 60 | interrupts: |
| 61 | maxItems: 1 |
| 62 | |
| 63 | clocks: |
| 64 | maxItems: 1 |
| 65 | |
| 66 | clock-names: |
| 67 | items: |
| 68 | - const: otg |
| 69 | |
| 70 | resets: |
| 71 | items: |
Rob Herring | 9f60a65 | 2020-04-15 19:55:48 -0500 | [diff] [blame] | 72 | - description: common reset |
| 73 | - description: ecc reset |
Benjamin Gaignard | f3ca745 | 2020-01-07 10:16:30 +0100 | [diff] [blame] | 74 | minItems: 1 |
| 75 | |
| 76 | reset-names: |
| 77 | items: |
Rob Herring | 9f60a65 | 2020-04-15 19:55:48 -0500 | [diff] [blame] | 78 | - const: dwc2 |
| 79 | - const: dwc2-ecc |
Benjamin Gaignard | f3ca745 | 2020-01-07 10:16:30 +0100 | [diff] [blame] | 80 | minItems: 1 |
| 81 | |
| 82 | phys: |
| 83 | maxItems: 1 |
| 84 | |
| 85 | phy-names: |
| 86 | const: usb2-phy |
| 87 | |
Johan Jonker | 0b71400 | 2020-04-25 19:08:33 +0200 | [diff] [blame] | 88 | power-domains: |
| 89 | maxItems: 1 |
| 90 | |
Benjamin Gaignard | f3ca745 | 2020-01-07 10:16:30 +0100 | [diff] [blame] | 91 | vbus-supply: |
| 92 | description: reference to the VBUS regulator. Depending on the current mode |
| 93 | this is enabled (in "host" mode") or disabled (in "peripheral" mode). The |
| 94 | regulator is updated if the controller is configured in "otg" mode and the |
| 95 | status changes between "host" and "peripheral". |
| 96 | |
| 97 | vusb_d-supply: |
| 98 | description: phandle to voltage regulator of digital section, |
| 99 | |
| 100 | vusb_a-supply: |
| 101 | description: phandle to voltage regulator of analog section. |
| 102 | |
Benjamin Gaignard | 1a21240 | 2020-05-13 16:59:35 +0200 | [diff] [blame] | 103 | usb33d-supply: |
Amelie Delaunay | d498501 | 2020-01-24 09:41:30 +0100 | [diff] [blame] | 104 | description: reference to the VBUS and ID sensing comparators supply, in |
| 105 | order to perform OTG operation, used on STM32MP15 SoCs. |
| 106 | |
Fabrice Gasnier | bb88dbb | 2021-10-13 15:57:02 +0200 | [diff] [blame] | 107 | dr_mode: true |
Benjamin Gaignard | f3ca745 | 2020-01-07 10:16:30 +0100 | [diff] [blame] | 108 | |
Fabrice Gasnier | 924e2b4 | 2021-10-13 15:57:03 +0200 | [diff] [blame] | 109 | otg-rev: true |
| 110 | |
| 111 | hnp-disable: true |
| 112 | |
| 113 | srp-disable: true |
| 114 | |
Fabrice Gasnier | bb88dbb | 2021-10-13 15:57:02 +0200 | [diff] [blame] | 115 | usb-role-switch: true |
Amelie Delaunay | 14793fa | 2020-09-09 11:35:09 +0200 | [diff] [blame] | 116 | |
Benjamin Gaignard | f3ca745 | 2020-01-07 10:16:30 +0100 | [diff] [blame] | 117 | g-rx-fifo-size: |
| 118 | $ref: /schemas/types.yaml#/definitions/uint32 |
| 119 | description: size of rx fifo size in gadget mode. |
| 120 | |
| 121 | g-np-tx-fifo-size: |
| 122 | $ref: /schemas/types.yaml#/definitions/uint32 |
| 123 | description: size of non-periodic tx fifo size in gadget mode. |
| 124 | |
| 125 | g-tx-fifo-size: |
| 126 | $ref: /schemas/types.yaml#/definitions/uint32-array |
| 127 | description: size of periodic tx fifo per endpoint (except ep0) in gadget mode. |
| 128 | |
| 129 | snps,need-phy-for-wake: |
| 130 | $ref: /schemas/types.yaml#/definitions/flag |
Rob Herring | f516fb7 | 2020-04-20 21:24:47 -0500 | [diff] [blame] | 131 | description: If present indicates that the phy needs to be left on for |
| 132 | remote wakeup during suspend. |
Benjamin Gaignard | f3ca745 | 2020-01-07 10:16:30 +0100 | [diff] [blame] | 133 | |
| 134 | snps,reset-phy-on-wake: |
| 135 | $ref: /schemas/types.yaml#/definitions/flag |
Rob Herring | f516fb7 | 2020-04-20 21:24:47 -0500 | [diff] [blame] | 136 | description: If present indicates that we need to reset the PHY when we |
| 137 | detect a wakeup. This is due to a hardware errata. |
Benjamin Gaignard | f3ca745 | 2020-01-07 10:16:30 +0100 | [diff] [blame] | 138 | |
| 139 | required: |
| 140 | - compatible |
| 141 | - reg |
| 142 | - interrupts |
| 143 | - clocks |
| 144 | - clock-names |
| 145 | |
| 146 | additionalProperties: false |
| 147 | |
| 148 | examples: |
| 149 | - | |
| 150 | usb@101c0000 { |
| 151 | compatible = "rockchip,rk3066-usb", "snps,dwc2"; |
| 152 | reg = <0x10180000 0x40000>; |
| 153 | interrupts = <18>; |
| 154 | clocks = <&usb_otg_ahb_clk>; |
| 155 | clock-names = "otg"; |
| 156 | phys = <&usbphy>; |
| 157 | phy-names = "usb2-phy"; |
| 158 | }; |
| 159 | |
| 160 | ... |