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