1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2c66ec88fSEmmanuel Vadot%YAML 1.2 3c66ec88fSEmmanuel Vadot--- 4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/usb/qcom,dwc3.yaml# 5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6c66ec88fSEmmanuel Vadot 7c66ec88fSEmmanuel Vadottitle: Qualcomm SuperSpeed DWC3 USB SoC controller 8c66ec88fSEmmanuel Vadot 9c66ec88fSEmmanuel Vadotmaintainers: 10c66ec88fSEmmanuel Vadot - Manu Gautam <mgautam@codeaurora.org> 11c66ec88fSEmmanuel Vadot 12c66ec88fSEmmanuel Vadotproperties: 13c66ec88fSEmmanuel Vadot compatible: 14c66ec88fSEmmanuel Vadot items: 15c66ec88fSEmmanuel Vadot - enum: 16*e67e8565SEmmanuel Vadot - qcom,ipq4019-dwc3 178cc087a1SEmmanuel Vadot - qcom,ipq6018-dwc3 18*e67e8565SEmmanuel Vadot - qcom,ipq8064-dwc3 19c66ec88fSEmmanuel Vadot - qcom,msm8996-dwc3 20c66ec88fSEmmanuel Vadot - qcom,msm8998-dwc3 21c66ec88fSEmmanuel Vadot - qcom,sc7180-dwc3 222eb4d8dcSEmmanuel Vadot - qcom,sc7280-dwc3 23354d7675SEmmanuel Vadot - qcom,sdm660-dwc3 24c66ec88fSEmmanuel Vadot - qcom,sdm845-dwc3 255def4c47SEmmanuel Vadot - qcom,sdx55-dwc3 265956d97fSEmmanuel Vadot - qcom,sm4250-dwc3 275956d97fSEmmanuel Vadot - qcom,sm6115-dwc3 28*e67e8565SEmmanuel Vadot - qcom,sm6350-dwc3 295def4c47SEmmanuel Vadot - qcom,sm8150-dwc3 305def4c47SEmmanuel Vadot - qcom,sm8250-dwc3 315def4c47SEmmanuel Vadot - qcom,sm8350-dwc3 32*e67e8565SEmmanuel Vadot - qcom,sm8450-dwc3 33c66ec88fSEmmanuel Vadot - const: qcom,dwc3 34c66ec88fSEmmanuel Vadot 35c66ec88fSEmmanuel Vadot reg: 36c66ec88fSEmmanuel Vadot description: Offset and length of register set for QSCRATCH wrapper 37c66ec88fSEmmanuel Vadot maxItems: 1 38c66ec88fSEmmanuel Vadot 39c66ec88fSEmmanuel Vadot "#address-cells": 40c66ec88fSEmmanuel Vadot enum: [ 1, 2 ] 41c66ec88fSEmmanuel Vadot 42c66ec88fSEmmanuel Vadot "#size-cells": 43c66ec88fSEmmanuel Vadot enum: [ 1, 2 ] 44c66ec88fSEmmanuel Vadot 45c66ec88fSEmmanuel Vadot ranges: true 46c66ec88fSEmmanuel Vadot 47c66ec88fSEmmanuel Vadot power-domains: 48c66ec88fSEmmanuel Vadot description: specifies a phandle to PM domain provider node 49c66ec88fSEmmanuel Vadot maxItems: 1 50c66ec88fSEmmanuel Vadot 51c66ec88fSEmmanuel Vadot clocks: 52c66ec88fSEmmanuel Vadot description: 53c66ec88fSEmmanuel Vadot A list of phandle and clock-specifier pairs for the clocks 54c66ec88fSEmmanuel Vadot listed in clock-names. 55c66ec88fSEmmanuel Vadot items: 56c66ec88fSEmmanuel Vadot - description: System Config NOC clock. 57c66ec88fSEmmanuel Vadot - description: Master/Core clock, has to be >= 125 MHz 58c66ec88fSEmmanuel Vadot for SS operation and >= 60MHz for HS operation. 59c66ec88fSEmmanuel Vadot - description: System bus AXI clock. 60c66ec88fSEmmanuel Vadot - description: Mock utmi clock needed for ITP/SOF generation 61c66ec88fSEmmanuel Vadot in host mode. Its frequency should be 19.2MHz. 62c66ec88fSEmmanuel Vadot - description: Sleep clock, used for wakeup when 63c66ec88fSEmmanuel Vadot USB3 core goes into low power mode (U3). 64c66ec88fSEmmanuel Vadot 65c66ec88fSEmmanuel Vadot clock-names: 66c66ec88fSEmmanuel Vadot items: 67c66ec88fSEmmanuel Vadot - const: cfg_noc 68c66ec88fSEmmanuel Vadot - const: core 69c66ec88fSEmmanuel Vadot - const: iface 70c66ec88fSEmmanuel Vadot - const: mock_utmi 71c66ec88fSEmmanuel Vadot - const: sleep 72c66ec88fSEmmanuel Vadot 73c66ec88fSEmmanuel Vadot assigned-clocks: 74c66ec88fSEmmanuel Vadot items: 75c66ec88fSEmmanuel Vadot - description: Phandle and clock specifier of MOCK_UTMI_CLK. 76c66ec88fSEmmanuel Vadot - description: Phandle and clock specifoer of MASTER_CLK. 77c66ec88fSEmmanuel Vadot 78c66ec88fSEmmanuel Vadot assigned-clock-rates: 79c66ec88fSEmmanuel Vadot items: 80c66ec88fSEmmanuel Vadot - description: Must be 19.2MHz (19200000). 81c66ec88fSEmmanuel Vadot - description: Must be >= 60 MHz in HS mode, >= 125 MHz in SS mode. 82c66ec88fSEmmanuel Vadot resets: 83c66ec88fSEmmanuel Vadot maxItems: 1 84c66ec88fSEmmanuel Vadot 85c66ec88fSEmmanuel Vadot interconnects: 86c66ec88fSEmmanuel Vadot maxItems: 2 87c66ec88fSEmmanuel Vadot 88c66ec88fSEmmanuel Vadot interconnect-names: 89c66ec88fSEmmanuel Vadot items: 90c66ec88fSEmmanuel Vadot - const: usb-ddr 91c66ec88fSEmmanuel Vadot - const: apps-usb 92c66ec88fSEmmanuel Vadot 93c66ec88fSEmmanuel Vadot interrupts: 94c66ec88fSEmmanuel Vadot items: 95c66ec88fSEmmanuel Vadot - description: The interrupt that is asserted 96c66ec88fSEmmanuel Vadot when a wakeup event is received on USB2 bus. 97c66ec88fSEmmanuel Vadot - description: The interrupt that is asserted 98c66ec88fSEmmanuel Vadot when a wakeup event is received on USB3 bus. 99c66ec88fSEmmanuel Vadot - description: Wakeup event on DM line. 100c66ec88fSEmmanuel Vadot - description: Wakeup event on DP line. 101c66ec88fSEmmanuel Vadot 102c66ec88fSEmmanuel Vadot interrupt-names: 103c66ec88fSEmmanuel Vadot items: 104c66ec88fSEmmanuel Vadot - const: hs_phy_irq 105c66ec88fSEmmanuel Vadot - const: ss_phy_irq 106c66ec88fSEmmanuel Vadot - const: dm_hs_phy_irq 107c66ec88fSEmmanuel Vadot - const: dp_hs_phy_irq 108c66ec88fSEmmanuel Vadot 109c66ec88fSEmmanuel Vadot qcom,select-utmi-as-pipe-clk: 110c66ec88fSEmmanuel Vadot description: 111c66ec88fSEmmanuel Vadot If present, disable USB3 pipe_clk requirement. 112c66ec88fSEmmanuel Vadot Used when dwc3 operates without SSPHY and only 113c66ec88fSEmmanuel Vadot HS/FS/LS modes are supported. 114c66ec88fSEmmanuel Vadot type: boolean 115c66ec88fSEmmanuel Vadot 116c66ec88fSEmmanuel Vadot# Required child node: 117c66ec88fSEmmanuel Vadot 118c66ec88fSEmmanuel VadotpatternProperties: 1195def4c47SEmmanuel Vadot "^usb@[0-9a-f]+$": 1205def4c47SEmmanuel Vadot $ref: snps,dwc3.yaml# 121c66ec88fSEmmanuel Vadot 122c66ec88fSEmmanuel Vadotrequired: 123c66ec88fSEmmanuel Vadot - compatible 124c66ec88fSEmmanuel Vadot - reg 125c66ec88fSEmmanuel Vadot - "#address-cells" 126c66ec88fSEmmanuel Vadot - "#size-cells" 127c66ec88fSEmmanuel Vadot - ranges 128c66ec88fSEmmanuel Vadot - power-domains 129c66ec88fSEmmanuel Vadot - clocks 130c66ec88fSEmmanuel Vadot - clock-names 131c66ec88fSEmmanuel Vadot - interrupts 132c66ec88fSEmmanuel Vadot - interrupt-names 133c66ec88fSEmmanuel Vadot 1346be33864SEmmanuel VadotadditionalProperties: false 1356be33864SEmmanuel Vadot 136c66ec88fSEmmanuel Vadotexamples: 137c66ec88fSEmmanuel Vadot - | 138c66ec88fSEmmanuel Vadot #include <dt-bindings/clock/qcom,gcc-sdm845.h> 139c66ec88fSEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 140c66ec88fSEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 141c66ec88fSEmmanuel Vadot soc { 142c66ec88fSEmmanuel Vadot #address-cells = <2>; 143c66ec88fSEmmanuel Vadot #size-cells = <2>; 144c66ec88fSEmmanuel Vadot 145c66ec88fSEmmanuel Vadot usb@a6f8800 { 146c66ec88fSEmmanuel Vadot compatible = "qcom,sdm845-dwc3", "qcom,dwc3"; 147c66ec88fSEmmanuel Vadot reg = <0 0x0a6f8800 0 0x400>; 148c66ec88fSEmmanuel Vadot 149c66ec88fSEmmanuel Vadot #address-cells = <2>; 150c66ec88fSEmmanuel Vadot #size-cells = <2>; 151c66ec88fSEmmanuel Vadot ranges; 152c66ec88fSEmmanuel Vadot clocks = <&gcc GCC_CFG_NOC_USB3_PRIM_AXI_CLK>, 153c66ec88fSEmmanuel Vadot <&gcc GCC_USB30_PRIM_MASTER_CLK>, 154c66ec88fSEmmanuel Vadot <&gcc GCC_AGGRE_USB3_PRIM_AXI_CLK>, 155c66ec88fSEmmanuel Vadot <&gcc GCC_USB30_PRIM_MOCK_UTMI_CLK>, 156c66ec88fSEmmanuel Vadot <&gcc GCC_USB30_PRIM_SLEEP_CLK>; 157c66ec88fSEmmanuel Vadot clock-names = "cfg_noc", "core", "iface", "mock_utmi", 158c66ec88fSEmmanuel Vadot "sleep"; 159c66ec88fSEmmanuel Vadot 160c66ec88fSEmmanuel Vadot assigned-clocks = <&gcc GCC_USB30_PRIM_MOCK_UTMI_CLK>, 161c66ec88fSEmmanuel Vadot <&gcc GCC_USB30_PRIM_MASTER_CLK>; 162c66ec88fSEmmanuel Vadot assigned-clock-rates = <19200000>, <150000000>; 163c66ec88fSEmmanuel Vadot 164c66ec88fSEmmanuel Vadot interrupts = <GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>, 165c66ec88fSEmmanuel Vadot <GIC_SPI 486 IRQ_TYPE_LEVEL_HIGH>, 166c66ec88fSEmmanuel Vadot <GIC_SPI 488 IRQ_TYPE_LEVEL_HIGH>, 167c66ec88fSEmmanuel Vadot <GIC_SPI 489 IRQ_TYPE_LEVEL_HIGH>; 168c66ec88fSEmmanuel Vadot interrupt-names = "hs_phy_irq", "ss_phy_irq", 169c66ec88fSEmmanuel Vadot "dm_hs_phy_irq", "dp_hs_phy_irq"; 170c66ec88fSEmmanuel Vadot 171c66ec88fSEmmanuel Vadot power-domains = <&gcc USB30_PRIM_GDSC>; 172c66ec88fSEmmanuel Vadot 173c66ec88fSEmmanuel Vadot resets = <&gcc GCC_USB30_PRIM_BCR>; 174c66ec88fSEmmanuel Vadot 1755def4c47SEmmanuel Vadot usb@a600000 { 176c66ec88fSEmmanuel Vadot compatible = "snps,dwc3"; 177c66ec88fSEmmanuel Vadot reg = <0 0x0a600000 0 0xcd00>; 178c66ec88fSEmmanuel Vadot interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>; 179c66ec88fSEmmanuel Vadot iommus = <&apps_smmu 0x740 0>; 180c66ec88fSEmmanuel Vadot snps,dis_u2_susphy_quirk; 181c66ec88fSEmmanuel Vadot snps,dis_enblslpm_quirk; 182c66ec88fSEmmanuel Vadot phys = <&usb_1_hsphy>, <&usb_1_ssphy>; 183c66ec88fSEmmanuel Vadot phy-names = "usb2-phy", "usb3-phy"; 184c66ec88fSEmmanuel Vadot }; 185c66ec88fSEmmanuel Vadot }; 186c66ec88fSEmmanuel Vadot }; 187