1*8bab661aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*8bab661aSEmmanuel Vadot%YAML 1.2 3*8bab661aSEmmanuel Vadot--- 4*8bab661aSEmmanuel Vadot$id: http://devicetree.org/schemas/usb/nvidia,tegra124-xusb.yaml# 5*8bab661aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*8bab661aSEmmanuel Vadot 7*8bab661aSEmmanuel Vadottitle: NVIDIA Tegra124 xHCI controller 8*8bab661aSEmmanuel Vadot 9*8bab661aSEmmanuel Vadotmaintainers: 10*8bab661aSEmmanuel Vadot - Thierry Reding <thierry.reding@gmail.com> 11*8bab661aSEmmanuel Vadot - Jon Hunter <jonathanh@nvidia.com> 12*8bab661aSEmmanuel Vadot 13*8bab661aSEmmanuel Vadotdescription: The Tegra xHCI controller supports both USB2 and USB3 interfaces 14*8bab661aSEmmanuel Vadot exposed by the Tegra XUSB pad controller. 15*8bab661aSEmmanuel Vadot 16*8bab661aSEmmanuel Vadotproperties: 17*8bab661aSEmmanuel Vadot # required 18*8bab661aSEmmanuel Vadot compatible: 19*8bab661aSEmmanuel Vadot oneOf: 20*8bab661aSEmmanuel Vadot - description: NVIDIA Tegra124 21*8bab661aSEmmanuel Vadot const: nvidia,tegra124-xusb 22*8bab661aSEmmanuel Vadot 23*8bab661aSEmmanuel Vadot - description: NVIDIA Tegra132 24*8bab661aSEmmanuel Vadot items: 25*8bab661aSEmmanuel Vadot - const: nvidia,tegra132-xusb 26*8bab661aSEmmanuel Vadot - const: nvidia,tegra124-xusb 27*8bab661aSEmmanuel Vadot 28*8bab661aSEmmanuel Vadot reg: 29*8bab661aSEmmanuel Vadot items: 30*8bab661aSEmmanuel Vadot - description: base and length of the xHCI host registers 31*8bab661aSEmmanuel Vadot - description: base and length of the XUSB FPCI registers 32*8bab661aSEmmanuel Vadot - description: base and length of the XUSB IPFS registers 33*8bab661aSEmmanuel Vadot 34*8bab661aSEmmanuel Vadot reg-names: 35*8bab661aSEmmanuel Vadot items: 36*8bab661aSEmmanuel Vadot - const: hcd 37*8bab661aSEmmanuel Vadot - const: fpci 38*8bab661aSEmmanuel Vadot - const: ipfs 39*8bab661aSEmmanuel Vadot 40*8bab661aSEmmanuel Vadot interrupts: 41*8bab661aSEmmanuel Vadot items: 42*8bab661aSEmmanuel Vadot - description: xHCI host interrupt 43*8bab661aSEmmanuel Vadot - description: mailbox interrupt 44*8bab661aSEmmanuel Vadot 45*8bab661aSEmmanuel Vadot clocks: 46*8bab661aSEmmanuel Vadot items: 47*8bab661aSEmmanuel Vadot - description: XUSB host clock 48*8bab661aSEmmanuel Vadot - description: XUSB host source clock 49*8bab661aSEmmanuel Vadot - description: XUSB Falcon source clock 50*8bab661aSEmmanuel Vadot - description: XUSB SuperSpeed clock 51*8bab661aSEmmanuel Vadot - description: XUSB SuperSpeed clock divider 52*8bab661aSEmmanuel Vadot - description: XUSB SuperSpeed source clock 53*8bab661aSEmmanuel Vadot - description: XUSB HighSpeed clock source 54*8bab661aSEmmanuel Vadot - description: XUSB FullSpeed clock source 55*8bab661aSEmmanuel Vadot - description: USB PLL 56*8bab661aSEmmanuel Vadot - description: reference clock 57*8bab661aSEmmanuel Vadot - description: I/O PLL 58*8bab661aSEmmanuel Vadot 59*8bab661aSEmmanuel Vadot clock-names: 60*8bab661aSEmmanuel Vadot items: 61*8bab661aSEmmanuel Vadot - const: xusb_host 62*8bab661aSEmmanuel Vadot - const: xusb_host_src 63*8bab661aSEmmanuel Vadot - const: xusb_falcon_src 64*8bab661aSEmmanuel Vadot - const: xusb_ss 65*8bab661aSEmmanuel Vadot - const: xusb_ss_div2 66*8bab661aSEmmanuel Vadot - const: xusb_ss_src 67*8bab661aSEmmanuel Vadot - const: xusb_hs_src 68*8bab661aSEmmanuel Vadot - const: xusb_fs_src 69*8bab661aSEmmanuel Vadot - const: pll_u_480m 70*8bab661aSEmmanuel Vadot - const: clk_m 71*8bab661aSEmmanuel Vadot - const: pll_e 72*8bab661aSEmmanuel Vadot 73*8bab661aSEmmanuel Vadot resets: 74*8bab661aSEmmanuel Vadot items: 75*8bab661aSEmmanuel Vadot - description: reset for the XUSB host controller 76*8bab661aSEmmanuel Vadot - description: reset for the SuperSpeed logic 77*8bab661aSEmmanuel Vadot - description: shared reset for xusb_{ss,hs,fs,falcon,host}_src. 78*8bab661aSEmmanuel Vadot 79*8bab661aSEmmanuel Vadot reset-names: 80*8bab661aSEmmanuel Vadot items: 81*8bab661aSEmmanuel Vadot - const: xusb_host 82*8bab661aSEmmanuel Vadot - const: xusb_ss 83*8bab661aSEmmanuel Vadot - const: xusb_src 84*8bab661aSEmmanuel Vadot 85*8bab661aSEmmanuel Vadot nvidia,xusb-padctl: 86*8bab661aSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/phandle 87*8bab661aSEmmanuel Vadot description: phandle to the XUSB pad controller that is used to configure 88*8bab661aSEmmanuel Vadot the USB pads used by the XHCI controller 89*8bab661aSEmmanuel Vadot 90*8bab661aSEmmanuel Vadot # optional 91*8bab661aSEmmanuel Vadot phys: 92*8bab661aSEmmanuel Vadot minItems: 1 93*8bab661aSEmmanuel Vadot maxItems: 7 94*8bab661aSEmmanuel Vadot 95*8bab661aSEmmanuel Vadot phy-names: 96*8bab661aSEmmanuel Vadot minItems: 1 97*8bab661aSEmmanuel Vadot maxItems: 7 98*8bab661aSEmmanuel Vadot items: 99*8bab661aSEmmanuel Vadot enum: 100*8bab661aSEmmanuel Vadot - usb2-0 101*8bab661aSEmmanuel Vadot - usb2-1 102*8bab661aSEmmanuel Vadot - usb2-2 103*8bab661aSEmmanuel Vadot - hsic-0 104*8bab661aSEmmanuel Vadot - hsic-1 105*8bab661aSEmmanuel Vadot - usb3-0 106*8bab661aSEmmanuel Vadot - usb3-1 107*8bab661aSEmmanuel Vadot 108*8bab661aSEmmanuel Vadot avddio-pex-supply: 109*8bab661aSEmmanuel Vadot description: PCIe/USB3 analog logic power supply. Must supply 1.05 V. 110*8bab661aSEmmanuel Vadot 111*8bab661aSEmmanuel Vadot dvddio-pex-supply: 112*8bab661aSEmmanuel Vadot description: PCIe/USB3 digital logic power supply. Must supply 1.05 V. 113*8bab661aSEmmanuel Vadot 114*8bab661aSEmmanuel Vadot avdd-usb-supply: 115*8bab661aSEmmanuel Vadot description: USB controller power supply. Must supply 3.3 V. 116*8bab661aSEmmanuel Vadot 117*8bab661aSEmmanuel Vadot avdd-pll-utmip-supply: 118*8bab661aSEmmanuel Vadot description: UTMI PLL power supply. Must supply 1.8 V. 119*8bab661aSEmmanuel Vadot 120*8bab661aSEmmanuel Vadot avdd-pll-erefe-supply: 121*8bab661aSEmmanuel Vadot description: PLLE reference PLL power supply. Must supply 1.05 V. 122*8bab661aSEmmanuel Vadot 123*8bab661aSEmmanuel Vadot avdd-usb-ss-pll-supply: 124*8bab661aSEmmanuel Vadot description: PCIe/USB3 PLL power supply. Must supply 1.05 V. 125*8bab661aSEmmanuel Vadot 126*8bab661aSEmmanuel Vadot hvdd-usb-ss-supply: 127*8bab661aSEmmanuel Vadot description: High-voltage PCIe/USB3 power supply. Must supply 3.3 V. 128*8bab661aSEmmanuel Vadot 129*8bab661aSEmmanuel Vadot hvdd-usb-ss-pll-e-supply: 130*8bab661aSEmmanuel Vadot description: High-voltage PLLE power supply. Must supply 3.3 V. 131*8bab661aSEmmanuel Vadot 132*8bab661aSEmmanuel VadotallOf: 133*8bab661aSEmmanuel Vadot - $ref: usb-xhci.yaml 134*8bab661aSEmmanuel Vadot 135*8bab661aSEmmanuel VadotunevaluatedProperties: false 136*8bab661aSEmmanuel Vadot 137*8bab661aSEmmanuel Vadotrequired: 138*8bab661aSEmmanuel Vadot - compatible 139*8bab661aSEmmanuel Vadot - reg 140*8bab661aSEmmanuel Vadot - reg-names 141*8bab661aSEmmanuel Vadot - interrupts 142*8bab661aSEmmanuel Vadot - clocks 143*8bab661aSEmmanuel Vadot - clock-names 144*8bab661aSEmmanuel Vadot - resets 145*8bab661aSEmmanuel Vadot - reset-names 146*8bab661aSEmmanuel Vadot - nvidia,xusb-padctl 147*8bab661aSEmmanuel Vadot - phys 148*8bab661aSEmmanuel Vadot - phy-names 149*8bab661aSEmmanuel Vadot - avddio-pex-supply 150*8bab661aSEmmanuel Vadot - dvddio-pex-supply 151*8bab661aSEmmanuel Vadot - avdd-usb-supply 152*8bab661aSEmmanuel Vadot - hvdd-usb-ss-supply 153*8bab661aSEmmanuel Vadot 154*8bab661aSEmmanuel Vadotexamples: 155*8bab661aSEmmanuel Vadot - | 156*8bab661aSEmmanuel Vadot #include <dt-bindings/clock/tegra124-car.h> 157*8bab661aSEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 158*8bab661aSEmmanuel Vadot 159*8bab661aSEmmanuel Vadot usb@70090000 { 160*8bab661aSEmmanuel Vadot compatible = "nvidia,tegra124-xusb"; 161*8bab661aSEmmanuel Vadot reg = <0x70090000 0x8000>, 162*8bab661aSEmmanuel Vadot <0x70098000 0x1000>, 163*8bab661aSEmmanuel Vadot <0x70099000 0x1000>; 164*8bab661aSEmmanuel Vadot reg-names = "hcd", "fpci", "ipfs"; 165*8bab661aSEmmanuel Vadot 166*8bab661aSEmmanuel Vadot interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>, 167*8bab661aSEmmanuel Vadot <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>; 168*8bab661aSEmmanuel Vadot 169*8bab661aSEmmanuel Vadot clocks = <&tegra_car TEGRA124_CLK_XUSB_HOST>, 170*8bab661aSEmmanuel Vadot <&tegra_car TEGRA124_CLK_XUSB_HOST_SRC>, 171*8bab661aSEmmanuel Vadot <&tegra_car TEGRA124_CLK_XUSB_FALCON_SRC>, 172*8bab661aSEmmanuel Vadot <&tegra_car TEGRA124_CLK_XUSB_SS>, 173*8bab661aSEmmanuel Vadot <&tegra_car TEGRA124_CLK_XUSB_SS_DIV2>, 174*8bab661aSEmmanuel Vadot <&tegra_car TEGRA124_CLK_XUSB_SS_SRC>, 175*8bab661aSEmmanuel Vadot <&tegra_car TEGRA124_CLK_XUSB_HS_SRC>, 176*8bab661aSEmmanuel Vadot <&tegra_car TEGRA124_CLK_XUSB_FS_SRC>, 177*8bab661aSEmmanuel Vadot <&tegra_car TEGRA124_CLK_PLL_U_480M>, 178*8bab661aSEmmanuel Vadot <&tegra_car TEGRA124_CLK_CLK_M>, 179*8bab661aSEmmanuel Vadot <&tegra_car TEGRA124_CLK_PLL_E>; 180*8bab661aSEmmanuel Vadot clock-names = "xusb_host", "xusb_host_src", "xusb_falcon_src", 181*8bab661aSEmmanuel Vadot "xusb_ss", "xusb_ss_div2", "xusb_ss_src", 182*8bab661aSEmmanuel Vadot "xusb_hs_src", "xusb_fs_src", "pll_u_480m", 183*8bab661aSEmmanuel Vadot "clk_m", "pll_e"; 184*8bab661aSEmmanuel Vadot resets = <&tegra_car 89>, <&tegra_car 156>, <&tegra_car 143>; 185*8bab661aSEmmanuel Vadot reset-names = "xusb_host", "xusb_ss", "xusb_src"; 186*8bab661aSEmmanuel Vadot 187*8bab661aSEmmanuel Vadot nvidia,xusb-padctl = <&padctl>; 188*8bab661aSEmmanuel Vadot 189*8bab661aSEmmanuel Vadot phys = <&phy_usb2_1>, <&phy_usb2_2>, <&phy_pcie_0>; 190*8bab661aSEmmanuel Vadot phy-names = "usb2-1", "usb2-2", "usb3-0"; 191*8bab661aSEmmanuel Vadot 192*8bab661aSEmmanuel Vadot avddio-pex-supply = <&vdd_1v05_run>; 193*8bab661aSEmmanuel Vadot dvddio-pex-supply = <&vdd_1v05_run>; 194*8bab661aSEmmanuel Vadot avdd-usb-supply = <&vdd_3v3_lp0>; 195*8bab661aSEmmanuel Vadot avdd-pll-utmip-supply = <&vddio_1v8>; 196*8bab661aSEmmanuel Vadot avdd-pll-erefe-supply = <&avdd_1v05_run>; 197*8bab661aSEmmanuel Vadot avdd-usb-ss-pll-supply = <&vdd_1v05_run>; 198*8bab661aSEmmanuel Vadot hvdd-usb-ss-supply = <&vdd_3v3_lp0>; 199*8bab661aSEmmanuel Vadot hvdd-usb-ss-pll-e-supply = <&vdd_3v3_lp0>; 200*8bab661aSEmmanuel Vadot }; 201