xref: /freebsd/sys/contrib/device-tree/src/arm64/nvidia/tegra234-p3768-0000+p3767-0000.dts (revision a0ca4af9455b844c5e094fc1b09b1390ffa979fc)
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		serial1 = &uarta;
16		serial2 = &uarte;
17	};
18
19	bus@0 {
20		serial@3100000 {
21			compatible = "nvidia,tegra194-hsuart";
22			reset-names = "serial";
23			status = "okay";
24		};
25
26		serial@3140000 {
27			compatible = "nvidia,tegra194-hsuart";
28			reset-names = "serial";
29			status = "okay";
30		};
31
32		pwm@32a0000 {
33			assigned-clocks = <&bpmp TEGRA234_CLK_PWM3>;
34			assigned-clock-parents = <&bpmp TEGRA234_CLK_PLLP_OUT0>;
35			status = "okay";
36		};
37
38		hda@3510000 {
39			nvidia,model = "NVIDIA Jetson Orin NX HDA";
40			status = "okay";
41		};
42
43		padctl@3520000 {
44			status = "okay";
45		};
46	};
47
48	gpio-keys {
49		compatible = "gpio-keys";
50
51		key-force-recovery {
52			label = "Force Recovery";
53			gpios = <&gpio TEGRA234_MAIN_GPIO(G, 0) GPIO_ACTIVE_LOW>;
54			linux,input-type = <EV_KEY>;
55			linux,code = <BTN_1>;
56		};
57
58		key-power {
59			label = "Power";
60			gpios = <&gpio_aon TEGRA234_AON_GPIO(EE, 4) GPIO_ACTIVE_LOW>;
61			linux,input-type = <EV_KEY>;
62			linux,code = <KEY_POWER>;
63			wakeup-event-action = <EV_ACT_ASSERTED>;
64			wakeup-source;
65		};
66
67		key-suspend {
68			label = "Suspend";
69			gpios = <&gpio TEGRA234_MAIN_GPIO(G, 2) GPIO_ACTIVE_LOW>;
70			linux,input-type = <EV_KEY>;
71			linux,code = <KEY_SLEEP>;
72		};
73	};
74
75	pwm-fan {
76		cooling-levels = <0 88 187 255>;
77	};
78
79	vdd_3v3_pcie: regulator-vdd-3v3-pcie {
80		compatible = "regulator-fixed";
81		regulator-name = "VDD_3V3_PCIE";
82		regulator-min-microvolt = <3300000>;
83		regulator-max-microvolt = <3300000>;
84		gpio = <&gpio_aon TEGRA234_AON_GPIO(AA, 5) GPIO_ACTIVE_HIGH>;
85		enable-active-high;
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				map-active-2 {
102					cooling-device = <&fan 2 3>;
103					trip = <&tj_trip_active2>;
104				};
105			};
106		};
107	};
108};
109