xref: /linux/arch/arm64/boot/dts/nvidia/tegra234-p3768-0000+p3767.dtsi (revision 55d0969c451159cff86949b38c39171cab962069)
1// SPDX-License-Identifier: GPL-2.0
2
3#include <dt-bindings/input/linux-event-codes.h>
4#include <dt-bindings/input/gpio-keys.h>
5
6#include "tegra234-p3767.dtsi"
7
8/ {
9
10	aliases {
11		serial0 = &tcu;
12		serial1 = &uarta;
13		serial2 = &uarte;
14	};
15
16	chosen {
17		stdout-path = "serial0:115200n8";
18	};
19
20	bus@0 {
21		serial@3100000 {
22			compatible = "nvidia,tegra194-hsuart";
23			reset-names = "serial";
24			status = "okay";
25		};
26
27		serial@3140000 {
28			compatible = "nvidia,tegra194-hsuart";
29			reset-names = "serial";
30			status = "okay";
31		};
32
33		i2c@3160000 {
34			status = "okay";
35
36			eeprom@57 {
37				compatible = "atmel,24c02";
38				reg = <0x57>;
39
40				label = "system";
41				vcc-supply = <&vdd_1v8_sys>;
42				address-width = <8>;
43				pagesize = <8>;
44				size = <256>;
45				read-only;
46			};
47		};
48
49		serial@31d0000 {
50			current-speed = <115200>;
51			status = "okay";
52		};
53
54		pwm@32a0000 {
55			assigned-clocks = <&bpmp TEGRA234_CLK_PWM3>;
56			assigned-clock-parents = <&bpmp TEGRA234_CLK_PLLP_OUT0>;
57			status = "okay";
58		};
59
60		padctl@3520000 {
61			status = "okay";
62
63			pads {
64				usb2 {
65					lanes {
66						usb2-0 {
67							nvidia,function = "xusb";
68							status = "okay";
69						};
70
71						usb2-1 {
72							nvidia,function = "xusb";
73							status = "okay";
74						};
75
76						usb2-2 {
77							nvidia,function = "xusb";
78							status = "okay";
79						};
80					};
81				};
82
83				usb3 {
84					lanes {
85						usb3-0 {
86							nvidia,function = "xusb";
87							status = "okay";
88						};
89
90						usb3-1 {
91							nvidia,function = "xusb";
92							status = "okay";
93						};
94					};
95				};
96			};
97
98			ports {
99				/* recovery port */
100				usb2-0 {
101					mode = "otg";
102					vbus-supply = <&vdd_5v0_sys>;
103					status = "okay";
104					usb-role-switch;
105				};
106
107				/* hub */
108				usb2-1 {
109					mode = "host";
110					vbus-supply = <&vdd_1v1_hub>;
111					status = "okay";
112				};
113
114				/* M.2 Key-E */
115				usb2-2 {
116					mode = "host";
117					vbus-supply = <&vdd_5v0_sys>;
118					status = "okay";
119				};
120
121				/* hub */
122				usb3-0 {
123					nvidia,usb2-companion = <1>;
124					status = "okay";
125				};
126
127				/* J5 */
128				usb3-1 {
129					nvidia,usb2-companion = <0>;
130					status = "okay";
131				};
132			};
133		};
134
135		usb@3550000 {
136			status = "okay";
137
138			phys = <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-0}>,
139			       <&{/bus@0/padctl@3520000/pads/usb3/lanes/usb3-1}>;
140			phy-names = "usb2-0", "usb3-0";
141		};
142
143		usb@3610000 {
144			status = "okay";
145
146			phys = <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-0}>,
147			       <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-1}>,
148			       <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-2}>,
149			       <&{/bus@0/padctl@3520000/pads/usb3/lanes/usb3-0}>,
150			       <&{/bus@0/padctl@3520000/pads/usb3/lanes/usb3-1}>;
151			phy-names = "usb2-0", "usb2-1", "usb2-2", "usb3-0",
152				    "usb3-1";
153		};
154
155		/* C8 - Ethernet */
156		pcie@140a0000 {
157			status = "okay";
158
159			num-lanes = <2>;
160
161			phys = <&p2u_gbe_2>, <&p2u_gbe_3>;
162			phy-names = "p2u-0", "p2u-1";
163
164			vddio-pex-ctl-supply = <&vdd_1v8_ao>;
165			vpcie3v3-supply = <&vdd_3v3_pcie>;
166		};
167
168		/* C1 - M.2 Key-E */
169		pcie@14100000 {
170			status = "okay";
171
172			vddio-pex-ctl-supply = <&vdd_1v8_ao>;
173
174			phys = <&p2u_hsio_3>;
175			phy-names = "p2u-0";
176		};
177
178		/* C4 - M.2 Key-M */
179		pcie@14160000 {
180			status = "okay";
181
182			vddio-pex-ctl-supply = <&vdd_1v8_ao>;
183
184			phys = <&p2u_hsio_4>, <&p2u_hsio_5>, <&p2u_hsio_6>,
185			       <&p2u_hsio_7>;
186			phy-names = "p2u-0", "p2u-1", "p2u-2", "p2u-3";
187		};
188
189		pcie-ep@14160000 {/* C4 - End Point */
190			phys = <&p2u_hsio_4>, <&p2u_hsio_5>, <&p2u_hsio_6>,
191					<&p2u_hsio_7>;
192			phy-names = "p2u-0", "p2u-1", "p2u-2", "p2u-3";
193			reset-gpios = <&gpio
194					TEGRA234_MAIN_GPIO(L, 1)
195					GPIO_ACTIVE_LOW>;
196			nvidia,refclk-select-gpios = <&gpio_aon
197							TEGRA234_AON_GPIO(AA, 4)
198							GPIO_ACTIVE_HIGH>;
199		};
200
201		/* C7 - M.2 Key-M */
202		pcie@141e0000 {
203			status = "okay";
204
205			vddio-pex-ctl-supply = <&vdd_1v8_ao>;
206
207			phys = <&p2u_gbe_0>, <&p2u_gbe_1>;
208			phy-names = "p2u-0", "p2u-1";
209		};
210	};
211
212	gpio-keys {
213		compatible = "gpio-keys";
214
215		key-force-recovery {
216			label = "Force Recovery";
217			gpios = <&gpio TEGRA234_MAIN_GPIO(G, 0) GPIO_ACTIVE_LOW>;
218			linux,input-type = <EV_KEY>;
219			linux,code = <BTN_1>;
220		};
221
222		key-power {
223			label = "Power";
224			gpios = <&gpio_aon TEGRA234_AON_GPIO(EE, 4) GPIO_ACTIVE_LOW>;
225			linux,input-type = <EV_KEY>;
226			linux,code = <KEY_POWER>;
227			wakeup-event-action = <EV_ACT_ASSERTED>;
228			wakeup-source;
229		};
230
231		key-suspend {
232			label = "Suspend";
233			gpios = <&gpio TEGRA234_MAIN_GPIO(G, 2) GPIO_ACTIVE_LOW>;
234			linux,input-type = <EV_KEY>;
235			linux,code = <KEY_SLEEP>;
236		};
237	};
238
239	fan: pwm-fan {
240		compatible = "pwm-fan";
241		pwms = <&pwm3 0 45334>;
242		#cooling-cells = <2>;
243		cooling-levels = <0 88 187 255>;
244	};
245
246	vdd_1v8_sys: regulator-vdd-1v8-sys {
247		compatible = "regulator-fixed";
248		regulator-name = "VDD_1V8_SYS";
249		regulator-min-microvolt = <1800000>;
250		regulator-max-microvolt = <1800000>;
251		regulator-always-on;
252	};
253
254	vdd_1v1_hub: regulator-vdd-1v1-hub {
255		compatible = "regulator-fixed";
256		regulator-name = "VDD_AV10_HUB";
257		regulator-min-microvolt = <1100000>;
258		regulator-max-microvolt = <1100000>;
259		vin-supply = <&vdd_5v0_sys>;
260		regulator-always-on;
261	};
262
263	vdd_3v3_pcie: regulator-vdd-3v3-pcie {
264		compatible = "regulator-fixed";
265		regulator-name = "VDD_3V3_PCIE";
266		regulator-min-microvolt = <3300000>;
267		regulator-max-microvolt = <3300000>;
268		gpio = <&gpio_aon TEGRA234_AON_GPIO(AA, 5) GPIO_ACTIVE_HIGH>;
269		enable-active-high;
270	};
271
272	serial {
273		status = "okay";
274	};
275
276	thermal-zones {
277		tj-thermal {
278			cooling-maps {
279				map-active-0 {
280					cooling-device = <&fan 0 1>;
281					trip = <&tj_trip_active0>;
282				};
283
284				map-active-1 {
285					cooling-device = <&fan 1 2>;
286					trip = <&tj_trip_active1>;
287				};
288
289				map-active-2 {
290					cooling-device = <&fan 2 3>;
291					trip = <&tj_trip_active2>;
292				};
293			};
294		};
295	};
296};
297