xref: /freebsd/sys/contrib/device-tree/src/arm64/nvidia/tegra234-p3768-0000+p3767-0000.dts (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
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 "tegra234-p3767-0000.dtsi"
8#include "tegra234-p3768-0000.dtsi"
9
10/ {
11	compatible = "nvidia,p3768-0000+p3767-0000", "nvidia,p3767-0000", "nvidia,tegra234";
12	model = "NVIDIA Jetson Orin NX Engineering Reference Developer Kit";
13
14	aliases {
15		serial0 = &tcu;
16	};
17
18	chosen {
19		stdout-path = "serial0:115200n8";
20	};
21
22	bus@0 {
23		serial@31d0000 {
24			current-speed = <115200>;
25			status = "okay";
26		};
27
28		pwm@32a0000 {
29			assigned-clocks = <&bpmp TEGRA234_CLK_PWM3>;
30			assigned-clock-parents = <&bpmp TEGRA234_CLK_PLLP_OUT0>;
31			status = "okay";
32		};
33
34		hda@3510000 {
35			nvidia,model = "NVIDIA Jetson Orin NX HDA";
36			status = "okay";
37		};
38
39		padctl@3520000 {
40			status = "okay";
41		};
42
43		/* C1 - M.2 Key-E */
44		pcie@14100000 {
45			status = "okay";
46
47			vddio-pex-ctl-supply = <&vdd_1v8_ao>;
48
49			phys = <&p2u_hsio_3>;
50			phy-names = "p2u-0";
51		};
52
53		/* C4 - M.2 Key-M */
54		pcie@14160000 {
55			status = "okay";
56
57			vddio-pex-ctl-supply = <&vdd_1v8_ao>;
58
59			phys = <&p2u_hsio_4>, <&p2u_hsio_5>, <&p2u_hsio_6>,
60			       <&p2u_hsio_7>;
61			phy-names = "p2u-0", "p2u-1", "p2u-2", "p2u-3";
62		};
63
64		/* C8 - Ethernet */
65		pcie@140a0000 {
66			status = "okay";
67
68			num-lanes = <2>;
69
70			phys = <&p2u_gbe_2>, <&p2u_gbe_3>;
71			phy-names = "p2u-0", "p2u-1";
72
73			vddio-pex-ctl-supply = <&vdd_1v8_ao>;
74			vpcie3v3-supply = <&vdd_3v3_pcie>;
75		};
76
77		/* C7 - M.2 Key-M */
78		pcie@141e0000 {
79			status = "okay";
80
81			vddio-pex-ctl-supply = <&vdd_1v8_ao>;
82
83			phys = <&p2u_gbe_0>, <&p2u_gbe_1>;
84			phy-names = "p2u-0", "p2u-1";
85		};
86	};
87
88	gpio-keys {
89		compatible = "gpio-keys";
90
91		key-force-recovery {
92			label = "Force Recovery";
93			gpios = <&gpio TEGRA234_MAIN_GPIO(G, 0) GPIO_ACTIVE_LOW>;
94			linux,input-type = <EV_KEY>;
95			linux,code = <BTN_1>;
96		};
97
98		key-power {
99			label = "Power";
100			gpios = <&gpio_aon TEGRA234_AON_GPIO(EE, 4) GPIO_ACTIVE_LOW>;
101			linux,input-type = <EV_KEY>;
102			linux,code = <KEY_POWER>;
103			wakeup-event-action = <EV_ACT_ASSERTED>;
104			wakeup-source;
105		};
106
107		key-suspend {
108			label = "Suspend";
109			gpios = <&gpio TEGRA234_MAIN_GPIO(G, 2) GPIO_ACTIVE_LOW>;
110			linux,input-type = <EV_KEY>;
111			linux,code = <KEY_SLEEP>;
112		};
113	};
114
115	pwm-fan {
116		cooling-levels = <0 187 255>;
117	};
118
119	vdd_3v3_pcie: regulator-vdd-3v3-pcie {
120		compatible = "regulator-fixed";
121		regulator-name = "VDD_3V3_PCIE";
122		regulator-min-microvolt = <3300000>;
123		regulator-max-microvolt = <3300000>;
124		gpio = <&gpio_aon TEGRA234_AON_GPIO(AA, 5) GPIO_ACTIVE_HIGH>;
125		enable-active-high;
126	};
127
128	serial {
129		status = "okay";
130	};
131
132	thermal-zones {
133		tj-thermal {
134			cooling-maps {
135				map-active-0 {
136					cooling-device = <&fan 0 1>;
137					trip = <&tj_trip_active0>;
138				};
139
140				map-active-1 {
141					cooling-device = <&fan 1 2>;
142					trip = <&tj_trip_active1>;
143				};
144			};
145		};
146	};
147};
148