treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / arm64 / boot / dts / nvidia / tegra194-p2972-0000.dts
blob353a6a22196d80b3e5547ff6b12d64df257a9fb9
1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
4 #include <dt-bindings/input/linux-event-codes.h>
5 #include <dt-bindings/input/gpio-keys.h>
7 #include "tegra194-p2888.dtsi"
9 / {
10         model = "NVIDIA Jetson AGX Xavier Developer Kit";
11         compatible = "nvidia,p2972-0000", "nvidia,tegra194";
13         cbb@0 {
14                 aconnect@2900000 {
15                         status = "okay";
17                         dma-controller@2930000 {
18                                 status = "okay";
19                         };
21                         interrupt-controller@2a40000 {
22                                 status = "okay";
23                         };
24                 };
26                 ddc: i2c@31c0000 {
27                         status = "okay";
28                 };
30                 /* SDMMC1 (SD/MMC) */
31                 sdhci@3400000 {
32                         status = "okay";
33                 };
35                 hda@3510000 {
36                         nvidia,model = "jetson-xavier-hda";
37                         status = "okay";
38                 };
40                 pwm@c340000 {
41                         status = "okay";
42                 };
44                 host1x@13e00000 {
45                         display-hub@15200000 {
46                                 status = "okay";
47                         };
49                         dpaux@155c0000 {
50                                 status = "okay";
51                         };
53                         dpaux@155d0000 {
54                                 status = "okay";
55                         };
57                         dpaux@155e0000 {
58                                 status = "okay";
59                         };
61                         /* DP0 */
62                         sor@15b00000 {
63                                 status = "okay";
65                                 avdd-io-hdmi-dp-supply = <&vdd_1v0>;
66                                 vdd-hdmi-dp-pll-supply = <&vdd_1v8hs>;
68                                 nvidia,dpaux = <&dpaux0>;
69                         };
71                         /* DP1 */
72                         sor@15b40000 {
73                                 status = "okay";
75                                 avdd-io-hdmi-dp-supply = <&vdd_1v0>;
76                                 vdd-hdmi-dp-pll-supply = <&vdd_1v8hs>;
78                                 nvidia,dpaux = <&dpaux1>;
79                         };
81                         /* HDMI */
82                         sor@15b80000 {
83                                 status = "okay";
85                                 avdd-io-supply = <&vdd_1v0>;
86                                 vdd-pll-supply = <&vdd_1v8hs>;
87                                 hdmi-supply = <&vdd_hdmi>;
89                                 nvidia,ddc-i2c-bus = <&ddc>;
90                                 nvidia,hpd-gpio = <&gpio TEGRA194_MAIN_GPIO(M, 2)
91                                                          GPIO_ACTIVE_LOW>;
92                         };
93                 };
94         };
96         pcie@14100000 {
97                 status = "okay";
99                 vddio-pex-ctl-supply = <&vdd_1v8ao>;
101                 phys = <&p2u_hsio_0>;
102                 phy-names = "p2u-0";
103         };
105         pcie@14140000 {
106                 status = "okay";
108                 vddio-pex-ctl-supply = <&vdd_1v8ao>;
110                 phys = <&p2u_hsio_7>;
111                 phy-names = "p2u-0";
112         };
114         pcie@14180000 {
115                 status = "okay";
117                 vddio-pex-ctl-supply = <&vdd_1v8ao>;
119                 phys = <&p2u_hsio_2>, <&p2u_hsio_3>, <&p2u_hsio_4>,
120                        <&p2u_hsio_5>;
121                 phy-names = "p2u-0", "p2u-1", "p2u-2", "p2u-3";
122         };
124         pcie@141a0000 {
125                 status = "okay";
127                 vddio-pex-ctl-supply = <&vdd_1v8ao>;
128                 vpcie3v3-supply = <&vdd_3v3_pcie>;
129                 vpcie12v-supply = <&vdd_12v_pcie>;
131                 phys = <&p2u_nvhs_0>, <&p2u_nvhs_1>, <&p2u_nvhs_2>,
132                        <&p2u_nvhs_3>, <&p2u_nvhs_4>, <&p2u_nvhs_5>,
133                        <&p2u_nvhs_6>, <&p2u_nvhs_7>;
135                 phy-names = "p2u-0", "p2u-1", "p2u-2", "p2u-3", "p2u-4",
136                             "p2u-5", "p2u-6", "p2u-7";
137         };
139         fan: fan {
140                 compatible = "pwm-fan";
141                 pwms = <&pwm4 0 45334>;
143                 cooling-levels = <0 64 128 255>;
144                 #cooling-cells = <2>;
145         };
147         gpio-keys {
148                 compatible = "gpio-keys";
150                 force-recovery {
151                         label = "Force Recovery";
152                         gpios = <&gpio TEGRA194_MAIN_GPIO(G, 0)
153                                        GPIO_ACTIVE_LOW>;
154                         linux,input-type = <EV_KEY>;
155                         linux,code = <BTN_1>;
156                         debounce-interval = <10>;
157                 };
159                 power {
160                         label = "Power";
161                         gpios = <&gpio_aon TEGRA194_AON_GPIO(EE, 4)
162                                            GPIO_ACTIVE_LOW>;
163                         linux,input-type = <EV_KEY>;
164                         linux,code = <KEY_POWER>;
165                         debounce-interval = <10>;
166                         wakeup-event-action = <EV_ACT_ASSERTED>;
167                         wakeup-source;
168                 };
169         };
171         thermal-zones {
172                 cpu {
173                         polling-delay = <0>;
174                         polling-delay-passive = <500>;
175                         status = "okay";
177                         trips {
178                                 cpu_trip_critical: critical {
179                                         temperature = <96500>;
180                                         hysteresis = <0>;
181                                         type = "critical";
182                                 };
184                                 cpu_trip_hot: hot {
185                                         temperature = <70000>;
186                                         hysteresis = <2000>;
187                                         type = "hot";
188                                 };
190                                 cpu_trip_active: active {
191                                         temperature = <50000>;
192                                         hysteresis = <2000>;
193                                         type = "active";
194                                 };
196                                 cpu_trip_passive: passive {
197                                         temperature = <30000>;
198                                         hysteresis = <2000>;
199                                         type = "passive";
200                                 };
201                         };
203                         cooling-maps {
204                                 cpu-critical {
205                                         cooling-device = <&fan 3 3>;
206                                         trip = <&cpu_trip_critical>;
207                                 };
209                                 cpu-hot {
210                                         cooling-device = <&fan 2 2>;
211                                         trip = <&cpu_trip_hot>;
212                                 };
214                                 cpu-active {
215                                         cooling-device = <&fan 1 1>;
216                                         trip = <&cpu_trip_active>;
217                                 };
219                                 cpu-passive {
220                                         cooling-device = <&fan 0 0>;
221                                         trip = <&cpu_trip_passive>;
222                                 };
223                         };
224                 };
226                 gpu {
227                         polling-delay = <0>;
228                         polling-delay-passive = <500>;
229                         status = "okay";
231                         trips {
232                                 gpu_alert0: critical {
233                                         temperature = <99000>;
234                                         hysteresis = <0>;
235                                         type = "critical";
236                                 };
237                         };
238                 };
240                 aux {
241                         polling-delay = <0>;
242                         polling-delay-passive = <500>;
243                         status = "okay";
245                         trips {
246                                 aux_alert0: critical {
247                                         temperature = <90000>;
248                                         hysteresis = <0>;
249                                         type = "critical";
250                                 };
251                         };
252                 };
253         };