b62e969458464e562cf04099b13455273b6b8183
[sfrench/cifs-2.6.git] / arch / arm64 / boot / dts / nvidia / tegra194-p2972-0000.dts
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 "tegra194-p2888.dtsi"
8
9 / {
10         model = "NVIDIA Jetson AGX Xavier Development Kit";
11         compatible = "nvidia,p2972-0000", "nvidia,tegra194";
12
13         cbb {
14                 ddc: i2c@31c0000 {
15                         status = "okay";
16                 };
17
18                 /* SDMMC1 (SD/MMC) */
19                 sdhci@3400000 {
20                         status = "okay";
21                 };
22
23                 hda@3510000 {
24                         nvidia,model = "jetson-xavier-hda";
25                         status = "okay";
26                 };
27
28                 pwm@c340000 {
29                         status = "okay";
30                 };
31
32                 host1x@13e00000 {
33                         display-hub@15200000 {
34                                 status = "okay";
35                         };
36
37                         dpaux@155e0000 {
38                                 status = "okay";
39                         };
40
41                         sor@15b80000 {
42                                 status = "okay";
43
44                                 avdd-io-supply = <&vdd_1v0>;
45                                 vdd-pll-supply = <&vdd_1v8hs>;
46                                 hdmi-supply = <&vdd_hdmi>;
47
48                                 nvidia,ddc-i2c-bus = <&ddc>;
49                                 nvidia,hpd-gpio = <&gpio TEGRA194_MAIN_GPIO(M, 2)
50                                                          GPIO_ACTIVE_LOW>;
51                         };
52                 };
53         };
54
55         fan: fan {
56                 compatible = "pwm-fan";
57                 pwms = <&pwm4 0 45334>;
58
59                 cooling-levels = <0 64 128 255>;
60                 cooling-min-state = <0>;
61                 cooling-max-state = <3>;
62                 #cooling-cells = <2>;
63         };
64
65         gpio-keys {
66                 compatible = "gpio-keys";
67
68                 force-recovery {
69                         label = "Force Recovery";
70                         gpios = <&gpio TEGRA194_MAIN_GPIO(G, 0)
71                                        GPIO_ACTIVE_LOW>;
72                         linux,input-type = <EV_KEY>;
73                         linux,code = <BTN_1>;
74                         debounce-interval = <10>;
75                 };
76
77                 power {
78                         label = "Power";
79                         gpios = <&gpio_aon TEGRA194_AON_GPIO(EE, 4)
80                                            GPIO_ACTIVE_LOW>;
81                         linux,input-type = <EV_KEY>;
82                         linux,code = <KEY_POWER>;
83                         debounce-interval = <10>;
84                         wakeup-event-action = <EV_ACT_ASSERTED>;
85                         wakeup-source;
86                 };
87         };
88
89         thermal-zones {
90                 cpu {
91                         polling-delay = <0>;
92                         polling-delay-passive = <500>;
93                         status = "okay";
94
95                         trips {
96                                 cpu_trip_critical: critical {
97                                         temperature = <96500>;
98                                         hysteresis = <0>;
99                                         type = "critical";
100                                 };
101
102                                 cpu_trip_hot: hot {
103                                         temperature = <70000>;
104                                         hysteresis = <2000>;
105                                         type = "hot";
106                                 };
107
108                                 cpu_trip_active: active {
109                                         temperature = <50000>;
110                                         hysteresis = <2000>;
111                                         type = "active";
112                                 };
113
114                                 cpu_trip_passive: passive {
115                                         temperature = <30000>;
116                                         hysteresis = <2000>;
117                                         type = "passive";
118                                 };
119                         };
120
121                         cooling-maps {
122                                 cpu-critical {
123                                         cooling-device = <&fan 3 3>;
124                                         trip = <&cpu_trip_critical>;
125                                 };
126
127                                 cpu-hot {
128                                         cooling-device = <&fan 2 2>;
129                                         trip = <&cpu_trip_hot>;
130                                 };
131
132                                 cpu-active {
133                                         cooling-device = <&fan 1 1>;
134                                         trip = <&cpu_trip_active>;
135                                 };
136
137                                 cpu-passive {
138                                         cooling-device = <&fan 0 0>;
139                                         trip = <&cpu_trip_passive>;
140                                 };
141                         };
142                 };
143
144                 gpu {
145                         polling-delay = <0>;
146                         polling-delay-passive = <500>;
147                         status = "okay";
148
149                         trips {
150                                 gpu_alert0: critical {
151                                         temperature = <99000>;
152                                         hysteresis = <0>;
153                                         type = "critical";
154                                 };
155                         };
156                 };
157
158                 aux {
159                         polling-delay = <0>;
160                         polling-delay-passive = <500>;
161                         status = "okay";
162
163                         trips {
164                                 aux_alert0: critical {
165                                         temperature = <90000>;
166                                         hysteresis = <0>;
167                                         type = "critical";
168                                 };
169                         };
170                 };
171         };
172 };