Loading...
1// 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
53 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
80 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};
1// 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
53 serial@3100000 {
54 status = "okay";
55 };
56
57 i2c@3160000 {
58 status = "okay";
59
60 eeprom@50 {
61 compatible = "atmel,24c02";
62 reg = <0x50>;
63
64 label = "module";
65 vcc-supply = <&vdd_1v8ls>;
66 address-width = <8>;
67 pagesize = <8>;
68 size = <256>;
69 read-only;
70 };
71 };
72
73 padctl@3520000 {
74 avdd-usb-supply = <&vdd_usb_3v3>;
75 vclamp-usb-supply = <&vdd_1v8ao>;
76
77 ports {
78 usb2-1 {
79 vbus-supply = <&vdd_5v0_sys>;
80 };
81
82 usb2-3 {
83 vbus-supply = <&vdd_5v0_sys>;
84 };
85
86 usb3-0 {
87 vbus-supply = <&vdd_5v0_sys>;
88 };
89
90 usb3-3 {
91 vbus-supply = <&vdd_5v0_sys>;
92 };
93 };
94 };
95
96 rtc@c2a0000 {
97 status = "okay";
98 };
99
100 pmc@c360000 {
101 nvidia,invert-interrupt;
102 };
103 };
104
105 bpmp {
106 i2c {
107 status = "okay";
108
109 pmic: pmic@3c {
110 compatible = "maxim,max20024";
111 reg = <0x3c>;
112
113 interrupt-parent = <&pmc>;
114 interrupts = <24 IRQ_TYPE_LEVEL_LOW>;
115 #interrupt-cells = <2>;
116 interrupt-controller;
117
118 #gpio-cells = <2>;
119 gpio-controller;
120
121 pinctrl-names = "default";
122 pinctrl-0 = <&max20024_default>;
123
124 max20024_default: pinmux {
125 gpio0 {
126 pins = "gpio0";
127 function = "gpio";
128 };
129
130 gpio1 {
131 pins = "gpio1";
132 function = "fps-out";
133 maxim,active-fps-source = <MAX77620_FPS_SRC_DEF>;
134 };
135
136 gpio2 {
137 pins = "gpio2";
138 function = "fps-out";
139 maxim,active-fps-source = <MAX77620_FPS_SRC_DEF>;
140 };
141
142 gpio3 {
143 pins = "gpio3";
144 function = "fps-out";
145 maxim,active-fps-source = <MAX77620_FPS_SRC_DEF>;
146 };
147
148 gpio4 {
149 pins = "gpio4";
150 function = "32k-out1";
151 drive-push-pull = <1>;
152 };
153
154 gpio6 {
155 pins = "gpio6";
156 function = "gpio";
157 drive-push-pull = <1>;
158 };
159
160 gpio7 {
161 pins = "gpio7";
162 function = "gpio";
163 drive-push-pull = <0>;
164 };
165 };
166
167 fps {
168 fps0 {
169 maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN0>;
170 maxim,shutdown-fps-time-period-us = <640>;
171 };
172
173 fps1 {
174 maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN1>;
175 maxim,shutdown-fps-time-period-us = <640>;
176 maxim,device-state-on-disabled-event = <MAX77620_FPS_INACTIVE_STATE_SLEEP>;
177 };
178
179 fps2 {
180 maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN0>;
181 maxim,shutdown-fps-time-period-us = <640>;
182 };
183 };
184
185 regulators {
186 in-sd0-supply = <&vdd_5v0_sys>;
187 in-sd1-supply = <&vdd_5v0_sys>;
188 in-sd2-supply = <&vdd_5v0_sys>;
189 in-sd3-supply = <&vdd_5v0_sys>;
190 in-sd4-supply = <&vdd_5v0_sys>;
191
192 in-ldo0-1-supply = <&vdd_5v0_sys>;
193 in-ldo2-supply = <&vdd_5v0_sys>;
194 in-ldo3-5-supply = <&vdd_5v0_sys>;
195 in-ldo4-6-supply = <&vdd_5v0_sys>;
196 in-ldo7-8-supply = <&vdd_1v8ls>;
197
198 vdd_1v0: sd0 {
199 regulator-name = "VDDIO_SYS_1V0";
200 regulator-min-microvolt = <1000000>;
201 regulator-max-microvolt = <1000000>;
202 regulator-always-on;
203 regulator-boot-on;
204 };
205
206 vdd_1v8hs: sd1 {
207 regulator-name = "VDDIO_SYS_1V8HS";
208 regulator-min-microvolt = <1800000>;
209 regulator-max-microvolt = <1800000>;
210 regulator-always-on;
211 regulator-boot-on;
212 };
213
214 vdd_1v8ls: sd2 {
215 regulator-name = "VDDIO_SYS_1V8LS";
216 regulator-min-microvolt = <1800000>;
217 regulator-max-microvolt = <1800000>;
218 regulator-always-on;
219 regulator-boot-on;
220 };
221
222 vdd_1v8ao: sd3 {
223 regulator-name = "VDDIO_AO_1V8";
224 regulator-min-microvolt = <1800000>;
225 regulator-max-microvolt = <1800000>;
226 regulator-always-on;
227 regulator-boot-on;
228 };
229
230 sd4 {
231 regulator-name = "VDD_DDR_1V1";
232 regulator-min-microvolt = <1100000>;
233 regulator-max-microvolt = <1100000>;
234 regulator-always-on;
235 regulator-boot-on;
236 };
237
238 ldo0 {
239 regulator-name = "VDD_RTC";
240 regulator-min-microvolt = <800000>;
241 regulator-max-microvolt = <800000>;
242 regulator-always-on;
243 regulator-boot-on;
244 };
245
246 ldo2 {
247 regulator-name = "VDDIO_AO_3V3";
248 regulator-min-microvolt = <3300000>;
249 regulator-max-microvolt = <3300000>;
250 regulator-always-on;
251 regulator-boot-on;
252 };
253
254 vdd_emmc_3v3: ldo3 {
255 regulator-name = "VDD_EMMC_3V3";
256 regulator-min-microvolt = <3300000>;
257 regulator-max-microvolt = <3300000>;
258 };
259
260 vdd_usb_3v3: ldo5 {
261 regulator-name = "VDD_USB_3V3";
262 regulator-min-microvolt = <3300000>;
263 regulator-max-microvolt = <3300000>;
264 regulator-always-on;
265 regulator-boot-on;
266 };
267
268 ldo6 {
269 regulator-name = "VDD_SDIO_3V3";
270 regulator-min-microvolt = <3300000>;
271 regulator-max-microvolt = <3300000>;
272 };
273
274 ldo7 {
275 regulator-name = "AVDD_CSI_1V2";
276 regulator-min-microvolt = <1200000>;
277 regulator-max-microvolt = <1200000>;
278 };
279 };
280 };
281 };
282 };
283};