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: 18c9ccf3a3SEmmanuel Vadot items: 19c9ccf3a3SEmmanuel Vadot - description: Address and length of the register set for HSIO Block Control 20c9ccf3a3SEmmanuel Vadot - description: Address and length of the register set for the wrapper of 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 52c9ccf3a3SEmmanuel Vadot fsl,permanently-attached: 53c9ccf3a3SEmmanuel Vadot type: boolean 54c9ccf3a3SEmmanuel Vadot description: 55*aa1a8ff2SEmmanuel Vadot Indicates if the device attached to a downstream port is 56c9ccf3a3SEmmanuel Vadot permanently attached. 57c9ccf3a3SEmmanuel Vadot 58c9ccf3a3SEmmanuel Vadot fsl,disable-port-power-control: 59c9ccf3a3SEmmanuel Vadot type: boolean 60c9ccf3a3SEmmanuel Vadot description: 61c9ccf3a3SEmmanuel Vadot Indicates whether the host controller implementation includes port 62c9ccf3a3SEmmanuel Vadot power control. Defines Bit 3 in capability register (HCCPARAMS). 63c9ccf3a3SEmmanuel Vadot 64c9ccf3a3SEmmanuel Vadot fsl,over-current-active-low: 65c9ccf3a3SEmmanuel Vadot type: boolean 66c9ccf3a3SEmmanuel Vadot description: 67c9ccf3a3SEmmanuel Vadot Over current signal polarity is active low. 68c9ccf3a3SEmmanuel Vadot 69c9ccf3a3SEmmanuel Vadot fsl,power-active-low: 70c9ccf3a3SEmmanuel Vadot type: boolean 71c9ccf3a3SEmmanuel Vadot description: 72c9ccf3a3SEmmanuel Vadot Power pad (PWR) polarity is active low. 73c9ccf3a3SEmmanuel Vadot 74cb7aa33aSEmmanuel Vadot power-domains: 75cb7aa33aSEmmanuel Vadot maxItems: 1 76cb7aa33aSEmmanuel Vadot 775def4c47SEmmanuel Vadot# Required child node: 785def4c47SEmmanuel Vadot 795def4c47SEmmanuel VadotpatternProperties: 802eb4d8dcSEmmanuel Vadot "^usb@[0-9a-f]+$": 812eb4d8dcSEmmanuel Vadot $ref: snps,dwc3.yaml# 825def4c47SEmmanuel Vadot 835def4c47SEmmanuel Vadotrequired: 845def4c47SEmmanuel Vadot - compatible 855def4c47SEmmanuel Vadot - reg 865def4c47SEmmanuel Vadot - "#address-cells" 875def4c47SEmmanuel Vadot - "#size-cells" 885def4c47SEmmanuel Vadot - dma-ranges 895def4c47SEmmanuel Vadot - ranges 905def4c47SEmmanuel Vadot - clocks 915def4c47SEmmanuel Vadot - clock-names 925def4c47SEmmanuel Vadot - interrupts 93cb7aa33aSEmmanuel Vadot - power-domains 945def4c47SEmmanuel Vadot 955def4c47SEmmanuel VadotadditionalProperties: false 965def4c47SEmmanuel Vadot 975def4c47SEmmanuel Vadotexamples: 985def4c47SEmmanuel Vadot - | 995def4c47SEmmanuel Vadot #include <dt-bindings/clock/imx8mp-clock.h> 100cb7aa33aSEmmanuel Vadot #include <dt-bindings/power/imx8mp-power.h> 1015def4c47SEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 1025def4c47SEmmanuel Vadot usb3_0: usb@32f10100 { 1035def4c47SEmmanuel Vadot compatible = "fsl,imx8mp-dwc3"; 104c9ccf3a3SEmmanuel Vadot reg = <0x32f10100 0x8>, 105c9ccf3a3SEmmanuel Vadot <0x381f0000 0x20>; 1065def4c47SEmmanuel Vadot clocks = <&clk IMX8MP_CLK_HSIO_ROOT>, 1075def4c47SEmmanuel Vadot <&clk IMX8MP_CLK_USB_ROOT>; 1085def4c47SEmmanuel Vadot clock-names = "hsio", "suspend"; 1095def4c47SEmmanuel Vadot interrupts = <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>; 110cb7aa33aSEmmanuel Vadot power-domains = <&hsio_blk_ctrl IMX8MP_HSIOBLK_PD_USB>; 1115def4c47SEmmanuel Vadot #address-cells = <1>; 1125def4c47SEmmanuel Vadot #size-cells = <1>; 1135def4c47SEmmanuel Vadot dma-ranges = <0x40000000 0x40000000 0xc0000000>; 1145def4c47SEmmanuel Vadot ranges; 1155def4c47SEmmanuel Vadot 1162eb4d8dcSEmmanuel Vadot usb@38100000 { 1175def4c47SEmmanuel Vadot compatible = "snps,dwc3"; 1185def4c47SEmmanuel Vadot reg = <0x38100000 0x10000>; 1195def4c47SEmmanuel Vadot clocks = <&clk IMX8MP_CLK_HSIO_AXI>, 1205def4c47SEmmanuel Vadot <&clk IMX8MP_CLK_USB_CORE_REF>, 1215def4c47SEmmanuel Vadot <&clk IMX8MP_CLK_USB_ROOT>; 1225def4c47SEmmanuel Vadot clock-names = "bus_early", "ref", "suspend"; 1235def4c47SEmmanuel Vadot assigned-clocks = <&clk IMX8MP_CLK_HSIO_AXI>; 1245def4c47SEmmanuel Vadot assigned-clock-parents = <&clk IMX8MP_SYS_PLL2_500M>; 1255def4c47SEmmanuel Vadot assigned-clock-rates = <500000000>; 1265def4c47SEmmanuel Vadot interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>; 1275def4c47SEmmanuel Vadot phys = <&usb3_phy0>, <&usb3_phy0>; 1285def4c47SEmmanuel Vadot phy-names = "usb2-phy", "usb3-phy"; 1295def4c47SEmmanuel Vadot snps,dis-u2-freeclk-exists-quirk; 1305def4c47SEmmanuel Vadot }; 1315def4c47SEmmanuel Vadot }; 132