hc
2023-11-22 f743a7adbd6e230d66a6206fa115b59fec2d88eb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
// SPDX-License-Identifier: GPL-2.0
#include "tegra194.dtsi"
 
#include <dt-bindings/mfd/max77620.h>
 
/ {
   model = "NVIDIA Tegra194 P2888 Processor Module";
   compatible = "nvidia,p2888", "nvidia,tegra194";
 
   aliases {
       sdhci0 = "/cbb/sdhci@3460000";
       sdhci1 = "/cbb/sdhci@3400000";
       serial0 = &uartb;
       i2c0 = "/bpmp/i2c";
       i2c1 = "/cbb/i2c@3160000";
       i2c2 = "/cbb/i2c@c240000";
       i2c3 = "/cbb/i2c@3180000";
       i2c4 = "/cbb/i2c@3190000";
       i2c5 = "/cbb/i2c@31c0000";
       i2c6 = "/cbb/i2c@c250000";
       i2c7 = "/cbb/i2c@31e0000";
   };
 
   chosen {
       bootargs = "console=ttyS0,115200n8";
       stdout-path = "serial0:115200n8";
   };
 
   cbb {
       ethernet@2490000 {
           status = "okay";
 
           phy-reset-gpios = <&gpio TEGRA194_MAIN_GPIO(G, 5) GPIO_ACTIVE_LOW>;
           phy-handle = <&phy>;
           phy-mode = "rgmii-id";
 
           mdio {
               #address-cells = <1>;
               #size-cells = <0>;
 
               phy: phy@0 {
                   compatible = "ethernet-phy-ieee802.3-c22";
                   reg = <0x0>;
                   interrupt-parent = <&gpio>;
                   interrupts = <TEGRA194_MAIN_GPIO(G, 4) IRQ_TYPE_LEVEL_LOW>;
               };
           };
       };
 
       serial@3110000 {
           status = "okay";
       };
 
       /* SDMMC1 (SD/MMC) */
       sdhci@3400000 {
           cd-gpios = <&gpio TEGRA194_MAIN_GPIO(A, 0) GPIO_ACTIVE_LOW>;
       };
 
       /* SDMMC4 (eMMC) */
       sdhci@3460000 {
           status = "okay";
           bus-width = <8>;
           non-removable;
 
           vqmmc-supply = <&vdd_1v8ls>;
           vmmc-supply = <&vdd_emmc_3v3>;
       };
 
       pmc@c360000 {
           nvidia,invert-interrupt;
       };
   };
 
   bpmp {
       i2c {
           status = "okay";
 
           pmic: pmic@3c {
               compatible = "maxim,max20024";
               reg = <0x3c>;
 
               interrupts = <GIC_SPI 209 IRQ_TYPE_LEVEL_HIGH>;
               #interrupt-cells = <2>;
               interrupt-controller;
 
               #gpio-cells = <2>;
               gpio-controller;
 
               pinctrl-names = "default";
               pinctrl-0 = <&max20024_default>;
 
               max20024_default: pinmux {
                   gpio0 {
                       pins = "gpio0";
                       function = "gpio";
                   };
 
                   gpio1 {
                       pins = "gpio1";
                       function = "fps-out";
                       maxim,active-fps-source = <MAX77620_FPS_SRC_DEF>;
                   };
 
                   gpio2 {
                       pins = "gpio2";
                       function = "fps-out";
                       maxim,active-fps-source = <MAX77620_FPS_SRC_DEF>;
                   };
 
                   gpio3 {
                       pins = "gpio3";
                       function = "fps-out";
                       maxim,active-fps-source = <MAX77620_FPS_SRC_DEF>;
                   };
 
                   gpio4 {
                       pins = "gpio4";
                       function = "32k-out1";
                       drive-push-pull = <1>;
                   };
 
                   gpio6 {
                       pins = "gpio6";
                       function = "gpio";
                       drive-push-pull = <1>;
                   };
 
                   gpio7 {
                       pins = "gpio7";
                       function = "gpio";
                       drive-push-pull = <0>;
                   };
               };
 
               fps {
                   fps0 {
                       maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN0>;
                       maxim,shutdown-fps-time-period-us = <640>;
                   };
 
                   fps1 {
                       maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN1>;
                       maxim,shutdown-fps-time-period-us = <640>;
                       maxim,device-state-on-disabled-event = <MAX77620_FPS_INACTIVE_STATE_SLEEP>;
                   };
 
                   fps2 {
                       maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN0>;
                       maxim,shutdown-fps-time-period-us = <640>;
                   };
               };
 
               regulators {
                   in-sd0-supply = <&vdd_5v0_sys>;
                   in-sd1-supply = <&vdd_5v0_sys>;
                   in-sd2-supply = <&vdd_5v0_sys>;
                   in-sd3-supply = <&vdd_5v0_sys>;
                   in-sd4-supply = <&vdd_5v0_sys>;
 
                   in-ldo0-1-supply = <&vdd_5v0_sys>;
                   in-ldo2-supply = <&vdd_5v0_sys>;
                   in-ldo3-5-supply = <&vdd_5v0_sys>;
                   in-ldo4-6-supply = <&vdd_5v0_sys>;
                   in-ldo7-8-supply = <&vdd_1v8ls>;
 
                   sd0 {
                       regulator-name = "VDD_1V0";
                       regulator-min-microvolt = <1000000>;
                       regulator-max-microvolt = <1000000>;
                       regulator-always-on;
                       regulator-boot-on;
                   };
 
                   sd1 {
                       regulator-name = "VDD_1V8HS";
                       regulator-min-microvolt = <1800000>;
                       regulator-max-microvolt = <1800000>;
                       regulator-always-on;
                       regulator-boot-on;
                   };
 
                   vdd_1v8ls: sd2 {
                       regulator-name = "VDD_1V8LS";
                       regulator-min-microvolt = <1800000>;
                       regulator-max-microvolt = <1800000>;
                       regulator-always-on;
                       regulator-boot-on;
                   };
 
                   sd3 {
                       regulator-name = "VDD_1V8AO";
                       regulator-min-microvolt = <1800000>;
                       regulator-max-microvolt = <1800000>;
                       regulator-always-on;
                       regulator-boot-on;
                   };
 
                   sd4 {
                       regulator-name = "VDD_DDR_1V1";
                       regulator-min-microvolt = <1100000>;
                       regulator-max-microvolt = <1100000>;
                       regulator-always-on;
                       regulator-boot-on;
                   };
 
                   ldo0 {
                       regulator-name = "VDD_RTC";
                       regulator-min-microvolt = <800000>;
                       regulator-max-microvolt = <800000>;
                       regulator-always-on;
                       regulator-boot-on;
                   };
 
                   ldo2 {
                       regulator-name = "VDD_AO_3V3";
                       regulator-min-microvolt = <3300000>;
                       regulator-max-microvolt = <3300000>;
                       regulator-always-on;
                       regulator-boot-on;
                   };
 
                   vdd_emmc_3v3: ldo3 {
                       regulator-name = "VDD_EMMC_3V3";
                       regulator-min-microvolt = <3300000>;
                       regulator-max-microvolt = <3300000>;
                   };
 
                   ldo5 {
                       regulator-name = "VDD_USB_3V3";
                       regulator-min-microvolt = <3300000>;
                       regulator-max-microvolt = <3300000>;
                   };
 
                   ldo6 {
                       regulator-name = "VDD_SDIO_3V3";
                       regulator-min-microvolt = <3300000>;
                       regulator-max-microvolt = <3300000>;
                   };
 
                   ldo7 {
                       regulator-name = "VDD_CSI_1V2";
                       regulator-min-microvolt = <1200000>;
                       regulator-max-microvolt = <1200000>;
                   };
               };
           };
       };
   };
 
   regulators {
       compatible = "simple-bus";
       #address-cells = <1>;
       #size-cells = <0>;
 
       vdd_5v0_sys: regulator@0 {
           compatible = "regulator-fixed";
           reg = <0>;
 
           regulator-name = "VIN_SYS_5V0";
           regulator-min-microvolt = <5000000>;
           regulator-max-microvolt = <5000000>;
           regulator-always-on;
           regulator-boot-on;
       };
   };
};