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		serial1 = &uarta;
17		serial2 = &uarte;
18	};
19
20	chosen {
21		stdout-path = "serial0:115200n8";
22	};
23
24	bus@0 {
25		serial@3100000 {
26			compatible = "nvidia,tegra194-hsuart";
27			reset-names = "serial";
28			status = "okay";
29		};
30
31		serial@3140000 {
32			compatible = "nvidia,tegra194-hsuart";
33			reset-names = "serial";
34			status = "okay";
35		};
36
37		serial@31d0000 {
38			status = "okay";
39		};
40
41		pwm@32a0000 {
42			assigned-clocks = <&bpmp TEGRA234_CLK_PWM3>;
43			assigned-clock-parents = <&bpmp TEGRA234_CLK_PLLP_OUT0>;
44			status = "okay";
45		};
46
47		hda@3510000 {
48			nvidia,model = "NVIDIA Jetson Orin NX HDA";
49			status = "okay";
50		};
51
52		padctl@3520000 {
53			status = "okay";
54		};
55	};
56
57	gpio-keys {
58		compatible = "gpio-keys";
59
60		key-force-recovery {
61			label = "Force Recovery";
62			gpios = <&gpio TEGRA234_MAIN_GPIO(G, 0) GPIO_ACTIVE_LOW>;
63			linux,input-type = <EV_KEY>;
64			linux,code = <BTN_1>;
65		};
66
67		key-power {
68			label = "Power";
69			gpios = <&gpio_aon TEGRA234_AON_GPIO(EE, 4) GPIO_ACTIVE_LOW>;
70			linux,input-type = <EV_KEY>;
71			linux,code = <KEY_POWER>;
72			wakeup-event-action = <EV_ACT_ASSERTED>;
73			wakeup-source;
74		};
75
76		key-suspend {
77			label = "Suspend";
78			gpios = <&gpio TEGRA234_MAIN_GPIO(G, 2) GPIO_ACTIVE_LOW>;
79			linux,input-type = <EV_KEY>;
80			linux,code = <KEY_SLEEP>;
81		};
82	};
83
84	pwm-fan {
85		cooling-levels = <0 88 187 255>;
86	};
87
88	vdd_3v3_pcie: regulator-vdd-3v3-pcie {
89		compatible = "regulator-fixed";
90		regulator-name = "VDD_3V3_PCIE";
91		regulator-min-microvolt = <3300000>;
92		regulator-max-microvolt = <3300000>;
93		gpio = <&gpio_aon TEGRA234_AON_GPIO(AA, 5) GPIO_ACTIVE_HIGH>;
94		enable-active-high;
95	};
96
97	serial {
98		status = "okay";
99	};
100
101	thermal-zones {
102		tj-thermal {
103			cooling-maps {
104				map-active-0 {
105					cooling-device = <&fan 0 1>;
106					trip = <&tj_trip_active0>;
107				};
108
109				map-active-1 {
110					cooling-device = <&fan 1 2>;
111					trip = <&tj_trip_active1>;
112				};
113
114				map-active-2 {
115					cooling-device = <&fan 2 3>;
116					trip = <&tj_trip_active2>;
117				};
118			};
119		};
120	};
121};
122