blob: 59860d19f0f6a5a32719dcdb7f868b60c2551a1f [file] [log] [blame]
Tom Rini53633a82024-02-29 12:33:36 -05001// SPDX-License-Identifier: GPL-2.0
2#include "tegra194.dtsi"
3
4#include <dt-bindings/mfd/max77620.h>
5
6/ {
7 aliases {
8 ethernet0 = "/bus@0/ethernet@2490000";
9 i2c0 = "/bpmp/i2c";
10 i2c1 = "/bus@0/i2c@3160000";
11 i2c2 = "/bus@0/i2c@c240000";
12 i2c3 = "/bus@0/i2c@3180000";
13 i2c4 = "/bus@0/i2c@3190000";
14 i2c5 = "/bus@0/i2c@31c0000";
15 i2c6 = "/bus@0/i2c@c250000";
16 i2c7 = "/bus@0/i2c@31e0000";
17 rtc0 = "/bpmp/i2c/pmic@3c";
18 rtc1 = "/bus@0/rtc@c2a0000";
19 serial0 = &tcu;
20 };
21
22 chosen {
23 bootargs = "console=ttyTCU0,115200n8";
24 stdout-path = "serial0:115200n8";
25 };
26
27 bus@0 {
28 ethernet@2490000 {
29 status = "okay";
30
31 phy-reset-gpios = <&gpio TEGRA194_MAIN_GPIO(R, 1) GPIO_ACTIVE_LOW>;
32 phy-handle = <&phy>;
33 phy-mode = "rgmii-id";
34
35 mdio {
36 #address-cells = <1>;
37 #size-cells = <0>;
38
39 phy: ethernet-phy@0 {
40 compatible = "ethernet-phy-ieee802.3-c22";
41 reg = <0x0>;
42 interrupt-parent = <&gpio>;
43 interrupts = <TEGRA194_MAIN_GPIO(G, 4) IRQ_TYPE_LEVEL_LOW>;
44 #phy-cells = <0>;
45 };
46 };
47 };
48
49 memory-controller@2c00000 {
50 status = "okay";
51 };
52
Tom Rini6bb92fc2024-05-20 09:54:58 -060053 i2c@c250000 {
54 status = "okay";
55
56 power-sensor@40 {
57 compatible = "ti,ina3221";
58 reg = <0x40>;
59 #address-cells = <1>;
60 #size-cells = <0>;
61
62 input@0 {
63 reg = <0x0>;
64 label = "VDD_IN";
65 shunt-resistor-micro-ohms = <5000>;
66 };
67 input@1 {
68 reg = <0x1>;
69 label = "VDD_CPU_GPU_CV";
70 shunt-resistor-micro-ohms = <5000>;
71 };
72 input@2 {
73 reg = <0x2>;
74 label = "VDD_SOC";
75 shunt-resistor-micro-ohms = <5000>;
76 };
77 };
78 };
79
Tom Rini53633a82024-02-29 12:33:36 -050080 serial@3100000 {
81 status = "okay";
82 };
83
84 i2c@3160000 {
85 status = "okay";
86
87 eeprom@50 {
88 compatible = "atmel,24c02";
89 reg = <0x50>;
90
91 label = "module";
92 vcc-supply = <&vdd_1v8ls>;
93 address-width = <8>;
94 pagesize = <8>;
95 size = <256>;
96 read-only;
97 };
98 };
99
100 padctl@3520000 {
101 avdd-usb-supply = <&vdd_usb_3v3>;
102 vclamp-usb-supply = <&vdd_1v8ao>;
103
104 ports {
105 usb2-1 {
106 vbus-supply = <&vdd_5v0_sys>;
107 };
108
109 usb2-3 {
110 vbus-supply = <&vdd_5v0_sys>;
111 };
112
113 usb3-0 {
114 vbus-supply = <&vdd_5v0_sys>;
115 };
116
117 usb3-3 {
118 vbus-supply = <&vdd_5v0_sys>;
119 };
120 };
121 };
122
123 rtc@c2a0000 {
124 status = "okay";
125 };
126
127 pmc@c360000 {
128 nvidia,invert-interrupt;
129 };
130 };
131
132 bpmp {
133 i2c {
134 status = "okay";
135
136 pmic: pmic@3c {
137 compatible = "maxim,max20024";
138 reg = <0x3c>;
139
140 interrupt-parent = <&pmc>;
141 interrupts = <24 IRQ_TYPE_LEVEL_LOW>;
142 #interrupt-cells = <2>;
143 interrupt-controller;
144
145 #gpio-cells = <2>;
146 gpio-controller;
147
148 pinctrl-names = "default";
149 pinctrl-0 = <&max20024_default>;
150
151 fps {
152 fps0 {
153 maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN0>;
154 maxim,shutdown-fps-time-period-us = <640>;
155 };
156
157 fps1 {
158 maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN1>;
159 maxim,shutdown-fps-time-period-us = <640>;
160 maxim,device-state-on-disabled-event = <MAX77620_FPS_INACTIVE_STATE_SLEEP>;
161 };
162
163 fps2 {
164 maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN0>;
165 maxim,shutdown-fps-time-period-us = <640>;
166 };
167 };
168
169 max20024_default: pinmux {
170 gpio0 {
171 pins = "gpio0";
172 function = "gpio";
173 };
174
175 gpio1 {
176 pins = "gpio1";
177 function = "fps-out";
178 maxim,active-fps-source = <MAX77620_FPS_SRC_DEF>;
179 };
180
181 gpio2 {
182 pins = "gpio2";
183 function = "fps-out";
184 maxim,active-fps-source = <MAX77620_FPS_SRC_DEF>;
185 };
186
187 gpio3 {
188 pins = "gpio3";
189 function = "fps-out";
190 maxim,active-fps-source = <MAX77620_FPS_SRC_DEF>;
191 };
192
193 gpio4 {
194 pins = "gpio4";
195 function = "32k-out1";
196 drive-push-pull = <1>;
197 };
198
199 gpio6 {
200 pins = "gpio6";
201 function = "gpio";
202 drive-push-pull = <1>;
203 };
204
205 gpio7 {
206 pins = "gpio7";
207 function = "gpio";
208 drive-push-pull = <0>;
209 };
210 };
211
212 regulators {
213 in-sd0-supply = <&vdd_5v0_sys>;
214 in-sd1-supply = <&vdd_5v0_sys>;
215 in-sd2-supply = <&vdd_5v0_sys>;
216 in-sd3-supply = <&vdd_5v0_sys>;
217 in-sd4-supply = <&vdd_5v0_sys>;
218
219 in-ldo0-1-supply = <&vdd_5v0_sys>;
220 in-ldo2-supply = <&vdd_5v0_sys>;
221 in-ldo3-5-supply = <&vdd_5v0_sys>;
222 in-ldo4-6-supply = <&vdd_5v0_sys>;
223 in-ldo7-8-supply = <&vdd_1v8ls>;
224
225 vdd_1v0: sd0 {
226 regulator-name = "VDDIO_SYS_1V0";
227 regulator-min-microvolt = <1000000>;
228 regulator-max-microvolt = <1000000>;
229 regulator-always-on;
230 regulator-boot-on;
231 };
232
233 vdd_1v8hs: sd1 {
234 regulator-name = "VDDIO_SYS_1V8HS";
235 regulator-min-microvolt = <1800000>;
236 regulator-max-microvolt = <1800000>;
237 regulator-always-on;
238 regulator-boot-on;
239 };
240
241 vdd_1v8ls: sd2 {
242 regulator-name = "VDDIO_SYS_1V8LS";
243 regulator-min-microvolt = <1800000>;
244 regulator-max-microvolt = <1800000>;
245 regulator-always-on;
246 regulator-boot-on;
247 };
248
249 vdd_1v8ao: sd3 {
250 regulator-name = "VDDIO_AO_1V8";
251 regulator-min-microvolt = <1800000>;
252 regulator-max-microvolt = <1800000>;
253 regulator-always-on;
254 regulator-boot-on;
255 };
256
257 sd4 {
258 regulator-name = "VDD_DDR_1V1";
259 regulator-min-microvolt = <1100000>;
260 regulator-max-microvolt = <1100000>;
261 regulator-always-on;
262 regulator-boot-on;
263 };
264
265 ldo0 {
266 regulator-name = "VDD_RTC";
267 regulator-min-microvolt = <800000>;
268 regulator-max-microvolt = <800000>;
269 regulator-always-on;
270 regulator-boot-on;
271 };
272
273 ldo2 {
274 regulator-name = "VDDIO_AO_3V3";
275 regulator-min-microvolt = <3300000>;
276 regulator-max-microvolt = <3300000>;
277 regulator-always-on;
278 regulator-boot-on;
279 };
280
281 vdd_emmc_3v3: ldo3 {
282 regulator-name = "VDD_EMMC_3V3";
283 regulator-min-microvolt = <3300000>;
284 regulator-max-microvolt = <3300000>;
285 };
286
287 vdd_usb_3v3: ldo5 {
288 regulator-name = "VDD_USB_3V3";
289 regulator-min-microvolt = <3300000>;
290 regulator-max-microvolt = <3300000>;
291 regulator-always-on;
292 regulator-boot-on;
293 };
294
295 ldo6 {
296 regulator-name = "VDD_SDIO_3V3";
297 regulator-min-microvolt = <3300000>;
298 regulator-max-microvolt = <3300000>;
299 };
300
301 ldo7 {
302 regulator-name = "AVDD_CSI_1V2";
303 regulator-min-microvolt = <1200000>;
304 regulator-max-microvolt = <1200000>;
305 };
306 };
307 };
308 };
309 };
310};