xref: /freebsd/sys/contrib/device-tree/src/arm64/nvidia/tegra234-p3768-0000+p3767-0000.dts (revision a03411e84728e9b267056fd31c7d1d9d1dc1b01e)
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	fan: pwm-fan {
116		compatible = "pwm-fan";
117		pwms = <&pwm3 0 45334>;
118		cooling-levels = <0 95 178 255>;
119		#cooling-cells = <2>;
120	};
121
122	vdd_3v3_pcie: regulator-vdd-3v3-pcie {
123		compatible = "regulator-fixed";
124		regulator-name = "VDD_3V3_PCIE";
125		regulator-min-microvolt = <3300000>;
126		regulator-max-microvolt = <3300000>;
127		gpio = <&gpio_aon TEGRA234_AON_GPIO(AA, 5) GPIO_ACTIVE_HIGH>;
128		enable-active-high;
129	};
130
131	serial {
132		status = "okay";
133	};
134};
135