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 "tegra194-p2888.dtsi"
8
9/ {
10	model = "NVIDIA Jetson AGX Xavier Developer Kit";
11	compatible = "nvidia,p2972-0000", "nvidia,tegra194";
12
13	cbb {
14		aconnect {
15			status = "okay";
16
17			dma-controller@2930000 {
18				status = "okay";
19			};
20
21			interrupt-controller@2a40000 {
22				status = "okay";
23			};
24		};
25
26		ddc: i2c@31c0000 {
27			status = "okay";
28		};
29
30		/* SDMMC1 (SD/MMC) */
31		sdhci@3400000 {
32			status = "okay";
33		};
34
35		hda@3510000 {
36			nvidia,model = "jetson-xavier-hda";
37			status = "okay";
38		};
39
40		pwm@c340000 {
41			status = "okay";
42		};
43
44		host1x@13e00000 {
45			display-hub@15200000 {
46				status = "okay";
47			};
48
49			dpaux@155e0000 {
50				status = "okay";
51			};
52
53			sor@15b80000 {
54				status = "okay";
55
56				avdd-io-supply = <&vdd_1v0>;
57				vdd-pll-supply = <&vdd_1v8hs>;
58				hdmi-supply = <&vdd_hdmi>;
59
60				nvidia,ddc-i2c-bus = <&ddc>;
61				nvidia,hpd-gpio = <&gpio TEGRA194_MAIN_GPIO(M, 2)
62							 GPIO_ACTIVE_LOW>;
63			};
64		};
65	};
66
67	pcie@14100000 {
68		status = "okay";
69
70		vddio-pex-ctl-supply = <&vdd_1v8ao>;
71
72		phys = <&p2u_hsio_0>;
73		phy-names = "p2u-0";
74	};
75
76	pcie@14140000 {
77		status = "okay";
78
79		vddio-pex-ctl-supply = <&vdd_1v8ao>;
80
81		phys = <&p2u_hsio_7>;
82		phy-names = "p2u-0";
83	};
84
85	pcie@14180000 {
86		status = "okay";
87
88		vddio-pex-ctl-supply = <&vdd_1v8ao>;
89
90		phys = <&p2u_hsio_2>, <&p2u_hsio_3>, <&p2u_hsio_4>,
91		       <&p2u_hsio_5>;
92		phy-names = "p2u-0", "p2u-1", "p2u-2", "p2u-3";
93	};
94
95	pcie@141a0000 {
96		status = "okay";
97
98		vddio-pex-ctl-supply = <&vdd_1v8ao>;
99		vpcie3v3-supply = <&vdd_3v3_pcie>;
100		vpcie12v-supply = <&vdd_12v_pcie>;
101
102		phys = <&p2u_nvhs_0>, <&p2u_nvhs_1>, <&p2u_nvhs_2>,
103		       <&p2u_nvhs_3>, <&p2u_nvhs_4>, <&p2u_nvhs_5>,
104		       <&p2u_nvhs_6>, <&p2u_nvhs_7>;
105
106		phy-names = "p2u-0", "p2u-1", "p2u-2", "p2u-3", "p2u-4",
107			    "p2u-5", "p2u-6", "p2u-7";
108	};
109
110	fan: fan {
111		compatible = "pwm-fan";
112		pwms = <&pwm4 0 45334>;
113
114		cooling-levels = <0 64 128 255>;
115		#cooling-cells = <2>;
116	};
117
118	gpio-keys {
119		compatible = "gpio-keys";
120
121		force-recovery {
122			label = "Force Recovery";
123			gpios = <&gpio TEGRA194_MAIN_GPIO(G, 0)
124				       GPIO_ACTIVE_LOW>;
125			linux,input-type = <EV_KEY>;
126			linux,code = <BTN_1>;
127			debounce-interval = <10>;
128		};
129
130		power {
131			label = "Power";
132			gpios = <&gpio_aon TEGRA194_AON_GPIO(EE, 4)
133					   GPIO_ACTIVE_LOW>;
134			linux,input-type = <EV_KEY>;
135			linux,code = <KEY_POWER>;
136			debounce-interval = <10>;
137			wakeup-event-action = <EV_ACT_ASSERTED>;
138			wakeup-source;
139		};
140	};
141
142	thermal-zones {
143		cpu {
144			polling-delay = <0>;
145			polling-delay-passive = <500>;
146			status = "okay";
147
148			trips {
149				cpu_trip_critical: critical {
150					temperature = <96500>;
151					hysteresis = <0>;
152					type = "critical";
153				};
154
155				cpu_trip_hot: hot {
156					temperature = <70000>;
157					hysteresis = <2000>;
158					type = "hot";
159				};
160
161				cpu_trip_active: active {
162					temperature = <50000>;
163					hysteresis = <2000>;
164					type = "active";
165				};
166
167				cpu_trip_passive: passive {
168					temperature = <30000>;
169					hysteresis = <2000>;
170					type = "passive";
171				};
172			};
173
174			cooling-maps {
175				cpu-critical {
176					cooling-device = <&fan 3 3>;
177					trip = <&cpu_trip_critical>;
178				};
179
180				cpu-hot {
181					cooling-device = <&fan 2 2>;
182					trip = <&cpu_trip_hot>;
183				};
184
185				cpu-active {
186					cooling-device = <&fan 1 1>;
187					trip = <&cpu_trip_active>;
188				};
189
190				cpu-passive {
191					cooling-device = <&fan 0 0>;
192					trip = <&cpu_trip_passive>;
193				};
194			};
195		};
196
197		gpu {
198			polling-delay = <0>;
199			polling-delay-passive = <500>;
200			status = "okay";
201
202			trips {
203				gpu_alert0: critical {
204					temperature = <99000>;
205					hysteresis = <0>;
206					type = "critical";
207				};
208			};
209		};
210
211		aux {
212			polling-delay = <0>;
213			polling-delay-passive = <500>;
214			status = "okay";
215
216			trips {
217				aux_alert0: critical {
218					temperature = <90000>;
219					hysteresis = <0>;
220					type = "critical";
221				};
222			};
223		};
224	};
225};
226