hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/arch/arm64/boot/dts/nvidia/tegra186-p3310.dtsi
....@@ -4,13 +4,11 @@
44 #include <dt-bindings/mfd/max77620.h>
55
66 / {
7
- model = "NVIDIA Tegra186 P3310 Processor Module";
7
+ model = "NVIDIA Jetson TX2";
88 compatible = "nvidia,p3310", "nvidia,tegra186";
99
1010 aliases {
11
- sdhci0 = "/sdhci@3460000";
12
- sdhci1 = "/sdhci@3400000";
13
- serial0 = &uarta;
11
+ ethernet0 = "/ethernet@2490000";
1412 i2c0 = "/bpmp/i2c";
1513 i2c1 = "/i2c@3160000";
1614 i2c2 = "/i2c@c240000";
....@@ -19,6 +17,9 @@
1917 i2c5 = "/i2c@31c0000";
2018 i2c6 = "/i2c@c250000";
2119 i2c7 = "/i2c@31e0000";
20
+ mmc0 = "/mmc@3460000";
21
+ mmc1 = "/mmc@3400000";
22
+ serial0 = &uarta;
2223 };
2324
2425 chosen {
....@@ -26,7 +27,7 @@
2627 stdout-path = "serial0:115200n8";
2728 };
2829
29
- memory {
30
+ memory@80000000 {
3031 device_type = "memory";
3132 reg = <0x0 0x80000000 0x2 0x00000000>;
3233 };
....@@ -34,7 +35,8 @@
3435 ethernet@2490000 {
3536 status = "okay";
3637
37
- phy-reset-gpios = <&gpio TEGRA_MAIN_GPIO(M, 4) GPIO_ACTIVE_LOW>;
38
+ phy-reset-gpios = <&gpio TEGRA186_MAIN_GPIO(M, 4)
39
+ GPIO_ACTIVE_LOW>;
3840 phy-handle = <&phy>;
3941 phy-mode = "rgmii";
4042
....@@ -46,7 +48,10 @@
4648 compatible = "ethernet-phy-ieee802.3-c22";
4749 reg = <0x0>;
4850 interrupt-parent = <&gpio>;
49
- interrupts = <TEGRA_MAIN_GPIO(M, 5) IRQ_TYPE_LEVEL_LOW>;
51
+ interrupts = <TEGRA186_MAIN_GPIO(M, 5)
52
+ IRQ_TYPE_LEVEL_LOW>;
53
+
54
+ #phy-cells = <0>;
5055 };
5156 };
5257 };
....@@ -65,11 +70,51 @@
6570 power-monitor@40 {
6671 compatible = "ti,ina3221";
6772 reg = <0x40>;
73
+ #address-cells = <1>;
74
+ #size-cells = <0>;
75
+
76
+ channel@0 {
77
+ reg = <0x0>;
78
+ label = "VDD_SYS_GPU";
79
+ shunt-resistor-micro-ohms = <10000>;
80
+ };
81
+
82
+ channel@1 {
83
+ reg = <0x1>;
84
+ label = "VDD_SYS_SOC";
85
+ shunt-resistor-micro-ohms = <10000>;
86
+ };
87
+
88
+ channel@2 {
89
+ reg = <0x2>;
90
+ label = "VDD_3V8_WIFI";
91
+ shunt-resistor-micro-ohms = <10000>;
92
+ };
6893 };
6994
7095 power-monitor@41 {
7196 compatible = "ti,ina3221";
7297 reg = <0x41>;
98
+ #address-cells = <1>;
99
+ #size-cells = <0>;
100
+
101
+ channel@0 {
102
+ reg = <0x0>;
103
+ label = "VDD_IN";
104
+ shunt-resistor-micro-ohms = <5000>;
105
+ };
106
+
107
+ channel@1 {
108
+ reg = <0x1>;
109
+ label = "VDD_SYS_CPU";
110
+ shunt-resistor-micro-ohms = <10000>;
111
+ };
112
+
113
+ channel@2 {
114
+ reg = <0x2>;
115
+ label = "VDD_5V0_DDR";
116
+ shunt-resistor-micro-ohms = <10000>;
117
+ };
73118 };
74119 };
75120
....@@ -90,20 +135,20 @@
90135 };
91136
92137 /* SDMMC1 (SD/MMC) */
93
- sdhci@3400000 {
94
- cd-gpios = <&gpio TEGRA_MAIN_GPIO(P, 5) GPIO_ACTIVE_LOW>;
95
- wp-gpios = <&gpio TEGRA_MAIN_GPIO(P, 4) GPIO_ACTIVE_HIGH>;
138
+ mmc@3400000 {
139
+ cd-gpios = <&gpio TEGRA186_MAIN_GPIO(P, 5) GPIO_ACTIVE_LOW>;
140
+ wp-gpios = <&gpio TEGRA186_MAIN_GPIO(P, 4) GPIO_ACTIVE_HIGH>;
96141
97142 vqmmc-supply = <&vddio_sdmmc1>;
98143 };
99144
100145 /* SDMMC3 (SDIO) */
101
- sdhci@3440000 {
146
+ mmc@3440000 {
102147 status = "okay";
103148 };
104149
105150 /* SDMMC4 (eMMC) */
106
- sdhci@3460000 {
151
+ mmc@3460000 {
107152 status = "okay";
108153 bus-width = <8>;
109154 non-removable;
....@@ -121,6 +166,23 @@
121166 };
122167
123168 i2c@c250000 {
169
+ status = "okay";
170
+
171
+ /* module ID EEPROM */
172
+ eeprom@50 {
173
+ compatible = "atmel,24c02";
174
+ reg = <0x50>;
175
+
176
+ label = "module";
177
+ vcc-supply = <&vdd_1v8>;
178
+ address-width = <8>;
179
+ pagesize = <8>;
180
+ size = <256>;
181
+ read-only;
182
+ };
183
+ };
184
+
185
+ rtc@c2a0000 {
124186 status = "okay";
125187 };
126188
....@@ -162,7 +224,8 @@
162224 compatible = "maxim,max77620";
163225 reg = <0x3c>;
164226
165
- interrupts = <GIC_SPI 209 IRQ_TYPE_LEVEL_HIGH>;
227
+ interrupt-parent = <&pmc>;
228
+ interrupts = <24 IRQ_TYPE_LEVEL_LOW>;
166229 #interrupt-cells = <2>;
167230 interrupt-controller;
168231
....@@ -262,43 +325,30 @@
262325 regulator-name = "AVDD_DSI_CSI_1V2";
263326 regulator-min-microvolt = <1200000>;
264327 regulator-max-microvolt = <1200000>;
265
- /* XXX */
266
- regulator-always-on;
267
- regulator-boot-on;
268328 };
269329
270330 vdd_1v8: sd2 {
271331 regulator-name = "VDD_1V8";
272332 regulator-min-microvolt = <1800000>;
273333 regulator-max-microvolt = <1800000>;
274
- /* XXX */
275
- regulator-always-on;
276
- regulator-boot-on;
277334 };
278335
279336 vdd_3v3_sys: sd3 {
280337 regulator-name = "VDD_3V3_SYS";
281338 regulator-min-microvolt = <3300000>;
282339 regulator-max-microvolt = <3300000>;
283
- /* XXX */
284
- regulator-always-on;
285
- regulator-boot-on;
286340 };
287341
288
- ldo0 {
342
+ vdd_1v8_pll: ldo0 {
289343 regulator-name = "VDD_1V8_AP_PLL";
290344 regulator-min-microvolt = <1800000>;
291345 regulator-max-microvolt = <1800000>;
292
- /* XXX */
293
- regulator-always-on;
294
- regulator-boot-on;
295346 };
296347
297348 ldo2 {
298349 regulator-name = "VDDIO_3V3_AOHV";
299350 regulator-min-microvolt = <3300000>;
300351 regulator-max-microvolt = <3300000>;
301
- /* XXX */
302352 regulator-always-on;
303353 regulator-boot-on;
304354 };
....@@ -325,18 +375,12 @@
325375 regulator-name = "VDD_HDMI_1V05";
326376 regulator-min-microvolt = <1050000>;
327377 regulator-max-microvolt = <1050000>;
328
- /* XXX */
329
- regulator-always-on;
330
- regulator-boot-on;
331378 };
332379
333380 vdd_pex: ldo8 {
334381 regulator-name = "VDD_PEX_1V05";
335382 regulator-min-microvolt = <1050000>;
336383 regulator-max-microvolt = <1050000>;
337
- /* XXX */
338
- regulator-always-on;
339
- regulator-boot-on;
340384 };
341385 };
342386 };
....@@ -349,38 +393,33 @@
349393 method = "smc";
350394 };
351395
352
- regulators {
353
- compatible = "simple-bus";
354
- #address-cells = <1>;
355
- #size-cells = <0>;
396
+ gnd: regulator@0 {
397
+ compatible = "regulator-fixed";
398
+ regulator-name = "GND";
399
+ regulator-min-microvolt = <0>;
400
+ regulator-max-microvolt = <0>;
401
+ regulator-always-on;
402
+ regulator-boot-on;
403
+ };
356404
357
- vdd_5v0_sys: regulator@0 {
358
- compatible = "regulator-fixed";
359
- reg = <0>;
405
+ vdd_5v0_sys: regulator@1 {
406
+ compatible = "regulator-fixed";
407
+ regulator-name = "VDD_5V0_SYS";
408
+ regulator-min-microvolt = <5000000>;
409
+ regulator-max-microvolt = <5000000>;
410
+ regulator-always-on;
411
+ regulator-boot-on;
412
+ };
360413
361
- regulator-name = "VDD_5V0_SYS";
362
- regulator-min-microvolt = <5000000>;
363
- regulator-max-microvolt = <5000000>;
364
- regulator-always-on;
365
- regulator-boot-on;
366
- };
414
+ vdd_1v8_ap: regulator@2 {
415
+ compatible = "regulator-fixed";
416
+ regulator-name = "VDD_1V8_AP";
417
+ regulator-min-microvolt = <1800000>;
418
+ regulator-max-microvolt = <1800000>;
367419
368
- vdd_1v8_ap: regulator@1 {
369
- compatible = "regulator-fixed";
370
- reg = <1>;
420
+ gpio = <&pmic 1 GPIO_ACTIVE_HIGH>;
421
+ enable-active-high;
371422
372
- regulator-name = "VDD_1V8_AP";
373
- regulator-min-microvolt = <1800000>;
374
- regulator-max-microvolt = <1800000>;
375
-
376
- /* XXX */
377
- regulator-always-on;
378
- regulator-boot-on;
379
-
380
- gpio = <&pmic 1 GPIO_ACTIVE_HIGH>;
381
- enable-active-high;
382
-
383
- vin-supply = <&vdd_1v8>;
384
- };
423
+ vin-supply = <&vdd_1v8>;
385424 };
386425 };