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
44	gpio-keys {
45		compatible = "gpio-keys";
46
47		key-force-recovery {
48			label = "Force Recovery";
49			gpios = <&gpio TEGRA234_MAIN_GPIO(G, 0) GPIO_ACTIVE_LOW>;
50			linux,input-type = <EV_KEY>;
51			linux,code = <BTN_1>;
52		};
53
54		key-power {
55			label = "Power";
56			gpios = <&gpio_aon TEGRA234_AON_GPIO(EE, 4) GPIO_ACTIVE_LOW>;
57			linux,input-type = <EV_KEY>;
58			linux,code = <KEY_POWER>;
59			wakeup-event-action = <EV_ACT_ASSERTED>;
60			wakeup-source;
61		};
62
63		key-suspend {
64			label = "Suspend";
65			gpios = <&gpio TEGRA234_MAIN_GPIO(G, 2) GPIO_ACTIVE_LOW>;
66			linux,input-type = <EV_KEY>;
67			linux,code = <KEY_SLEEP>;
68		};
69	};
70
71	pwm-fan {
72		cooling-levels = <0 187 255>;
73	};
74
75	vdd_3v3_pcie: regulator-vdd-3v3-pcie {
76		compatible = "regulator-fixed";
77		regulator-name = "VDD_3V3_PCIE";
78		regulator-min-microvolt = <3300000>;
79		regulator-max-microvolt = <3300000>;
80		gpio = <&gpio_aon TEGRA234_AON_GPIO(AA, 5) GPIO_ACTIVE_HIGH>;
81		enable-active-high;
82	};
83
84	serial {
85		status = "okay";
86	};
87
88	thermal-zones {
89		tj-thermal {
90			cooling-maps {
91				map-active-0 {
92					cooling-device = <&fan 0 1>;
93					trip = <&tj_trip_active0>;
94				};
95
96				map-active-1 {
97					cooling-device = <&fan 1 2>;
98					trip = <&tj_trip_active1>;
99				};
100			};
101		};
102	};
103};
104