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