]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - src/arm64/nvidia/tegra194-p2888.dtsi
Import DTS from Linux 5.8
[FreeBSD/FreeBSD.git] / src / arm64 / nvidia / tegra194-p2888.dtsi
1 // SPDX-License-Identifier: GPL-2.0
2 #include "tegra194.dtsi"
3
4 #include <dt-bindings/mfd/max77620.h>
5
6 / {
7         model = "NVIDIA Jetson AGX Xavier";
8         compatible = "nvidia,p2888", "nvidia,tegra194";
9
10         aliases {
11                 ethernet0 = "/cbb@0/ethernet@2490000";
12                 sdhci0 = "/cbb@0/sdhci@3460000";
13                 sdhci1 = "/cbb@0/sdhci@3400000";
14                 serial0 = &tcu;
15                 i2c0 = "/bpmp/i2c";
16                 i2c1 = "/cbb@0/i2c@3160000";
17                 i2c2 = "/cbb@0/i2c@c240000";
18                 i2c3 = "/cbb@0/i2c@3180000";
19                 i2c4 = "/cbb@0/i2c@3190000";
20                 i2c5 = "/cbb@0/i2c@31c0000";
21                 i2c6 = "/cbb@0/i2c@c250000";
22                 i2c7 = "/cbb@0/i2c@31e0000";
23         };
24
25         chosen {
26                 bootargs = "console=ttyS0,115200n8";
27                 stdout-path = "serial0:115200n8";
28         };
29
30         cbb@0 {
31                 ethernet@2490000 {
32                         status = "okay";
33
34                         phy-reset-gpios = <&gpio TEGRA194_MAIN_GPIO(G, 5) GPIO_ACTIVE_LOW>;
35                         phy-handle = <&phy>;
36                         phy-mode = "rgmii-id";
37
38                         mdio {
39                                 #address-cells = <1>;
40                                 #size-cells = <0>;
41
42                                 phy: phy@0 {
43                                         compatible = "ethernet-phy-ieee802.3-c22";
44                                         reg = <0x0>;
45                                         interrupt-parent = <&gpio>;
46                                         interrupts = <TEGRA194_MAIN_GPIO(G, 4) IRQ_TYPE_LEVEL_LOW>;
47                                 };
48                         };
49                 };
50
51                 memory-controller@2c00000 {
52                         status = "okay";
53                 };
54
55                 serial@3110000 {
56                         status = "okay";
57                 };
58
59                 /* SDMMC1 (SD/MMC) */
60                 sdhci@3400000 {
61                         cd-gpios = <&gpio TEGRA194_MAIN_GPIO(A, 0) GPIO_ACTIVE_LOW>;
62                 };
63
64                 /* SDMMC4 (eMMC) */
65                 sdhci@3460000 {
66                         status = "okay";
67                         bus-width = <8>;
68                         non-removable;
69
70                         vqmmc-supply = <&vdd_1v8ls>;
71                         vmmc-supply = <&vdd_emmc_3v3>;
72                 };
73
74                 padctl@3520000 {
75                         avdd-usb-supply = <&vdd_usb_3v3>;
76                         vclamp-usb-supply = <&vdd_1v8ao>;
77
78                         ports {
79                                 usb2-1 {
80                                         vbus-supply = <&vdd_5v0_sys>;
81                                 };
82
83                                 usb2-3 {
84                                         vbus-supply = <&vdd_5v_sata>;
85                                 };
86
87                                 usb3-0 {
88                                         vbus-supply = <&vdd_5v0_sys>;
89                                 };
90
91                                 usb3-3 {
92                                         vbus-supply = <&vdd_5v0_sys>;
93                                 };
94                         };
95                 };
96
97                 rtc@c2a0000 {
98                         status = "okay";
99                 };
100
101                 pmc@c360000 {
102                         nvidia,invert-interrupt;
103                 };
104         };
105
106         bpmp {
107                 i2c {
108                         status = "okay";
109
110                         pmic: pmic@3c {
111                                 compatible = "maxim,max20024";
112                                 reg = <0x3c>;
113
114                                 interrupt-parent = <&pmc>;
115                                 interrupts = <24 IRQ_TYPE_LEVEL_LOW>;
116                                 #interrupt-cells = <2>;
117                                 interrupt-controller;
118
119                                 #gpio-cells = <2>;
120                                 gpio-controller;
121
122                                 pinctrl-names = "default";
123                                 pinctrl-0 = <&max20024_default>;
124
125                                 max20024_default: pinmux {
126                                         gpio0 {
127                                                 pins = "gpio0";
128                                                 function = "gpio";
129                                         };
130
131                                         gpio1 {
132                                                 pins = "gpio1";
133                                                 function = "fps-out";
134                                                 maxim,active-fps-source = <MAX77620_FPS_SRC_DEF>;
135                                         };
136
137                                         gpio2 {
138                                                 pins = "gpio2";
139                                                 function = "fps-out";
140                                                 maxim,active-fps-source = <MAX77620_FPS_SRC_DEF>;
141                                         };
142
143                                         gpio3 {
144                                                 pins = "gpio3";
145                                                 function = "fps-out";
146                                                 maxim,active-fps-source = <MAX77620_FPS_SRC_DEF>;
147                                         };
148
149                                         gpio4 {
150                                                 pins = "gpio4";
151                                                 function = "32k-out1";
152                                                 drive-push-pull = <1>;
153                                         };
154
155                                         gpio6 {
156                                                 pins = "gpio6";
157                                                 function = "gpio";
158                                                 drive-push-pull = <1>;
159                                         };
160
161                                         gpio7 {
162                                                 pins = "gpio7";
163                                                 function = "gpio";
164                                                 drive-push-pull = <0>;
165                                         };
166                                 };
167
168                                 fps {
169                                         fps0 {
170                                                 maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN0>;
171                                                 maxim,shutdown-fps-time-period-us = <640>;
172                                         };
173
174                                         fps1 {
175                                                 maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN1>;
176                                                 maxim,shutdown-fps-time-period-us = <640>;
177                                                 maxim,device-state-on-disabled-event = <MAX77620_FPS_INACTIVE_STATE_SLEEP>;
178                                         };
179
180                                         fps2 {
181                                                 maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN0>;
182                                                 maxim,shutdown-fps-time-period-us = <640>;
183                                         };
184                                 };
185
186                                 regulators {
187                                         in-sd0-supply = <&vdd_5v0_sys>;
188                                         in-sd1-supply = <&vdd_5v0_sys>;
189                                         in-sd2-supply = <&vdd_5v0_sys>;
190                                         in-sd3-supply = <&vdd_5v0_sys>;
191                                         in-sd4-supply = <&vdd_5v0_sys>;
192
193                                         in-ldo0-1-supply = <&vdd_5v0_sys>;
194                                         in-ldo2-supply = <&vdd_5v0_sys>;
195                                         in-ldo3-5-supply = <&vdd_5v0_sys>;
196                                         in-ldo4-6-supply = <&vdd_5v0_sys>;
197                                         in-ldo7-8-supply = <&vdd_1v8ls>;
198
199                                         vdd_1v0: sd0 {
200                                                 regulator-name = "VDDIO_SYS_1V0";
201                                                 regulator-min-microvolt = <1000000>;
202                                                 regulator-max-microvolt = <1000000>;
203                                                 regulator-always-on;
204                                                 regulator-boot-on;
205                                         };
206
207                                         vdd_1v8hs: sd1 {
208                                                 regulator-name = "VDDIO_SYS_1V8HS";
209                                                 regulator-min-microvolt = <1800000>;
210                                                 regulator-max-microvolt = <1800000>;
211                                                 regulator-always-on;
212                                                 regulator-boot-on;
213                                         };
214
215                                         vdd_1v8ls: sd2 {
216                                                 regulator-name = "VDDIO_SYS_1V8LS";
217                                                 regulator-min-microvolt = <1800000>;
218                                                 regulator-max-microvolt = <1800000>;
219                                                 regulator-always-on;
220                                                 regulator-boot-on;
221                                         };
222
223                                         vdd_1v8ao: sd3 {
224                                                 regulator-name = "VDDIO_AO_1V8";
225                                                 regulator-min-microvolt = <1800000>;
226                                                 regulator-max-microvolt = <1800000>;
227                                                 regulator-always-on;
228                                                 regulator-boot-on;
229                                         };
230
231                                         sd4 {
232                                                 regulator-name = "VDD_DDR_1V1";
233                                                 regulator-min-microvolt = <1100000>;
234                                                 regulator-max-microvolt = <1100000>;
235                                                 regulator-always-on;
236                                                 regulator-boot-on;
237                                         };
238
239                                         ldo0 {
240                                                 regulator-name = "VDD_RTC";
241                                                 regulator-min-microvolt = <800000>;
242                                                 regulator-max-microvolt = <800000>;
243                                                 regulator-always-on;
244                                                 regulator-boot-on;
245                                         };
246
247                                         ldo2 {
248                                                 regulator-name = "VDDIO_AO_3V3";
249                                                 regulator-min-microvolt = <3300000>;
250                                                 regulator-max-microvolt = <3300000>;
251                                                 regulator-always-on;
252                                                 regulator-boot-on;
253                                         };
254
255                                         vdd_emmc_3v3: ldo3 {
256                                                 regulator-name = "VDD_EMMC_3V3";
257                                                 regulator-min-microvolt = <3300000>;
258                                                 regulator-max-microvolt = <3300000>;
259                                         };
260
261                                         vdd_usb_3v3: ldo5 {
262                                                 regulator-name = "VDD_USB_3V3";
263                                                 regulator-min-microvolt = <3300000>;
264                                                 regulator-max-microvolt = <3300000>;
265                                         };
266
267                                         ldo6 {
268                                                 regulator-name = "VDD_SDIO_3V3";
269                                                 regulator-min-microvolt = <3300000>;
270                                                 regulator-max-microvolt = <3300000>;
271                                         };
272
273                                         ldo7 {
274                                                 regulator-name = "AVDD_CSI_1V2";
275                                                 regulator-min-microvolt = <1200000>;
276                                                 regulator-max-microvolt = <1200000>;
277                                         };
278                                 };
279                         };
280
281                         temperature-sensor@4c {
282                                 compatible = "ti,tmp451";
283                                 reg = <0x4c>;
284
285                                 interrupt-parent = <&gpio>;
286                                 interrupts = <TEGRA194_MAIN_GPIO(H, 2)
287                                               IRQ_TYPE_LEVEL_LOW>;
288                                 vcc-supply = <&vdd_1v8ls>;
289
290                                 #thermal-sensor-cells = <1>;
291                         };
292                 };
293         };
294
295         regulators {
296                 compatible = "simple-bus";
297                 #address-cells = <1>;
298                 #size-cells = <0>;
299
300                 vdd_5v0_sys: regulator@0 {
301                         compatible = "regulator-fixed";
302                         reg = <0>;
303
304                         regulator-name = "VIN_SYS_5V0";
305                         regulator-min-microvolt = <5000000>;
306                         regulator-max-microvolt = <5000000>;
307                         regulator-always-on;
308                         regulator-boot-on;
309                 };
310
311                 vdd_hdmi: regulator@1 {
312                         compatible = "regulator-fixed";
313                         reg = <1>;
314
315                         regulator-name = "VDD_5V0_HDMI_CON";
316                         regulator-min-microvolt = <5000000>;
317                         regulator-max-microvolt = <5000000>;
318                         gpio = <&gpio TEGRA194_MAIN_GPIO(A, 3) GPIO_ACTIVE_HIGH>;
319                         enable-active-high;
320                 };
321
322                 vdd_3v3_pcie: regulator@2 {
323                         compatible = "regulator-fixed";
324                         reg = <2>;
325
326                         regulator-name = "PEX_3V3";
327                         regulator-min-microvolt = <3300000>;
328                         regulator-max-microvolt = <3300000>;
329                         gpio = <&gpio TEGRA194_MAIN_GPIO(Z, 2) GPIO_ACTIVE_HIGH>;
330                         regulator-boot-on;
331                         enable-active-high;
332                 };
333
334                 vdd_12v_pcie: regulator@3 {
335                         compatible = "regulator-fixed";
336                         reg = <3>;
337
338                         regulator-name = "VDD_12V";
339                         regulator-min-microvolt = <1200000>;
340                         regulator-max-microvolt = <1200000>;
341                         gpio = <&gpio TEGRA194_MAIN_GPIO(A, 1) GPIO_ACTIVE_HIGH>;
342                         regulator-boot-on;
343                 };
344
345                 vdd_5v_sata: regulator@4 {
346                         compatible = "regulator-fixed";
347                         reg = <4>;
348
349                         regulator-name = "VDD_5V_SATA";
350                         regulator-min-microvolt = <5000000>;
351                         regulator-max-microvolt = <5000000>;
352                         gpio = <&gpio TEGRA194_MAIN_GPIO(Z, 1) GPIO_ACTIVE_HIGH>;
353                         enable-active-high;
354                 };
355         };
356 };