15def4c47SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 25def4c47SEmmanuel Vadot# Copyright (c) 2020 NXP 35def4c47SEmmanuel Vadot%YAML 1.2 45def4c47SEmmanuel Vadot--- 55def4c47SEmmanuel Vadot$id: http://devicetree.org/schemas/usb/fsl,imx8mp-dwc3.yaml# 65def4c47SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 75def4c47SEmmanuel Vadot 85def4c47SEmmanuel Vadottitle: NXP iMX8MP Soc USB Controller 95def4c47SEmmanuel Vadot 105def4c47SEmmanuel Vadotmaintainers: 115def4c47SEmmanuel Vadot - Li Jun <jun.li@nxp.com> 125def4c47SEmmanuel Vadot 135def4c47SEmmanuel Vadotproperties: 145def4c47SEmmanuel Vadot compatible: 155def4c47SEmmanuel Vadot const: fsl,imx8mp-dwc3 165def4c47SEmmanuel Vadot 175def4c47SEmmanuel Vadot reg: 185def4c47SEmmanuel Vadot maxItems: 1 195def4c47SEmmanuel Vadot description: Address and length of the register set for the wrapper of 205def4c47SEmmanuel Vadot dwc3 core on the SOC. 215def4c47SEmmanuel Vadot 225def4c47SEmmanuel Vadot "#address-cells": 235def4c47SEmmanuel Vadot enum: [ 1, 2 ] 245def4c47SEmmanuel Vadot 255def4c47SEmmanuel Vadot "#size-cells": 265def4c47SEmmanuel Vadot enum: [ 1, 2 ] 275def4c47SEmmanuel Vadot 285def4c47SEmmanuel Vadot dma-ranges: 295def4c47SEmmanuel Vadot description: 305def4c47SEmmanuel Vadot See section 2.3.9 of the DeviceTree Specification. 315def4c47SEmmanuel Vadot 325def4c47SEmmanuel Vadot ranges: true 335def4c47SEmmanuel Vadot 345def4c47SEmmanuel Vadot interrupts: 355def4c47SEmmanuel Vadot maxItems: 1 365def4c47SEmmanuel Vadot description: The interrupt that is asserted when a wakeup event is 375def4c47SEmmanuel Vadot received. 385def4c47SEmmanuel Vadot 395def4c47SEmmanuel Vadot clocks: 405def4c47SEmmanuel Vadot description: 415def4c47SEmmanuel Vadot A list of phandle and clock-specifier pairs for the clocks 425def4c47SEmmanuel Vadot listed in clock-names. 435def4c47SEmmanuel Vadot items: 445def4c47SEmmanuel Vadot - description: system hsio root clock. 455def4c47SEmmanuel Vadot - description: suspend clock, used for usb wakeup logic. 465def4c47SEmmanuel Vadot 475def4c47SEmmanuel Vadot clock-names: 485def4c47SEmmanuel Vadot items: 495def4c47SEmmanuel Vadot - const: hsio 505def4c47SEmmanuel Vadot - const: suspend 515def4c47SEmmanuel Vadot 525def4c47SEmmanuel Vadot# Required child node: 535def4c47SEmmanuel Vadot 545def4c47SEmmanuel VadotpatternProperties: 55*2eb4d8dcSEmmanuel Vadot "^usb@[0-9a-f]+$": 56*2eb4d8dcSEmmanuel Vadot $ref: snps,dwc3.yaml# 575def4c47SEmmanuel Vadot 585def4c47SEmmanuel Vadotrequired: 595def4c47SEmmanuel Vadot - compatible 605def4c47SEmmanuel Vadot - reg 615def4c47SEmmanuel Vadot - "#address-cells" 625def4c47SEmmanuel Vadot - "#size-cells" 635def4c47SEmmanuel Vadot - dma-ranges 645def4c47SEmmanuel Vadot - ranges 655def4c47SEmmanuel Vadot - clocks 665def4c47SEmmanuel Vadot - clock-names 675def4c47SEmmanuel Vadot - interrupts 685def4c47SEmmanuel Vadot 695def4c47SEmmanuel VadotadditionalProperties: false 705def4c47SEmmanuel Vadot 715def4c47SEmmanuel Vadotexamples: 725def4c47SEmmanuel Vadot - | 735def4c47SEmmanuel Vadot #include <dt-bindings/clock/imx8mp-clock.h> 745def4c47SEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 755def4c47SEmmanuel Vadot usb3_0: usb@32f10100 { 765def4c47SEmmanuel Vadot compatible = "fsl,imx8mp-dwc3"; 775def4c47SEmmanuel Vadot reg = <0x32f10100 0x8>; 785def4c47SEmmanuel Vadot clocks = <&clk IMX8MP_CLK_HSIO_ROOT>, 795def4c47SEmmanuel Vadot <&clk IMX8MP_CLK_USB_ROOT>; 805def4c47SEmmanuel Vadot clock-names = "hsio", "suspend"; 815def4c47SEmmanuel Vadot interrupts = <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>; 825def4c47SEmmanuel Vadot #address-cells = <1>; 835def4c47SEmmanuel Vadot #size-cells = <1>; 845def4c47SEmmanuel Vadot dma-ranges = <0x40000000 0x40000000 0xc0000000>; 855def4c47SEmmanuel Vadot ranges; 865def4c47SEmmanuel Vadot 87*2eb4d8dcSEmmanuel Vadot usb@38100000 { 885def4c47SEmmanuel Vadot compatible = "snps,dwc3"; 895def4c47SEmmanuel Vadot reg = <0x38100000 0x10000>; 905def4c47SEmmanuel Vadot clocks = <&clk IMX8MP_CLK_HSIO_AXI>, 915def4c47SEmmanuel Vadot <&clk IMX8MP_CLK_USB_CORE_REF>, 925def4c47SEmmanuel Vadot <&clk IMX8MP_CLK_USB_ROOT>; 935def4c47SEmmanuel Vadot clock-names = "bus_early", "ref", "suspend"; 945def4c47SEmmanuel Vadot assigned-clocks = <&clk IMX8MP_CLK_HSIO_AXI>; 955def4c47SEmmanuel Vadot assigned-clock-parents = <&clk IMX8MP_SYS_PLL2_500M>; 965def4c47SEmmanuel Vadot assigned-clock-rates = <500000000>; 975def4c47SEmmanuel Vadot interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>; 985def4c47SEmmanuel Vadot phys = <&usb3_phy0>, <&usb3_phy0>; 995def4c47SEmmanuel Vadot phy-names = "usb2-phy", "usb3-phy"; 1005def4c47SEmmanuel Vadot snps,dis-u2-freeclk-exists-quirk; 1015def4c47SEmmanuel Vadot }; 1025def4c47SEmmanuel Vadot }; 103