xref: /freebsd/sys/contrib/device-tree/Bindings/usb/nvidia,tegra194-xusb.yaml (revision 8bab661a3316d8bd9b9fbd11a3b4371b91507bd2)
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,tegra194-xusb.yaml#
5*8bab661aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*8bab661aSEmmanuel Vadot
7*8bab661aSEmmanuel Vadottitle: NVIDIA Tegra194 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  compatible:
18*8bab661aSEmmanuel Vadot    const: nvidia,tegra194-xusb
19*8bab661aSEmmanuel Vadot
20*8bab661aSEmmanuel Vadot  reg:
21*8bab661aSEmmanuel Vadot    items:
22*8bab661aSEmmanuel Vadot      - description: base and length of the xHCI host registers
23*8bab661aSEmmanuel Vadot      - description: base and length of the XUSB FPCI registers
24*8bab661aSEmmanuel Vadot
25*8bab661aSEmmanuel Vadot  reg-names:
26*8bab661aSEmmanuel Vadot    items:
27*8bab661aSEmmanuel Vadot      - const: hcd
28*8bab661aSEmmanuel Vadot      - const: fpci
29*8bab661aSEmmanuel Vadot
30*8bab661aSEmmanuel Vadot  interrupts:
31*8bab661aSEmmanuel Vadot    items:
32*8bab661aSEmmanuel Vadot      - description: xHCI host interrupt
33*8bab661aSEmmanuel Vadot      - description: mailbox interrupt
34*8bab661aSEmmanuel Vadot
35*8bab661aSEmmanuel Vadot  clocks:
36*8bab661aSEmmanuel Vadot    items:
37*8bab661aSEmmanuel Vadot      - description: XUSB host clock
38*8bab661aSEmmanuel Vadot      - description: XUSB Falcon source clock
39*8bab661aSEmmanuel Vadot      - description: XUSB SuperSpeed clock
40*8bab661aSEmmanuel Vadot      - description: XUSB SuperSpeed source clock
41*8bab661aSEmmanuel Vadot      - description: XUSB HighSpeed clock source
42*8bab661aSEmmanuel Vadot      - description: XUSB FullSpeed clock source
43*8bab661aSEmmanuel Vadot      - description: USB PLL
44*8bab661aSEmmanuel Vadot      - description: reference clock
45*8bab661aSEmmanuel Vadot      - description: I/O PLL
46*8bab661aSEmmanuel Vadot
47*8bab661aSEmmanuel Vadot  clock-names:
48*8bab661aSEmmanuel Vadot    items:
49*8bab661aSEmmanuel Vadot      - const: xusb_host
50*8bab661aSEmmanuel Vadot      - const: xusb_falcon_src
51*8bab661aSEmmanuel Vadot      - const: xusb_ss
52*8bab661aSEmmanuel Vadot      - const: xusb_ss_src
53*8bab661aSEmmanuel Vadot      - const: xusb_hs_src
54*8bab661aSEmmanuel Vadot      - const: xusb_fs_src
55*8bab661aSEmmanuel Vadot      - const: pll_u_480m
56*8bab661aSEmmanuel Vadot      - const: clk_m
57*8bab661aSEmmanuel Vadot      - const: pll_e
58*8bab661aSEmmanuel Vadot
59*8bab661aSEmmanuel Vadot  interconnects:
60*8bab661aSEmmanuel Vadot    items:
61*8bab661aSEmmanuel Vadot      - description: read client
62*8bab661aSEmmanuel Vadot      - description: write client
63*8bab661aSEmmanuel Vadot
64*8bab661aSEmmanuel Vadot  interconnect-names:
65*8bab661aSEmmanuel Vadot    items:
66*8bab661aSEmmanuel Vadot      - const: dma-mem # read
67*8bab661aSEmmanuel Vadot      - const: write
68*8bab661aSEmmanuel Vadot
69*8bab661aSEmmanuel Vadot  iommus:
70*8bab661aSEmmanuel Vadot    maxItems: 1
71*8bab661aSEmmanuel Vadot
72*8bab661aSEmmanuel Vadot  nvidia,xusb-padctl:
73*8bab661aSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/phandle
74*8bab661aSEmmanuel Vadot    description: phandle to the XUSB pad controller that is used to configure
75*8bab661aSEmmanuel Vadot      the USB pads used by the XHCI controller
76*8bab661aSEmmanuel Vadot
77*8bab661aSEmmanuel Vadot  phys:
78*8bab661aSEmmanuel Vadot    minItems: 1
79*8bab661aSEmmanuel Vadot    maxItems: 8
80*8bab661aSEmmanuel Vadot
81*8bab661aSEmmanuel Vadot  phy-names:
82*8bab661aSEmmanuel Vadot    minItems: 1
83*8bab661aSEmmanuel Vadot    maxItems: 8
84*8bab661aSEmmanuel Vadot    items:
85*8bab661aSEmmanuel Vadot      enum:
86*8bab661aSEmmanuel Vadot        - usb2-0
87*8bab661aSEmmanuel Vadot        - usb2-1
88*8bab661aSEmmanuel Vadot        - usb2-2
89*8bab661aSEmmanuel Vadot        - usb2-3
90*8bab661aSEmmanuel Vadot        - usb3-0
91*8bab661aSEmmanuel Vadot        - usb3-1
92*8bab661aSEmmanuel Vadot        - usb3-2
93*8bab661aSEmmanuel Vadot        - usb3-3
94*8bab661aSEmmanuel Vadot
95*8bab661aSEmmanuel Vadot  power-domains:
96*8bab661aSEmmanuel Vadot    items:
97*8bab661aSEmmanuel Vadot      - description: XUSBC power domain (for Host and USB 2.0)
98*8bab661aSEmmanuel Vadot      - description: XUSBA power domain (for SuperSpeed)
99*8bab661aSEmmanuel Vadot
100*8bab661aSEmmanuel Vadot  power-domain-names:
101*8bab661aSEmmanuel Vadot    items:
102*8bab661aSEmmanuel Vadot      - const: xusb_host
103*8bab661aSEmmanuel Vadot      - const: xusb_ss
104*8bab661aSEmmanuel Vadot
105*8bab661aSEmmanuel Vadot  dvddio-pex-supply:
106*8bab661aSEmmanuel Vadot    description: PCIe/USB3 analog logic power supply. Must supply 1.05 V.
107*8bab661aSEmmanuel Vadot
108*8bab661aSEmmanuel Vadot  hvddio-pex-supply:
109*8bab661aSEmmanuel Vadot    description: High-voltage PCIe/USB3 power supply. Must supply 1.8 V.
110*8bab661aSEmmanuel Vadot
111*8bab661aSEmmanuel Vadot  avdd-usb-supply:
112*8bab661aSEmmanuel Vadot    description: USB controller power supply. Must supply 3.3 V.
113*8bab661aSEmmanuel Vadot
114*8bab661aSEmmanuel Vadot  avdd-pll-utmip-supply:
115*8bab661aSEmmanuel Vadot    description: UTMI PLL power supply. Must supply 1.8 V.
116*8bab661aSEmmanuel Vadot
117*8bab661aSEmmanuel Vadot  avdd-pll-uerefe-supply:
118*8bab661aSEmmanuel Vadot    description: PLLE reference PLL power supply. Must supply 1.05 V.
119*8bab661aSEmmanuel Vadot
120*8bab661aSEmmanuel Vadot  dvdd-usb-ss-pll-supply:
121*8bab661aSEmmanuel Vadot    description: PCIe/USB3 PLL power supply. Must supply 1.05 V.
122*8bab661aSEmmanuel Vadot
123*8bab661aSEmmanuel Vadot  hvdd-usb-ss-pll-e-supply:
124*8bab661aSEmmanuel Vadot    description: High-voltage PLLE power supply. Must supply 1.8 V.
125*8bab661aSEmmanuel Vadot
126*8bab661aSEmmanuel VadotallOf:
127*8bab661aSEmmanuel Vadot  - $ref: usb-xhci.yaml
128*8bab661aSEmmanuel Vadot
129*8bab661aSEmmanuel VadotunevaluatedProperties: false
130*8bab661aSEmmanuel Vadot
131*8bab661aSEmmanuel Vadotexamples:
132*8bab661aSEmmanuel Vadot  - |
133*8bab661aSEmmanuel Vadot    #include <dt-bindings/clock/tegra194-clock.h>
134*8bab661aSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
135*8bab661aSEmmanuel Vadot    #include <dt-bindings/memory/tegra194-mc.h>
136*8bab661aSEmmanuel Vadot    #include <dt-bindings/power/tegra194-powergate.h>
137*8bab661aSEmmanuel Vadot    #include <dt-bindings/reset/tegra194-reset.h>
138*8bab661aSEmmanuel Vadot
139*8bab661aSEmmanuel Vadot    usb@3610000 {
140*8bab661aSEmmanuel Vadot        compatible = "nvidia,tegra194-xusb";
141*8bab661aSEmmanuel Vadot        reg = <0x03610000 0x40000>,
142*8bab661aSEmmanuel Vadot              <0x03600000 0x10000>;
143*8bab661aSEmmanuel Vadot        reg-names = "hcd", "fpci";
144*8bab661aSEmmanuel Vadot
145*8bab661aSEmmanuel Vadot        interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>,
146*8bab661aSEmmanuel Vadot                     <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>;
147*8bab661aSEmmanuel Vadot
148*8bab661aSEmmanuel Vadot        clocks = <&bpmp TEGRA194_CLK_XUSB_CORE_HOST>,
149*8bab661aSEmmanuel Vadot                 <&bpmp TEGRA194_CLK_XUSB_FALCON>,
150*8bab661aSEmmanuel Vadot                 <&bpmp TEGRA194_CLK_XUSB_CORE_SS>,
151*8bab661aSEmmanuel Vadot                 <&bpmp TEGRA194_CLK_XUSB_SS>,
152*8bab661aSEmmanuel Vadot                 <&bpmp TEGRA194_CLK_CLK_M>,
153*8bab661aSEmmanuel Vadot                 <&bpmp TEGRA194_CLK_XUSB_FS>,
154*8bab661aSEmmanuel Vadot                 <&bpmp TEGRA194_CLK_UTMIPLL>,
155*8bab661aSEmmanuel Vadot                 <&bpmp TEGRA194_CLK_CLK_M>,
156*8bab661aSEmmanuel Vadot                 <&bpmp TEGRA194_CLK_PLLE>;
157*8bab661aSEmmanuel Vadot        clock-names = "xusb_host", "xusb_falcon_src",
158*8bab661aSEmmanuel Vadot                      "xusb_ss", "xusb_ss_src", "xusb_hs_src",
159*8bab661aSEmmanuel Vadot                      "xusb_fs_src", "pll_u_480m", "clk_m",
160*8bab661aSEmmanuel Vadot                      "pll_e";
161*8bab661aSEmmanuel Vadot        interconnects = <&mc TEGRA194_MEMORY_CLIENT_XUSB_HOSTR &emc>,
162*8bab661aSEmmanuel Vadot                        <&mc TEGRA194_MEMORY_CLIENT_XUSB_HOSTW &emc>;
163*8bab661aSEmmanuel Vadot        interconnect-names = "dma-mem", "write";
164*8bab661aSEmmanuel Vadot        iommus = <&smmu TEGRA194_SID_XUSB_HOST>;
165*8bab661aSEmmanuel Vadot
166*8bab661aSEmmanuel Vadot        power-domains = <&bpmp TEGRA194_POWER_DOMAIN_XUSBC>,
167*8bab661aSEmmanuel Vadot                        <&bpmp TEGRA194_POWER_DOMAIN_XUSBA>;
168*8bab661aSEmmanuel Vadot        power-domain-names = "xusb_host", "xusb_ss";
169*8bab661aSEmmanuel Vadot
170*8bab661aSEmmanuel Vadot        nvidia,xusb-padctl = <&xusb_padctl>;
171*8bab661aSEmmanuel Vadot
172*8bab661aSEmmanuel Vadot        phys = <&phy_usb2_0>, <&phy_usb2_1>, <&phy_usb2_3>, <&phy_usb3_0>,
173*8bab661aSEmmanuel Vadot               <&phy_usb3_2>, <&phy_usb3_3>;
174*8bab661aSEmmanuel Vadot        phy-names = "usb2-0", "usb2-1", "usb2-3", "usb3-0", "usb3-2", "usb3-3";
175*8bab661aSEmmanuel Vadot    };
176