forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts
....@@ -2,22 +2,63 @@
22 /dts-v1/;
33
44 #include <dt-bindings/input/linux-event-codes.h>
5
+#include <dt-bindings/input/gpio-keys.h>
56
67 #include "tegra186-p3310.dtsi"
78
89 / {
9
- model = "NVIDIA Tegra186 P2771-0000 Development Board";
10
+ model = "NVIDIA Jetson TX2 Developer Kit";
1011 compatible = "nvidia,p2771-0000", "nvidia,tegra186";
1112
1213 i2c@3160000 {
1314 power-monitor@42 {
1415 compatible = "ti,ina3221";
1516 reg = <0x42>;
17
+ #address-cells = <1>;
18
+ #size-cells = <0>;
19
+
20
+ channel@0 {
21
+ reg = <0x0>;
22
+ label = "VDD_MUX";
23
+ shunt-resistor-micro-ohms = <20000>;
24
+ };
25
+
26
+ channel@1 {
27
+ reg = <0x1>;
28
+ label = "VDD_5V0_IO_SYS";
29
+ shunt-resistor-micro-ohms = <5000>;
30
+ };
31
+
32
+ channel@2 {
33
+ reg = <0x2>;
34
+ label = "VDD_3V3_SYS";
35
+ shunt-resistor-micro-ohms = <10000>;
36
+ };
1637 };
1738
1839 power-monitor@43 {
1940 compatible = "ti,ina3221";
2041 reg = <0x43>;
42
+ #address-cells = <1>;
43
+ #size-cells = <0>;
44
+
45
+ channel@0 {
46
+ reg = <0x0>;
47
+ label = "VDD_3V3_IO_SLP";
48
+ shunt-resistor-micro-ohms = <10000>;
49
+ };
50
+
51
+ channel@1 {
52
+ reg = <0x1>;
53
+ label = "VDD_1V8_IO";
54
+ shunt-resistor-micro-ohms = <10000>;
55
+ };
56
+
57
+ channel@2 {
58
+ reg = <0x2>;
59
+ label = "VDD_M2_IN";
60
+ shunt-resistor-micro-ohms = <10000>;
61
+ };
2162 };
2263
2364 exp1: gpio@74 {
....@@ -25,10 +66,13 @@
2566 reg = <0x74>;
2667
2768 interrupt-parent = <&gpio>;
28
- interrupts = <TEGRA_MAIN_GPIO(Y, 0) GPIO_ACTIVE_LOW>;
69
+ interrupts = <TEGRA186_MAIN_GPIO(Y, 0)
70
+ GPIO_ACTIVE_LOW>;
2971
3072 #gpio-cells = <2>;
3173 gpio-controller;
74
+
75
+ vcc-supply = <&vdd_3v3_sys>;
3276 };
3377
3478 exp2: gpio@77 {
....@@ -36,18 +80,143 @@
3680 reg = <0x77>;
3781
3882 interrupt-parent = <&gpio>;
39
- interrupts = <TEGRA_MAIN_GPIO(Y, 6) GPIO_ACTIVE_LOW>;
83
+ interrupts = <TEGRA186_MAIN_GPIO(Y, 6)
84
+ GPIO_ACTIVE_LOW>;
4085
4186 #gpio-cells = <2>;
4287 gpio-controller;
88
+
89
+ vcc-supply = <&vdd_1v8>;
4390 };
4491 };
4592
4693 /* SDMMC1 (SD/MMC) */
47
- sdhci@3400000 {
94
+ mmc@3400000 {
4895 status = "okay";
4996
5097 vmmc-supply = <&vdd_sd>;
98
+ };
99
+
100
+ hda@3510000 {
101
+ nvidia,model = "jetson-tx2-hda";
102
+ status = "okay";
103
+ };
104
+
105
+ padctl@3520000 {
106
+ status = "okay";
107
+
108
+ avdd-pll-erefeut-supply = <&vdd_1v8_pll>;
109
+ avdd-usb-supply = <&vdd_3v3_sys>;
110
+ vclamp-usb-supply = <&vdd_1v8>;
111
+ vddio-hsic-supply = <&gnd>;
112
+
113
+ pads {
114
+ usb2 {
115
+ status = "okay";
116
+
117
+ lanes {
118
+ micro_b: usb2-0 {
119
+ nvidia,function = "xusb";
120
+ status = "okay";
121
+ };
122
+
123
+ usb2-1 {
124
+ nvidia,function = "xusb";
125
+ status = "okay";
126
+ };
127
+
128
+ usb2-2 {
129
+ nvidia,function = "xusb";
130
+ status = "okay";
131
+ };
132
+ };
133
+ };
134
+
135
+ usb3 {
136
+ status = "okay";
137
+
138
+ lanes {
139
+ usb3-0 {
140
+ nvidia,function = "xusb";
141
+ status = "okay";
142
+ };
143
+
144
+ usb3-1 {
145
+ nvidia,function = "xusb";
146
+ status = "okay";
147
+ };
148
+
149
+ usb3-2 {
150
+ nvidia,function = "xusb";
151
+ status = "okay";
152
+ };
153
+ };
154
+ };
155
+ };
156
+
157
+ ports {
158
+ usb2-0 {
159
+ status = "okay";
160
+ mode = "otg";
161
+ vbus-supply = <&vdd_usb0>;
162
+ usb-role-switch;
163
+
164
+ connector {
165
+ compatible = "gpio-usb-b-connector",
166
+ "usb-b-connector";
167
+ label = "micro-USB";
168
+ type = "micro";
169
+ vbus-gpios = <&gpio
170
+ TEGRA186_MAIN_GPIO(X, 7)
171
+ GPIO_ACTIVE_LOW>;
172
+ id-gpios = <&pmic 0 GPIO_ACTIVE_HIGH>;
173
+ };
174
+ };
175
+
176
+ usb2-1 {
177
+ status = "okay";
178
+ mode = "host";
179
+
180
+ vbus-supply = <&vdd_usb1>;
181
+ };
182
+
183
+ usb3-0 {
184
+ nvidia,usb2-companion = <1>;
185
+ vbus-supply = <&vdd_usb1>;
186
+ status = "okay";
187
+ };
188
+ };
189
+ };
190
+
191
+ usb@3530000 {
192
+ status = "okay";
193
+
194
+ phys = <&{/padctl@3520000/pads/usb2/lanes/usb2-0}>,
195
+ <&{/padctl@3520000/pads/usb2/lanes/usb2-1}>,
196
+ <&{/padctl@3520000/pads/usb3/lanes/usb3-0}>;
197
+ phy-names = "usb2-0", "usb2-1", "usb3-0";
198
+ };
199
+
200
+ usb@3550000 {
201
+ status = "okay";
202
+
203
+ phys = <&micro_b>;
204
+ phy-names = "usb2-0";
205
+ };
206
+
207
+ i2c@c250000 {
208
+ /* carrier board ID EEPROM */
209
+ eeprom@57 {
210
+ compatible = "atmel,24c02";
211
+ reg = <0x57>;
212
+
213
+ label = "system";
214
+ vcc-supply = <&vdd_1v8>;
215
+ address-width = <8>;
216
+ pagesize = <8>;
217
+ size = <256>;
218
+ read-only;
219
+ };
51220 };
52221
53222 pcie@10003000 {
....@@ -89,21 +258,26 @@
89258 status = "disabled";
90259 };
91260
261
+ /* DP on E3320 */
92262 sor@15540000 {
93
- status = "disabled";
263
+ status = "okay";
94264
95
- nvidia,dpaux = <&dpaux1>;
265
+ avdd-io-hdmi-dp-supply = <&vdd_hdmi_1v05>;
266
+ vdd-hdmi-dp-pll-supply = <&vdd_1v8_ap>;
267
+
268
+ nvidia,dpaux = <&dpaux>;
96269 };
97270
98271 sor@15580000 {
99272 status = "okay";
100273
101
- avdd-io-supply = <&vdd_hdmi_1v05>;
102
- vdd-pll-supply = <&vdd_1v8_ap>;
274
+ avdd-io-hdmi-dp-supply = <&vdd_hdmi_1v05>;
275
+ vdd-hdmi-dp-pll-supply = <&vdd_1v8_ap>;
103276 hdmi-supply = <&vdd_hdmi>;
104277
105278 nvidia,ddc-i2c-bus = <&ddc>;
106
- nvidia,hpd-gpio = <&gpio TEGRA_MAIN_GPIO(P, 1) GPIO_ACTIVE_LOW>;
279
+ nvidia,hpd-gpio = <&gpio TEGRA186_MAIN_GPIO(P, 1)
280
+ GPIO_ACTIVE_LOW>;
107281 };
108282
109283 dpaux@155c0000 {
....@@ -116,17 +290,18 @@
116290
117291 power {
118292 label = "Power";
119
- gpios = <&gpio_aon TEGRA_AON_GPIO(FF, 0)
293
+ gpios = <&gpio_aon TEGRA186_AON_GPIO(FF, 0)
120294 GPIO_ACTIVE_LOW>;
121295 linux,input-type = <EV_KEY>;
122296 linux,code = <KEY_POWER>;
123297 debounce-interval = <10>;
298
+ wakeup-event-action = <EV_ACT_ASSERTED>;
124299 wakeup-source;
125300 };
126301
127302 volume-up {
128303 label = "Volume Up";
129
- gpios = <&gpio_aon TEGRA_AON_GPIO(FF, 1)
304
+ gpios = <&gpio_aon TEGRA186_AON_GPIO(FF, 1)
130305 GPIO_ACTIVE_LOW>;
131306 linux,input-type = <EV_KEY>;
132307 linux,code = <KEY_VOLUMEUP>;
....@@ -135,7 +310,7 @@
135310
136311 volume-down {
137312 label = "Volume Down";
138
- gpios = <&gpio_aon TEGRA_AON_GPIO(FF, 2)
313
+ gpios = <&gpio_aon TEGRA186_AON_GPIO(FF, 2)
139314 GPIO_ACTIVE_LOW>;
140315 linux,input-type = <EV_KEY>;
141316 linux,code = <KEY_VOLUMEDOWN>;
....@@ -143,33 +318,51 @@
143318 };
144319 };
145320
146
- regulators {
147
- vdd_sd: regulator@100 {
148
- compatible = "regulator-fixed";
149
- reg = <100>;
321
+ vdd_sd: regulator@100 {
322
+ compatible = "regulator-fixed";
323
+ regulator-name = "SD_CARD_SW_PWR";
324
+ regulator-min-microvolt = <3300000>;
325
+ regulator-max-microvolt = <3300000>;
150326
151
- regulator-name = "SD_CARD_SW_PWR";
152
- regulator-min-microvolt = <3300000>;
153
- regulator-max-microvolt = <3300000>;
327
+ gpio = <&gpio TEGRA186_MAIN_GPIO(P, 6) GPIO_ACTIVE_HIGH>;
328
+ enable-active-high;
154329
155
- gpio = <&gpio TEGRA_MAIN_GPIO(P, 6) GPIO_ACTIVE_HIGH>;
156
- enable-active-high;
330
+ vin-supply = <&vdd_3v3_sys>;
331
+ };
157332
158
- vin-supply = <&vdd_3v3_sys>;
159
- };
333
+ vdd_hdmi: regulator@101 {
334
+ compatible = "regulator-fixed";
335
+ regulator-name = "VDD_HDMI_5V0";
336
+ regulator-min-microvolt = <5000000>;
337
+ regulator-max-microvolt = <5000000>;
160338
161
- vdd_hdmi: regulator@101 {
162
- compatible = "regulator-fixed";
163
- reg = <101>;
339
+ gpio = <&exp1 14 GPIO_ACTIVE_HIGH>;
340
+ enable-active-high;
164341
165
- regulator-name = "VDD_HDMI_5V0";
166
- regulator-min-microvolt = <5000000>;
167
- regulator-max-microvolt = <5000000>;
342
+ vin-supply = <&vdd_5v0_sys>;
343
+ };
168344
169
- gpio = <&exp1 14 GPIO_ACTIVE_HIGH>;
170
- enable-active-high;
345
+ vdd_usb0: regulator@102 {
346
+ compatible = "regulator-fixed";
347
+ regulator-name = "VDD_USB0";
348
+ regulator-min-microvolt = <5000000>;
349
+ regulator-max-microvolt = <5000000>;
171350
172
- vin-supply = <&vdd_5v0_sys>;
173
- };
351
+ gpio = <&gpio TEGRA186_MAIN_GPIO(L, 4) GPIO_ACTIVE_HIGH>;
352
+ enable-active-high;
353
+
354
+ vin-supply = <&vdd_5v0_sys>;
355
+ };
356
+
357
+ vdd_usb1: regulator@103 {
358
+ compatible = "regulator-fixed";
359
+ regulator-name = "VDD_USB1";
360
+ regulator-min-microvolt = <5000000>;
361
+ regulator-max-microvolt = <5000000>;
362
+
363
+ gpio = <&gpio TEGRA186_MAIN_GPIO(L, 5) GPIO_ACTIVE_HIGH>;
364
+ enable-active-high;
365
+
366
+ vin-supply = <&vdd_5v0_sys>;
174367 };
175368 };