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