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