-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtegra234-antmicro-job-usb.dtsi
More file actions
164 lines (154 loc) · 3.88 KB
/
tegra234-antmicro-job-usb.dtsi
File metadata and controls
164 lines (154 loc) · 3.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
/*
* Copyright (c) 2023 Antmicro <www.antmicro.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*/
/*
* Placeholders for USB PD and DRP controllers on SYS I2C bus
* (not implemented)
*/
&gen2_i2c {
/*
* TPS65988 dual-port USB-C Power Delivery controller
* port1 is USBC3 (J3) @ i2c_addr=h23
* port2 is USBC0 (J4) @ i2c_addr=h27
*/
job_usbc3_pdc: tps65988@23 {
compatible = "ti,tps6598x";
status = "disabled";
reg = <0x23>;
};
job_usbc0_pdc: tps65988@27 {
compatible = "ti,tps6598x";
status = "disabled";
reg = <0x27>;
};
/*
* HD3SS3220 dual role port controller for USBC1 port
* NOTE: this is just a DRD/DRP without Power Delivery
*/
job_usbc1_drpc: hd3ss3220@47 {
compatible = "ti,hd3ss3220";
status = "disabled";
reg = <0x47>;
};
};
/ {
bus@0 {
xusb_padctl: padctl@3520000 {
/*
* See Documentation/devicetree/bindings/phy/
* nvidia,tegra124-xusb-padctl.txt for reference
*/
status = "okay";
pads {
usb2 {
lanes {
usb2-0 {
nvidia,function = "xusb";
status = "okay";
};
usb2-1 {
nvidia,function = "xusb";
status = "okay";
};
usb2-2 {
nvidia,function = "xusb";
status = "okay";
};
};
};
usb3 {
lanes {
usb3-0 {
nvidia,function = "xusb";
status = "okay";
};
usb3-1 {
nvidia,function = "xusb";
status = "okay";
};
usb3-2 {
nvidia,function = "xusb";
status = "okay";
};
};
};
};
ports {
/* USB-C 0 */
usb2-2 {
mode = "host";
/* Delegate switching to HW (consider VBUS always on) */
vbus-supply = <&job_reg_5v>;
status = "okay";
connector {
compatible = "usb-c-connector";
label = "USB-C 0";
};
};
usb3-0 {
nvidia,usb2-companion = <2>;
status = "okay";
};
/* USB-C 1 (also functions as a Jetson recovery port) */
usb2-0 {
mode = "otg";
status = "okay";
/* Delegate switching to HW (consider VBUS always on) */
vbus-supply = <&job_reg_5v>;
usb-role-switch;
connector {
compatible = "gpio-usb-b-connector", "usb-b-connector";
label = "micro-USB";
type = "micro";
vbus-gpios = <&gpio TEGRA234_MAIN_GPIO(Z, 1) GPIO_ACTIVE_LOW>;
id-gpios = <&job_gpio_expander 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
};
};
usb3-2 {
nvidia,usb2-companion = <0>;
status = "okay";
};
/* USB on M.2 & extension connector */
usb2-1 {
mode = "host";
/* VBUS is always on */
vbus-supply = <&job_reg_5v>;
status = "okay";
};
usb3-1 {
nvidia,usb2-companion = <1>;
status = "okay";
};
};
};
/* USB Device controller */
tegra_xudc: usb@3550000 {
status = "okay";
phys = <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-0}>,
<&{/bus@0/padctl@3520000/pads/usb3/lanes/usb3-2}>;
phy-names = "usb2-0", "usb3-2";
nvidia,xusb-padctl = <&xusb_padctl>;
};
/* USB Host controller */
tegra_xhci: usb@3610000 {
status = "okay";
phys = <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-0}>,
<&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-1}>,
<&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-2}>,
<&{/bus@0/padctl@3520000/pads/usb3/lanes/usb3-0}>,
<&{/bus@0/padctl@3520000/pads/usb3/lanes/usb3-1}>,
<&{/bus@0/padctl@3520000/pads/usb3/lanes/usb3-2}>;
phy-names = "usb2-0", "usb2-1", "usb2-2", "usb3-0", "usb3-1", "usb3-2";
nvidia,xusb-padctl = <&xusb_padctl>;
};
};
};