Loading...
1// SPDX-License-Identifier: GPL-2.0
2/dts-v1/;
3
4#include <dt-bindings/input/linux-event-codes.h>
5
6#include "tegra186-p3310.dtsi"
7
8/ {
9 model = "NVIDIA Tegra186 P2771-0000 Development Board";
10 compatible = "nvidia,p2771-0000", "nvidia,tegra186";
11
12 i2c@3160000 {
13 power-monitor@42 {
14 compatible = "ti,ina3221";
15 reg = <0x42>;
16 };
17
18 power-monitor@43 {
19 compatible = "ti,ina3221";
20 reg = <0x43>;
21 };
22
23 exp1: gpio@74 {
24 compatible = "ti,tca9539";
25 reg = <0x74>;
26
27 interrupt-parent = <&gpio>;
28 interrupts = <TEGRA_MAIN_GPIO(Y, 0) GPIO_ACTIVE_LOW>;
29
30 #gpio-cells = <2>;
31 gpio-controller;
32 };
33
34 exp2: gpio@77 {
35 compatible = "ti,tca9539";
36 reg = <0x77>;
37
38 interrupt-parent = <&gpio>;
39 interrupts = <TEGRA_MAIN_GPIO(Y, 6) GPIO_ACTIVE_LOW>;
40
41 #gpio-cells = <2>;
42 gpio-controller;
43 };
44 };
45
46 /* SDMMC1 (SD/MMC) */
47 sdhci@3400000 {
48 status = "okay";
49
50 vmmc-supply = <&vdd_sd>;
51 };
52
53 pcie@10003000 {
54 status = "okay";
55
56 dvdd-pex-supply = <&vdd_pex>;
57 hvdd-pex-pll-supply = <&vdd_1v8>;
58 hvdd-pex-supply = <&vdd_1v8>;
59 vddio-pexctl-aud-supply = <&vdd_1v8>;
60
61 pci@1,0 {
62 nvidia,num-lanes = <4>;
63 status = "okay";
64 };
65
66 pci@2,0 {
67 nvidia,num-lanes = <0>;
68 status = "disabled";
69 };
70
71 pci@3,0 {
72 nvidia,num-lanes = <1>;
73 status = "disabled";
74 };
75 };
76
77 host1x@13e00000 {
78 status = "okay";
79
80 dpaux@15040000 {
81 status = "okay";
82 };
83
84 display-hub@15200000 {
85 status = "okay";
86 };
87
88 dsi@15300000 {
89 status = "disabled";
90 };
91
92 sor@15540000 {
93 status = "disabled";
94
95 nvidia,dpaux = <&dpaux1>;
96 };
97
98 sor@15580000 {
99 status = "okay";
100
101 avdd-io-supply = <&vdd_hdmi_1v05>;
102 vdd-pll-supply = <&vdd_1v8_ap>;
103 hdmi-supply = <&vdd_hdmi>;
104
105 nvidia,ddc-i2c-bus = <&ddc>;
106 nvidia,hpd-gpio = <&gpio TEGRA_MAIN_GPIO(P, 1) GPIO_ACTIVE_LOW>;
107 };
108
109 dpaux@155c0000 {
110 status = "okay";
111 };
112 };
113
114 gpio-keys {
115 compatible = "gpio-keys";
116
117 power {
118 label = "Power";
119 gpios = <&gpio_aon TEGRA_AON_GPIO(FF, 0)
120 GPIO_ACTIVE_LOW>;
121 linux,input-type = <EV_KEY>;
122 linux,code = <KEY_POWER>;
123 debounce-interval = <10>;
124 wakeup-source;
125 };
126
127 volume-up {
128 label = "Volume Up";
129 gpios = <&gpio_aon TEGRA_AON_GPIO(FF, 1)
130 GPIO_ACTIVE_LOW>;
131 linux,input-type = <EV_KEY>;
132 linux,code = <KEY_VOLUMEUP>;
133 debounce-interval = <10>;
134 };
135
136 volume-down {
137 label = "Volume Down";
138 gpios = <&gpio_aon TEGRA_AON_GPIO(FF, 2)
139 GPIO_ACTIVE_LOW>;
140 linux,input-type = <EV_KEY>;
141 linux,code = <KEY_VOLUMEDOWN>;
142 debounce-interval = <10>;
143 };
144 };
145
146 regulators {
147 vdd_sd: regulator@100 {
148 compatible = "regulator-fixed";
149 reg = <100>;
150
151 regulator-name = "SD_CARD_SW_PWR";
152 regulator-min-microvolt = <3300000>;
153 regulator-max-microvolt = <3300000>;
154
155 gpio = <&gpio TEGRA_MAIN_GPIO(P, 6) GPIO_ACTIVE_HIGH>;
156 enable-active-high;
157
158 vin-supply = <&vdd_3v3_sys>;
159 };
160
161 vdd_hdmi: regulator@101 {
162 compatible = "regulator-fixed";
163 reg = <101>;
164
165 regulator-name = "VDD_HDMI_5V0";
166 regulator-min-microvolt = <5000000>;
167 regulator-max-microvolt = <5000000>;
168
169 gpio = <&exp1 14 GPIO_ACTIVE_HIGH>;
170 enable-active-high;
171
172 vin-supply = <&vdd_5v0_sys>;
173 };
174 };
175};
1// SPDX-License-Identifier: GPL-2.0
2/dts-v1/;
3
4#include <dt-bindings/input/linux-event-codes.h>
5#include <dt-bindings/input/gpio-keys.h>
6
7#include "tegra186-p3310.dtsi"
8
9/ {
10 model = "NVIDIA Jetson TX2 Developer Kit";
11 compatible = "nvidia,p2771-0000", "nvidia,tegra186";
12
13 aconnect {
14 status = "okay";
15
16 dma-controller@2930000 {
17 status = "okay";
18 };
19
20 interrupt-controller@2a40000 {
21 status = "okay";
22 };
23 };
24
25 i2c@3160000 {
26 power-monitor@42 {
27 compatible = "ti,ina3221";
28 reg = <0x42>;
29 #address-cells = <1>;
30 #size-cells = <0>;
31
32 channel@0 {
33 reg = <0x0>;
34 label = "VDD_MUX";
35 shunt-resistor-micro-ohms = <20000>;
36 };
37
38 channel@1 {
39 reg = <0x1>;
40 label = "VDD_5V0_IO_SYS";
41 shunt-resistor-micro-ohms = <5000>;
42 };
43
44 channel@2 {
45 reg = <0x2>;
46 label = "VDD_3V3_SYS";
47 shunt-resistor-micro-ohms = <10000>;
48 };
49 };
50
51 power-monitor@43 {
52 compatible = "ti,ina3221";
53 reg = <0x43>;
54 #address-cells = <1>;
55 #size-cells = <0>;
56
57 channel@0 {
58 reg = <0x0>;
59 label = "VDD_3V3_IO_SLP";
60 shunt-resistor-micro-ohms = <10000>;
61 };
62
63 channel@1 {
64 reg = <0x1>;
65 label = "VDD_1V8_IO";
66 shunt-resistor-micro-ohms = <10000>;
67 };
68
69 channel@2 {
70 reg = <0x2>;
71 label = "VDD_M2_IN";
72 shunt-resistor-micro-ohms = <10000>;
73 };
74 };
75
76 exp1: gpio@74 {
77 compatible = "ti,tca9539";
78 reg = <0x74>;
79
80 interrupt-parent = <&gpio>;
81 interrupts = <TEGRA186_MAIN_GPIO(Y, 0)
82 GPIO_ACTIVE_LOW>;
83
84 #gpio-cells = <2>;
85 gpio-controller;
86
87 vcc-supply = <&vdd_3v3_sys>;
88 };
89
90 exp2: gpio@77 {
91 compatible = "ti,tca9539";
92 reg = <0x77>;
93
94 interrupt-parent = <&gpio>;
95 interrupts = <TEGRA186_MAIN_GPIO(Y, 6)
96 GPIO_ACTIVE_LOW>;
97
98 #gpio-cells = <2>;
99 gpio-controller;
100
101 vcc-supply = <&vdd_1v8>;
102 };
103 };
104
105 /* SDMMC1 (SD/MMC) */
106 sdhci@3400000 {
107 status = "okay";
108
109 vmmc-supply = <&vdd_sd>;
110 };
111
112 hda@3510000 {
113 nvidia,model = "jetson-tx2-hda";
114 status = "okay";
115 };
116
117 padctl@3520000 {
118 status = "disabled";
119
120 avdd-pll-erefeut-supply = <&vdd_1v8_pll>;
121 avdd-usb-supply = <&vdd_3v3_sys>;
122 dvdd-pex-supply = <&vdd_pex>;
123 dvdd-pex-pll-supply = <&vdd_pex>;
124 hvdd-pex-supply = <&vdd_1v8>;
125 hvdd-pex-pll-supply = <&vdd_1v8>;
126 vclamp-usb-supply = <&vdd_1v8>;
127 vddio-hsic-supply = <&gnd>;
128
129 pads {
130 usb2 {
131 status = "okay";
132
133 lanes {
134 usb2-0 {
135 nvidia,function = "xusb";
136 status = "okay";
137 };
138
139 usb2-1 {
140 nvidia,function = "xusb";
141 status = "okay";
142 };
143
144 usb2-2 {
145 nvidia,function = "xusb";
146 status = "okay";
147 };
148 };
149 };
150
151 usb3 {
152 status = "okay";
153
154 lanes {
155 usb3-0 {
156 nvidia,function = "xusb";
157 status = "okay";
158 };
159
160 usb3-1 {
161 nvidia,function = "xusb";
162 status = "okay";
163 };
164
165 usb3-2 {
166 nvidia,function = "xusb";
167 status = "okay";
168 };
169 };
170 };
171 };
172
173 ports {
174 usb2-0 {
175 status = "okay";
176 mode = "otg";
177
178 vbus-supply = <&vdd_usb0>;
179 };
180
181 usb2-1 {
182 status = "okay";
183 mode = "host";
184
185 vbus-supply = <&vdd_usb1>;
186 };
187
188 usb3-0 {
189 nvidia,usb2-companion = <1>;
190 status = "okay";
191 };
192 };
193 };
194
195 usb@3530000 {
196 status = "disabled";
197
198 phys = <&{/padctl@3520000/pads/usb2/lanes/usb2-0}>,
199 <&{/padctl@3520000/pads/usb2/lanes/usb2-1}>,
200 <&{/padctl@3520000/pads/usb3/lanes/usb3-0}>;
201 phy-names = "usb2-0", "usb2-1", "usb3-0";
202 };
203
204 i2c@c250000 {
205 /* carrier board ID EEPROM */
206 eeprom@57 {
207 compatible = "atmel,24c02";
208 reg = <0x57>;
209
210 address-bits = <8>;
211 page-size = <8>;
212 size = <256>;
213 read-only;
214 };
215 };
216
217 pcie@10003000 {
218 status = "okay";
219
220 dvdd-pex-supply = <&vdd_pex>;
221 hvdd-pex-pll-supply = <&vdd_1v8>;
222 hvdd-pex-supply = <&vdd_1v8>;
223 vddio-pexctl-aud-supply = <&vdd_1v8>;
224
225 pci@1,0 {
226 nvidia,num-lanes = <4>;
227 status = "okay";
228 };
229
230 pci@2,0 {
231 nvidia,num-lanes = <0>;
232 status = "disabled";
233 };
234
235 pci@3,0 {
236 nvidia,num-lanes = <1>;
237 status = "disabled";
238 };
239 };
240
241 host1x@13e00000 {
242 status = "okay";
243
244 dpaux@15040000 {
245 status = "okay";
246 };
247
248 display-hub@15200000 {
249 status = "okay";
250 };
251
252 dsi@15300000 {
253 status = "disabled";
254 };
255
256 sor@15540000 {
257 status = "disabled";
258
259 nvidia,dpaux = <&dpaux1>;
260 };
261
262 sor@15580000 {
263 status = "okay";
264
265 avdd-io-supply = <&vdd_hdmi_1v05>;
266 vdd-pll-supply = <&vdd_1v8_ap>;
267 hdmi-supply = <&vdd_hdmi>;
268
269 nvidia,ddc-i2c-bus = <&ddc>;
270 nvidia,hpd-gpio = <&gpio TEGRA186_MAIN_GPIO(P, 1)
271 GPIO_ACTIVE_LOW>;
272 };
273
274 dpaux@155c0000 {
275 status = "okay";
276 };
277 };
278
279 gpio-keys {
280 compatible = "gpio-keys";
281
282 power {
283 label = "Power";
284 gpios = <&gpio_aon TEGRA186_AON_GPIO(FF, 0)
285 GPIO_ACTIVE_LOW>;
286 linux,input-type = <EV_KEY>;
287 linux,code = <KEY_POWER>;
288 debounce-interval = <10>;
289 wakeup-event-action = <EV_ACT_ASSERTED>;
290 wakeup-source;
291 };
292
293 volume-up {
294 label = "Volume Up";
295 gpios = <&gpio_aon TEGRA186_AON_GPIO(FF, 1)
296 GPIO_ACTIVE_LOW>;
297 linux,input-type = <EV_KEY>;
298 linux,code = <KEY_VOLUMEUP>;
299 debounce-interval = <10>;
300 };
301
302 volume-down {
303 label = "Volume Down";
304 gpios = <&gpio_aon TEGRA186_AON_GPIO(FF, 2)
305 GPIO_ACTIVE_LOW>;
306 linux,input-type = <EV_KEY>;
307 linux,code = <KEY_VOLUMEDOWN>;
308 debounce-interval = <10>;
309 };
310 };
311
312 regulators {
313 vdd_sd: regulator@100 {
314 compatible = "regulator-fixed";
315 reg = <100>;
316
317 regulator-name = "SD_CARD_SW_PWR";
318 regulator-min-microvolt = <3300000>;
319 regulator-max-microvolt = <3300000>;
320
321 gpio = <&gpio TEGRA186_MAIN_GPIO(P, 6)
322 GPIO_ACTIVE_HIGH>;
323 enable-active-high;
324
325 vin-supply = <&vdd_3v3_sys>;
326 };
327
328 vdd_hdmi: regulator@101 {
329 compatible = "regulator-fixed";
330 reg = <101>;
331
332 regulator-name = "VDD_HDMI_5V0";
333 regulator-min-microvolt = <5000000>;
334 regulator-max-microvolt = <5000000>;
335
336 gpio = <&exp1 14 GPIO_ACTIVE_HIGH>;
337 enable-active-high;
338
339 vin-supply = <&vdd_5v0_sys>;
340 };
341
342 vdd_usb0: regulator@102 {
343 compatible = "regulator-fixed";
344 reg = <102>;
345
346 regulator-name = "VDD_USB0";
347 regulator-min-microvolt = <5000000>;
348 regulator-max-microvolt = <5000000>;
349
350 gpio = <&gpio TEGRA186_MAIN_GPIO(L, 4) GPIO_ACTIVE_HIGH>;
351 enable-active-high;
352
353 vin-supply = <&vdd_5v0_sys>;
354 };
355
356 vdd_usb1: regulator@103 {
357 compatible = "regulator-fixed";
358 reg = <103>;
359
360 regulator-name = "VDD_USB1";
361 regulator-min-microvolt = <5000000>;
362 regulator-max-microvolt = <5000000>;
363
364 gpio = <&gpio TEGRA186_MAIN_GPIO(L, 5) GPIO_ACTIVE_HIGH>;
365 enable-active-high;
366
367 vin-supply = <&vdd_5v0_sys>;
368 };
369 };
370};