1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-C 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/usb/qcom,dw 4 $id: http://devicetree.org/schemas/usb/qcom,dwc3.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: Qualcomm SuperSpeed DWC3 USB SoC contro 7 title: Qualcomm SuperSpeed DWC3 USB SoC controller 8 8 9 maintainers: 9 maintainers: 10 - Wesley Cheng <quic_wcheng@quicinc.com> 10 - Wesley Cheng <quic_wcheng@quicinc.com> 11 11 12 properties: 12 properties: 13 compatible: 13 compatible: 14 items: 14 items: 15 - enum: 15 - enum: 16 - qcom,ipq4019-dwc3 16 - qcom,ipq4019-dwc3 17 - qcom,ipq5018-dwc3 17 - qcom,ipq5018-dwc3 18 - qcom,ipq5332-dwc3 18 - qcom,ipq5332-dwc3 19 - qcom,ipq6018-dwc3 19 - qcom,ipq6018-dwc3 20 - qcom,ipq8064-dwc3 20 - qcom,ipq8064-dwc3 21 - qcom,ipq8074-dwc3 21 - qcom,ipq8074-dwc3 22 - qcom,ipq9574-dwc3 22 - qcom,ipq9574-dwc3 23 - qcom,msm8953-dwc3 23 - qcom,msm8953-dwc3 24 - qcom,msm8994-dwc3 24 - qcom,msm8994-dwc3 25 - qcom,msm8996-dwc3 25 - qcom,msm8996-dwc3 26 - qcom,msm8998-dwc3 26 - qcom,msm8998-dwc3 27 - qcom,qcm2290-dwc3 27 - qcom,qcm2290-dwc3 28 - qcom,qcs404-dwc3 28 - qcom,qcs404-dwc3 29 - qcom,qdu1000-dwc3 29 - qcom,qdu1000-dwc3 30 - qcom,sa8775p-dwc3 30 - qcom,sa8775p-dwc3 31 - qcom,sc7180-dwc3 31 - qcom,sc7180-dwc3 32 - qcom,sc7280-dwc3 32 - qcom,sc7280-dwc3 33 - qcom,sc8180x-dwc3 << 34 - qcom,sc8180x-dwc3-mp << 35 - qcom,sc8280xp-dwc3 33 - qcom,sc8280xp-dwc3 36 - qcom,sc8280xp-dwc3-mp 34 - qcom,sc8280xp-dwc3-mp 37 - qcom,sdm660-dwc3 35 - qcom,sdm660-dwc3 38 - qcom,sdm670-dwc3 36 - qcom,sdm670-dwc3 39 - qcom,sdm845-dwc3 37 - qcom,sdm845-dwc3 40 - qcom,sdx55-dwc3 38 - qcom,sdx55-dwc3 41 - qcom,sdx65-dwc3 39 - qcom,sdx65-dwc3 42 - qcom,sdx75-dwc3 40 - qcom,sdx75-dwc3 43 - qcom,sm4250-dwc3 41 - qcom,sm4250-dwc3 44 - qcom,sm6115-dwc3 42 - qcom,sm6115-dwc3 45 - qcom,sm6125-dwc3 43 - qcom,sm6125-dwc3 46 - qcom,sm6350-dwc3 44 - qcom,sm6350-dwc3 47 - qcom,sm6375-dwc3 45 - qcom,sm6375-dwc3 48 - qcom,sm8150-dwc3 46 - qcom,sm8150-dwc3 49 - qcom,sm8250-dwc3 47 - qcom,sm8250-dwc3 50 - qcom,sm8350-dwc3 48 - qcom,sm8350-dwc3 51 - qcom,sm8450-dwc3 49 - qcom,sm8450-dwc3 52 - qcom,sm8550-dwc3 50 - qcom,sm8550-dwc3 53 - qcom,sm8650-dwc3 51 - qcom,sm8650-dwc3 54 - qcom,x1e80100-dwc3 52 - qcom,x1e80100-dwc3 55 - qcom,x1e80100-dwc3-mp << 56 - const: qcom,dwc3 53 - const: qcom,dwc3 57 54 58 reg: 55 reg: 59 description: Offset and length of register 56 description: Offset and length of register set for QSCRATCH wrapper 60 maxItems: 1 57 maxItems: 1 61 58 62 "#address-cells": 59 "#address-cells": 63 enum: [ 1, 2 ] 60 enum: [ 1, 2 ] 64 61 65 "#size-cells": 62 "#size-cells": 66 enum: [ 1, 2 ] 63 enum: [ 1, 2 ] 67 64 68 ranges: true 65 ranges: true 69 66 70 power-domains: 67 power-domains: 71 description: specifies a phandle to PM dom 68 description: specifies a phandle to PM domain provider node 72 maxItems: 1 69 maxItems: 1 73 70 74 required-opps: 71 required-opps: 75 maxItems: 1 72 maxItems: 1 76 73 77 clocks: 74 clocks: 78 description: | 75 description: | 79 Several clocks are used, depending on th 76 Several clocks are used, depending on the variant. Typical ones are:: 80 - cfg_noc:: System Config NOC clock. 77 - cfg_noc:: System Config NOC clock. 81 - core:: Master/Core clock, has to be > 78 - core:: Master/Core clock, has to be >= 125 MHz for SS operation and >= 82 60MHz for HS operation. 79 60MHz for HS operation. 83 - iface:: System bus AXI clock. 80 - iface:: System bus AXI clock. 84 - sleep:: Sleep clock, used for wakeup 81 - sleep:: Sleep clock, used for wakeup when USB3 core goes into low 85 power mode (U3). 82 power mode (U3). 86 - mock_utmi:: Mock utmi clock needed fo 83 - mock_utmi:: Mock utmi clock needed for ITP/SOF generation in host 87 mode. Its frequency shoul 84 mode. Its frequency should be 19.2MHz. 88 minItems: 1 85 minItems: 1 89 maxItems: 9 86 maxItems: 9 90 87 91 clock-names: 88 clock-names: 92 minItems: 1 89 minItems: 1 93 maxItems: 9 90 maxItems: 9 94 91 95 resets: 92 resets: 96 maxItems: 1 93 maxItems: 1 97 94 98 interconnects: 95 interconnects: 99 maxItems: 2 96 maxItems: 2 100 97 101 interconnect-names: 98 interconnect-names: 102 items: 99 items: 103 - const: usb-ddr 100 - const: usb-ddr 104 - const: apps-usb 101 - const: apps-usb 105 102 106 interrupts: 103 interrupts: 107 description: | 104 description: | 108 Different types of interrupts are used b 105 Different types of interrupts are used based on HS PHY used on target: 109 - pwr_event: Used for wakeup based on 106 - pwr_event: Used for wakeup based on other power events. 110 - hs_phy_irq: Apart from DP/DM/QUSB2 P 107 - hs_phy_irq: Apart from DP/DM/QUSB2 PHY interrupts, there is 111 hs_phy_irq which is not 108 hs_phy_irq which is not triggered by default and its 112 functionality is mutual 109 functionality is mutually exclusive to that of 113 {dp/dm}_hs_phy_irq and 110 {dp/dm}_hs_phy_irq and qusb2_phy_irq. 114 - qusb2_phy: SoCs with QUSB2 PHY do no 111 - qusb2_phy: SoCs with QUSB2 PHY do not have separate DP/DM IRQs and 115 expose only a single IRQ 112 expose only a single IRQ whose behavior can be modified 116 by the QUSB2PHY_INTR_CTR 113 by the QUSB2PHY_INTR_CTRL register. The required DPSE/ 117 DMSE configuration is do 114 DMSE configuration is done in QUSB2PHY_INTR_CTRL register 118 of PHY address space. 115 of PHY address space. 119 - {dp/dm}_hs_phy_irq: These IRQ's dire 116 - {dp/dm}_hs_phy_irq: These IRQ's directly reflect changes on the DP/ 120 DM pads of the 117 DM pads of the SoC. These are used for wakeup 121 only on SoCs wi 118 only on SoCs with non-QUSB2 targets with 122 exception of SD 119 exception of SDM670/SDM845/SM6350. 123 - ss_phy_irq: Used for remote wakeup i 120 - ss_phy_irq: Used for remote wakeup in Super Speed mode of operation. 124 minItems: 2 121 minItems: 2 125 maxItems: 18 122 maxItems: 18 126 123 127 interrupt-names: 124 interrupt-names: 128 minItems: 2 125 minItems: 2 129 maxItems: 18 126 maxItems: 18 130 127 131 qcom,select-utmi-as-pipe-clk: 128 qcom,select-utmi-as-pipe-clk: 132 description: 129 description: 133 If present, disable USB3 pipe_clk requir 130 If present, disable USB3 pipe_clk requirement. 134 Used when dwc3 operates without SSPHY an 131 Used when dwc3 operates without SSPHY and only 135 HS/FS/LS modes are supported. 132 HS/FS/LS modes are supported. 136 type: boolean 133 type: boolean 137 134 138 wakeup-source: true 135 wakeup-source: true 139 136 140 # Required child node: 137 # Required child node: 141 138 142 patternProperties: 139 patternProperties: 143 "^usb@[0-9a-f]+$": 140 "^usb@[0-9a-f]+$": 144 $ref: snps,dwc3.yaml# 141 $ref: snps,dwc3.yaml# 145 unevaluatedProperties: false 142 unevaluatedProperties: false 146 143 147 properties: 144 properties: 148 wakeup-source: false 145 wakeup-source: false 149 146 150 required: 147 required: 151 - compatible 148 - compatible 152 - reg 149 - reg 153 - "#address-cells" 150 - "#address-cells" 154 - "#size-cells" 151 - "#size-cells" 155 - ranges 152 - ranges 156 - clocks 153 - clocks 157 - clock-names 154 - clock-names 158 - interrupts 155 - interrupts 159 - interrupt-names 156 - interrupt-names 160 157 161 allOf: 158 allOf: 162 - if: 159 - if: 163 properties: 160 properties: 164 compatible: 161 compatible: 165 contains: 162 contains: 166 enum: 163 enum: 167 - qcom,ipq4019-dwc3 164 - qcom,ipq4019-dwc3 168 - qcom,ipq5332-dwc3 << 169 then: 165 then: 170 properties: 166 properties: 171 clocks: 167 clocks: 172 maxItems: 3 168 maxItems: 3 173 clock-names: 169 clock-names: 174 items: 170 items: 175 - const: core 171 - const: core 176 - const: sleep 172 - const: sleep 177 - const: mock_utmi 173 - const: mock_utmi 178 174 179 - if: 175 - if: 180 properties: 176 properties: 181 compatible: 177 compatible: 182 contains: 178 contains: 183 enum: 179 enum: 184 - qcom,ipq8064-dwc3 180 - qcom,ipq8064-dwc3 185 then: 181 then: 186 properties: 182 properties: 187 clocks: 183 clocks: 188 items: 184 items: 189 - description: Master/Core clock, 185 - description: Master/Core clock, has to be >= 125 MHz 190 for SS operation and >= 60MHz 186 for SS operation and >= 60MHz for HS operation. 191 clock-names: 187 clock-names: 192 items: 188 items: 193 - const: core 189 - const: core 194 190 195 - if: 191 - if: 196 properties: 192 properties: 197 compatible: 193 compatible: 198 contains: 194 contains: 199 enum: 195 enum: 200 - qcom,ipq9574-dwc3 196 - qcom,ipq9574-dwc3 201 - qcom,msm8953-dwc3 197 - qcom,msm8953-dwc3 202 - qcom,msm8996-dwc3 198 - qcom,msm8996-dwc3 203 - qcom,msm8998-dwc3 199 - qcom,msm8998-dwc3 204 - qcom,sa8775p-dwc3 200 - qcom,sa8775p-dwc3 205 - qcom,sc7180-dwc3 201 - qcom,sc7180-dwc3 206 - qcom,sc7280-dwc3 202 - qcom,sc7280-dwc3 207 - qcom,sdm670-dwc3 203 - qcom,sdm670-dwc3 208 - qcom,sdm845-dwc3 204 - qcom,sdm845-dwc3 209 - qcom,sdx55-dwc3 205 - qcom,sdx55-dwc3 210 - qcom,sdx65-dwc3 206 - qcom,sdx65-dwc3 211 - qcom,sdx75-dwc3 207 - qcom,sdx75-dwc3 212 - qcom,sm6350-dwc3 208 - qcom,sm6350-dwc3 213 then: 209 then: 214 properties: 210 properties: 215 clocks: 211 clocks: 216 maxItems: 5 212 maxItems: 5 217 clock-names: 213 clock-names: 218 items: 214 items: 219 - const: cfg_noc 215 - const: cfg_noc 220 - const: core 216 - const: core 221 - const: iface 217 - const: iface 222 - const: sleep 218 - const: sleep 223 - const: mock_utmi 219 - const: mock_utmi 224 220 225 - if: 221 - if: 226 properties: 222 properties: 227 compatible: 223 compatible: 228 contains: 224 contains: 229 enum: 225 enum: 230 - qcom,ipq6018-dwc3 226 - qcom,ipq6018-dwc3 231 then: 227 then: 232 properties: 228 properties: 233 clocks: 229 clocks: 234 minItems: 3 230 minItems: 3 235 maxItems: 4 231 maxItems: 4 236 clock-names: 232 clock-names: 237 oneOf: 233 oneOf: 238 - items: 234 - items: 239 - const: core 235 - const: core 240 - const: sleep 236 - const: sleep 241 - const: mock_utmi 237 - const: mock_utmi 242 - items: 238 - items: 243 - const: cfg_noc 239 - const: cfg_noc 244 - const: core 240 - const: core 245 - const: sleep 241 - const: sleep 246 - const: mock_utmi 242 - const: mock_utmi 247 243 248 - if: 244 - if: 249 properties: 245 properties: 250 compatible: 246 compatible: 251 contains: 247 contains: 252 enum: 248 enum: 253 - qcom,ipq8074-dwc3 249 - qcom,ipq8074-dwc3 254 - qcom,qdu1000-dwc3 250 - qcom,qdu1000-dwc3 255 then: 251 then: 256 properties: 252 properties: 257 clocks: 253 clocks: 258 maxItems: 4 254 maxItems: 4 259 clock-names: 255 clock-names: 260 items: 256 items: 261 - const: cfg_noc 257 - const: cfg_noc 262 - const: core 258 - const: core 263 - const: sleep 259 - const: sleep 264 - const: mock_utmi 260 - const: mock_utmi 265 261 266 - if: 262 - if: 267 properties: 263 properties: 268 compatible: 264 compatible: 269 contains: 265 contains: 270 enum: 266 enum: 271 - qcom,ipq5018-dwc3 267 - qcom,ipq5018-dwc3 >> 268 - qcom,ipq5332-dwc3 272 - qcom,msm8994-dwc3 269 - qcom,msm8994-dwc3 273 - qcom,qcs404-dwc3 270 - qcom,qcs404-dwc3 274 then: 271 then: 275 properties: 272 properties: 276 clocks: 273 clocks: 277 maxItems: 4 274 maxItems: 4 278 clock-names: 275 clock-names: 279 items: 276 items: 280 - const: core 277 - const: core 281 - const: iface 278 - const: iface 282 - const: sleep 279 - const: sleep 283 - const: mock_utmi 280 - const: mock_utmi 284 281 285 - if: 282 - if: 286 properties: 283 properties: 287 compatible: 284 compatible: 288 contains: 285 contains: 289 enum: 286 enum: 290 - qcom,sc8280xp-dwc3 287 - qcom,sc8280xp-dwc3 291 - qcom,sc8280xp-dwc3-mp 288 - qcom,sc8280xp-dwc3-mp 292 - qcom,x1e80100-dwc3 289 - qcom,x1e80100-dwc3 293 - qcom,x1e80100-dwc3-mp << 294 then: 290 then: 295 properties: 291 properties: 296 clocks: 292 clocks: 297 maxItems: 9 293 maxItems: 9 298 clock-names: 294 clock-names: 299 items: 295 items: 300 - const: cfg_noc 296 - const: cfg_noc 301 - const: core 297 - const: core 302 - const: iface 298 - const: iface 303 - const: sleep 299 - const: sleep 304 - const: mock_utmi 300 - const: mock_utmi 305 - const: noc_aggr 301 - const: noc_aggr 306 - const: noc_aggr_north 302 - const: noc_aggr_north 307 - const: noc_aggr_south 303 - const: noc_aggr_south 308 - const: noc_sys 304 - const: noc_sys 309 305 310 - if: 306 - if: 311 properties: 307 properties: 312 compatible: 308 compatible: 313 contains: 309 contains: 314 enum: 310 enum: 315 - qcom,sdm660-dwc3 311 - qcom,sdm660-dwc3 316 then: 312 then: 317 properties: 313 properties: 318 clocks: 314 clocks: 319 minItems: 4 315 minItems: 4 320 maxItems: 5 316 maxItems: 5 321 clock-names: 317 clock-names: 322 oneOf: 318 oneOf: 323 - items: 319 - items: 324 - const: cfg_noc 320 - const: cfg_noc 325 - const: core 321 - const: core 326 - const: iface 322 - const: iface 327 - const: sleep 323 - const: sleep 328 - const: mock_utmi 324 - const: mock_utmi 329 - items: 325 - items: 330 - const: cfg_noc 326 - const: cfg_noc 331 - const: core 327 - const: core 332 - const: sleep 328 - const: sleep 333 - const: mock_utmi 329 - const: mock_utmi 334 330 335 - if: 331 - if: 336 properties: 332 properties: 337 compatible: 333 compatible: 338 contains: 334 contains: 339 enum: 335 enum: 340 - qcom,qcm2290-dwc3 336 - qcom,qcm2290-dwc3 341 - qcom,sc8180x-dwc3 << 342 - qcom,sc8180x-dwc3-mp << 343 - qcom,sm6115-dwc3 337 - qcom,sm6115-dwc3 344 - qcom,sm6125-dwc3 338 - qcom,sm6125-dwc3 345 - qcom,sm8150-dwc3 339 - qcom,sm8150-dwc3 346 - qcom,sm8250-dwc3 340 - qcom,sm8250-dwc3 347 - qcom,sm8450-dwc3 341 - qcom,sm8450-dwc3 348 - qcom,sm8550-dwc3 342 - qcom,sm8550-dwc3 349 - qcom,sm8650-dwc3 343 - qcom,sm8650-dwc3 350 then: 344 then: 351 properties: 345 properties: 352 clocks: 346 clocks: 353 minItems: 6 347 minItems: 6 354 clock-names: 348 clock-names: 355 items: 349 items: 356 - const: cfg_noc 350 - const: cfg_noc 357 - const: core 351 - const: core 358 - const: iface 352 - const: iface 359 - const: sleep 353 - const: sleep 360 - const: mock_utmi 354 - const: mock_utmi 361 - const: xo 355 - const: xo 362 356 363 - if: 357 - if: 364 properties: 358 properties: 365 compatible: 359 compatible: 366 contains: 360 contains: 367 enum: 361 enum: 368 - qcom,sm8350-dwc3 362 - qcom,sm8350-dwc3 369 then: 363 then: 370 properties: 364 properties: 371 clocks: 365 clocks: 372 minItems: 5 366 minItems: 5 373 maxItems: 6 367 maxItems: 6 374 clock-names: 368 clock-names: 375 minItems: 5 369 minItems: 5 376 items: 370 items: 377 - const: cfg_noc 371 - const: cfg_noc 378 - const: core 372 - const: core 379 - const: iface 373 - const: iface 380 - const: sleep 374 - const: sleep 381 - const: mock_utmi 375 - const: mock_utmi 382 - const: xo 376 - const: xo 383 377 384 - if: 378 - if: 385 properties: 379 properties: 386 compatible: 380 compatible: 387 contains: 381 contains: 388 enum: 382 enum: 389 - qcom,ipq5018-dwc3 383 - qcom,ipq5018-dwc3 390 - qcom,ipq6018-dwc3 384 - qcom,ipq6018-dwc3 391 - qcom,ipq8074-dwc3 385 - qcom,ipq8074-dwc3 392 - qcom,msm8953-dwc3 386 - qcom,msm8953-dwc3 393 - qcom,msm8998-dwc3 387 - qcom,msm8998-dwc3 394 then: 388 then: 395 properties: 389 properties: 396 interrupts: 390 interrupts: 397 minItems: 2 391 minItems: 2 398 maxItems: 3 392 maxItems: 3 399 interrupt-names: 393 interrupt-names: 400 items: 394 items: 401 - const: pwr_event 395 - const: pwr_event 402 - const: qusb2_phy 396 - const: qusb2_phy 403 - const: ss_phy_irq 397 - const: ss_phy_irq 404 398 405 - if: 399 - if: 406 properties: 400 properties: 407 compatible: 401 compatible: 408 contains: 402 contains: 409 enum: 403 enum: 410 - qcom,msm8996-dwc3 404 - qcom,msm8996-dwc3 411 - qcom,qcs404-dwc3 405 - qcom,qcs404-dwc3 412 - qcom,sdm660-dwc3 406 - qcom,sdm660-dwc3 413 - qcom,sm6115-dwc3 407 - qcom,sm6115-dwc3 414 - qcom,sm6125-dwc3 408 - qcom,sm6125-dwc3 415 then: 409 then: 416 properties: 410 properties: 417 interrupts: 411 interrupts: 418 minItems: 3 412 minItems: 3 419 maxItems: 4 413 maxItems: 4 420 interrupt-names: 414 interrupt-names: 421 items: 415 items: 422 - const: pwr_event 416 - const: pwr_event 423 - const: qusb2_phy 417 - const: qusb2_phy 424 - const: hs_phy_irq 418 - const: hs_phy_irq 425 - const: ss_phy_irq 419 - const: ss_phy_irq 426 420 427 - if: 421 - if: 428 properties: 422 properties: 429 compatible: 423 compatible: 430 contains: 424 contains: 431 enum: 425 enum: 432 - qcom,ipq5332-dwc3 426 - qcom,ipq5332-dwc3 433 then: << 434 properties: << 435 interrupts: << 436 maxItems: 3 << 437 interrupt-names: << 438 items: << 439 - const: pwr_event << 440 - const: dp_hs_phy_irq << 441 - const: dm_hs_phy_irq << 442 << 443 - if: << 444 properties: << 445 compatible: << 446 contains: << 447 enum: << 448 - qcom,x1e80100-dwc3 427 - qcom,x1e80100-dwc3 449 then: 428 then: 450 properties: 429 properties: 451 interrupts: 430 interrupts: 452 maxItems: 4 431 maxItems: 4 453 interrupt-names: 432 interrupt-names: 454 items: 433 items: 455 - const: pwr_event 434 - const: pwr_event 456 - const: dp_hs_phy_irq 435 - const: dp_hs_phy_irq 457 - const: dm_hs_phy_irq 436 - const: dm_hs_phy_irq 458 - const: ss_phy_irq 437 - const: ss_phy_irq 459 438 460 - if: 439 - if: 461 properties: 440 properties: 462 compatible: 441 compatible: 463 contains: 442 contains: 464 enum: 443 enum: 465 - qcom,ipq4019-dwc3 444 - qcom,ipq4019-dwc3 466 - qcom,ipq8064-dwc3 445 - qcom,ipq8064-dwc3 467 - qcom,msm8994-dwc3 446 - qcom,msm8994-dwc3 468 - qcom,qdu1000-dwc3 447 - qcom,qdu1000-dwc3 469 - qcom,sa8775p-dwc3 448 - qcom,sa8775p-dwc3 470 - qcom,sc7180-dwc3 449 - qcom,sc7180-dwc3 471 - qcom,sc7280-dwc3 450 - qcom,sc7280-dwc3 472 - qcom,sc8180x-dwc3 << 473 - qcom,sc8280xp-dwc3 451 - qcom,sc8280xp-dwc3 474 - qcom,sdm670-dwc3 452 - qcom,sdm670-dwc3 475 - qcom,sdm845-dwc3 453 - qcom,sdm845-dwc3 476 - qcom,sdx55-dwc3 454 - qcom,sdx55-dwc3 477 - qcom,sdx65-dwc3 455 - qcom,sdx65-dwc3 478 - qcom,sdx75-dwc3 456 - qcom,sdx75-dwc3 479 - qcom,sm4250-dwc3 457 - qcom,sm4250-dwc3 480 - qcom,sm6350-dwc3 458 - qcom,sm6350-dwc3 481 - qcom,sm8150-dwc3 459 - qcom,sm8150-dwc3 482 - qcom,sm8250-dwc3 460 - qcom,sm8250-dwc3 483 - qcom,sm8350-dwc3 461 - qcom,sm8350-dwc3 484 - qcom,sm8450-dwc3 462 - qcom,sm8450-dwc3 485 - qcom,sm8550-dwc3 463 - qcom,sm8550-dwc3 486 - qcom,sm8650-dwc3 464 - qcom,sm8650-dwc3 487 then: 465 then: 488 properties: 466 properties: 489 interrupts: 467 interrupts: 490 minItems: 4 468 minItems: 4 491 maxItems: 5 469 maxItems: 5 492 interrupt-names: 470 interrupt-names: 493 items: 471 items: 494 - const: pwr_event 472 - const: pwr_event 495 - const: hs_phy_irq 473 - const: hs_phy_irq 496 - const: dp_hs_phy_irq 474 - const: dp_hs_phy_irq 497 - const: dm_hs_phy_irq 475 - const: dm_hs_phy_irq 498 - const: ss_phy_irq 476 - const: ss_phy_irq 499 << 500 - if: << 501 properties: << 502 compatible: << 503 contains: << 504 enum: << 505 - qcom,sc8180x-dwc3-mp << 506 - qcom,x1e80100-dwc3-mp << 507 then: << 508 properties: << 509 interrupts: << 510 minItems: 10 << 511 maxItems: 10 << 512 interrupt-names: << 513 items: << 514 - const: pwr_event_1 << 515 - const: pwr_event_2 << 516 - const: hs_phy_1 << 517 - const: hs_phy_2 << 518 - const: dp_hs_phy_1 << 519 - const: dm_hs_phy_1 << 520 - const: dp_hs_phy_2 << 521 - const: dm_hs_phy_2 << 522 - const: ss_phy_1 << 523 - const: ss_phy_2 << 524 477 525 - if: 478 - if: 526 properties: 479 properties: 527 compatible: 480 compatible: 528 contains: 481 contains: 529 enum: 482 enum: 530 - qcom,sc8280xp-dwc3-mp 483 - qcom,sc8280xp-dwc3-mp 531 then: 484 then: 532 properties: 485 properties: 533 interrupts: 486 interrupts: 534 minItems: 18 487 minItems: 18 535 maxItems: 18 488 maxItems: 18 536 interrupt-names: 489 interrupt-names: 537 items: 490 items: 538 - const: pwr_event_1 491 - const: pwr_event_1 539 - const: pwr_event_2 492 - const: pwr_event_2 540 - const: pwr_event_3 493 - const: pwr_event_3 541 - const: pwr_event_4 494 - const: pwr_event_4 542 - const: hs_phy_1 495 - const: hs_phy_1 543 - const: hs_phy_2 496 - const: hs_phy_2 544 - const: hs_phy_3 497 - const: hs_phy_3 545 - const: hs_phy_4 498 - const: hs_phy_4 546 - const: dp_hs_phy_1 499 - const: dp_hs_phy_1 547 - const: dm_hs_phy_1 500 - const: dm_hs_phy_1 548 - const: dp_hs_phy_2 501 - const: dp_hs_phy_2 549 - const: dm_hs_phy_2 502 - const: dm_hs_phy_2 550 - const: dp_hs_phy_3 503 - const: dp_hs_phy_3 551 - const: dm_hs_phy_3 504 - const: dm_hs_phy_3 552 - const: dp_hs_phy_4 505 - const: dp_hs_phy_4 553 - const: dm_hs_phy_4 506 - const: dm_hs_phy_4 554 - const: ss_phy_1 507 - const: ss_phy_1 555 - const: ss_phy_2 508 - const: ss_phy_2 556 509 557 additionalProperties: false 510 additionalProperties: false 558 511 559 examples: 512 examples: 560 - | 513 - | 561 #include <dt-bindings/clock/qcom,gcc-sdm84 514 #include <dt-bindings/clock/qcom,gcc-sdm845.h> 562 #include <dt-bindings/interrupt-controller 515 #include <dt-bindings/interrupt-controller/arm-gic.h> 563 #include <dt-bindings/interrupt-controller 516 #include <dt-bindings/interrupt-controller/irq.h> 564 soc { 517 soc { 565 #address-cells = <2>; 518 #address-cells = <2>; 566 #size-cells = <2>; 519 #size-cells = <2>; 567 520 568 usb@a6f8800 { 521 usb@a6f8800 { 569 compatible = "qcom,sdm845-dwc3", " 522 compatible = "qcom,sdm845-dwc3", "qcom,dwc3"; 570 reg = <0 0x0a6f8800 0 0x400>; 523 reg = <0 0x0a6f8800 0 0x400>; 571 524 572 #address-cells = <2>; 525 #address-cells = <2>; 573 #size-cells = <2>; 526 #size-cells = <2>; 574 ranges; 527 ranges; 575 clocks = <&gcc GCC_CFG_NOC_USB3_PR 528 clocks = <&gcc GCC_CFG_NOC_USB3_PRIM_AXI_CLK>, 576 <&gcc GCC_USB30_PRIM_MAST 529 <&gcc GCC_USB30_PRIM_MASTER_CLK>, 577 <&gcc GCC_AGGRE_USB3_PRIM 530 <&gcc GCC_AGGRE_USB3_PRIM_AXI_CLK>, 578 <&gcc GCC_USB30_PRIM_SLEE 531 <&gcc GCC_USB30_PRIM_SLEEP_CLK>, 579 <&gcc GCC_USB30_PRIM_MOCK 532 <&gcc GCC_USB30_PRIM_MOCK_UTMI_CLK>; 580 clock-names = "cfg_noc", 533 clock-names = "cfg_noc", 581 "core", 534 "core", 582 "iface", 535 "iface", 583 "sleep", 536 "sleep", 584 "mock_utmi"; 537 "mock_utmi"; 585 538 586 assigned-clocks = <&gcc GCC_USB30_ 539 assigned-clocks = <&gcc GCC_USB30_PRIM_MOCK_UTMI_CLK>, 587 <&gcc GCC_USB30_PRIM 540 <&gcc GCC_USB30_PRIM_MASTER_CLK>; 588 assigned-clock-rates = <19200000>, 541 assigned-clock-rates = <19200000>, <150000000>; 589 542 590 interrupts = <GIC_SPI 130 IRQ_TYPE 543 interrupts = <GIC_SPI 130 IRQ_TYPE_LEVEL_HIGH>, 591 <GIC_SPI 131 IRQ_TYPE 544 <GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>, 592 <GIC_SPI 489 IRQ_TYPE 545 <GIC_SPI 489 IRQ_TYPE_EDGE_BOTH>, 593 <GIC_SPI 488 IRQ_TYPE 546 <GIC_SPI 488 IRQ_TYPE_EDGE_BOTH>, 594 <GIC_SPI 486 IRQ_TYPE 547 <GIC_SPI 486 IRQ_TYPE_LEVEL_HIGH>; 595 interrupt-names = "pwr_event", "hs 548 interrupt-names = "pwr_event", "hs_phy_irq", 596 "dp_hs_phy_irq", "dm 549 "dp_hs_phy_irq", "dm_hs_phy_irq", "ss_phy_irq"; 597 550 598 power-domains = <&gcc USB30_PRIM_G 551 power-domains = <&gcc USB30_PRIM_GDSC>; 599 552 600 resets = <&gcc GCC_USB30_PRIM_BCR> 553 resets = <&gcc GCC_USB30_PRIM_BCR>; 601 554 602 usb@a600000 { 555 usb@a600000 { 603 compatible = "snps,dwc3"; 556 compatible = "snps,dwc3"; 604 reg = <0 0x0a600000 0 0xcd00>; 557 reg = <0 0x0a600000 0 0xcd00>; 605 interrupts = <GIC_SPI 133 IRQ_ 558 interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>; 606 iommus = <&apps_smmu 0x740 0>; 559 iommus = <&apps_smmu 0x740 0>; 607 snps,dis_u2_susphy_quirk; 560 snps,dis_u2_susphy_quirk; 608 snps,dis_enblslpm_quirk; 561 snps,dis_enblslpm_quirk; 609 phys = <&usb_1_hsphy>, <&usb_1 562 phys = <&usb_1_hsphy>, <&usb_1_ssphy>; 610 phy-names = "usb2-phy", "usb3- 563 phy-names = "usb2-phy", "usb3-phy"; 611 }; 564 }; 612 }; 565 }; 613 }; 566 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.