hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/arch/arm64/boot/dts/rockchip/rk3588-vehicle-evb-v22.dts
....@@ -7,7 +7,9 @@
77 /dts-v1/;
88
99 #include "rk3588-vehicle-evb-v21.dtsi"
10
+#include "rk3588-vehicle-evb-v22-nca9539-io-expander.dtsi"
1011 #include "rk3588-vehicle-evb-maxim-max96712-dphy3.dtsi"
12
+#include "rk3588-vehicle-evb-maxim-max96756-dphy0.dtsi"
1113 #include "rk3588-vehicle-serdes-mfd-display-rohm.dtsi"
1214 #include "rk3588-android.dtsi"
1315
....@@ -27,6 +29,8 @@
2729 vin-supply = <&vcc12v_dcin>;
2830 pinctrl-names = "default";
2931 pinctrl-0 = <&vcc5v0_buck_en>;
32
+ startup-delay-us = <2500>;
33
+ off-on-delay-us = <1500>;
3034 regulator-state-mem {
3135 regulator-on-in-suspend;
3236 regulator-suspend-microvolt = <5000000>;
....@@ -59,7 +63,7 @@
5963 regulator-min-microvolt = <12000000>;
6064 regulator-max-microvolt = <12000000>;
6165 enable-active-high;
62
- gpio = <&i2c5_nca9539_gpio 0 GPIO_ACTIVE_HIGH>;
66
+ gpio = <&nca9539_gpio 0 GPIO_ACTIVE_HIGH>;
6367 vin-supply = <&vcc12v_dcin>;
6468 regulator-state-mem {
6569 regulator-off-in-suspend;
....@@ -75,7 +79,7 @@
7579 regulator-min-microvolt = <12000000>;
7680 regulator-max-microvolt = <12000000>;
7781 enable-active-high;
78
- gpio = <&i2c5_nca9539_gpio 1 GPIO_ACTIVE_HIGH>;
82
+ gpio = <&nca9539_gpio 1 GPIO_ACTIVE_HIGH>;
7983 vin-supply = <&vcc12v_dcin>;
8084 regulator-state-mem {
8185 regulator-off-in-suspend;
....@@ -91,7 +95,7 @@
9195 regulator-min-microvolt = <12000000>;
9296 regulator-max-microvolt = <12000000>;
9397 enable-active-high;
94
- gpio = <&i2c5_nca9539_gpio 2 GPIO_ACTIVE_HIGH>;
98
+ gpio = <&nca9539_gpio 2 GPIO_ACTIVE_HIGH>;
9599 vin-supply = <&vcc12v_dcin>;
96100 regulator-state-mem {
97101 regulator-off-in-suspend;
....@@ -107,7 +111,7 @@
107111 regulator-min-microvolt = <12000000>;
108112 regulator-max-microvolt = <12000000>;
109113 enable-active-high;
110
- gpio = <&i2c5_nca9539_gpio 3 GPIO_ACTIVE_HIGH>;
114
+ gpio = <&nca9539_gpio 3 GPIO_ACTIVE_HIGH>;
111115 vin-supply = <&vcc12v_dcin>;
112116 regulator-state-mem {
113117 regulator-off-in-suspend;
....@@ -123,7 +127,7 @@
123127 regulator-min-microvolt = <12000000>;
124128 regulator-max-microvolt = <12000000>;
125129 enable-active-high;
126
- gpio = <&i2c5_nca9539_gpio 4 GPIO_ACTIVE_HIGH>;
130
+ gpio = <&nca9539_gpio 4 GPIO_ACTIVE_HIGH>;
127131 vin-supply = <&vcc12v_dcin>;
128132 regulator-state-mem {
129133 regulator-off-in-suspend;
....@@ -139,7 +143,7 @@
139143 regulator-min-microvolt = <12000000>;
140144 regulator-max-microvolt = <12000000>;
141145 enable-active-high;
142
- gpio = <&i2c5_nca9539_gpio 5 GPIO_ACTIVE_HIGH>;
146
+ gpio = <&nca9539_gpio 5 GPIO_ACTIVE_HIGH>;
143147 vin-supply = <&vcc12v_dcin>;
144148 regulator-state-mem {
145149 regulator-off-in-suspend;
....@@ -147,15 +151,16 @@
147151 };
148152 };
149153
150
- camera1_vcc12v_buck: camera1_vcc12v-buck {
154
+ dcphy0_vcc12v_buck: dcphy0_vcc12v-buck {
151155 compatible = "regulator-fixed";
152
- regulator-name = "camera1_vcc12v_buck";
156
+ regulator-name = "dcphy0_vcc12v_buck";
153157 regulator-boot-on;
154
- regulator-always-on;
155158 regulator-min-microvolt = <12000000>;
156159 regulator-max-microvolt = <12000000>;
157160 enable-active-high;
158
- gpio = <&i2c5_nca9539_gpio 6 GPIO_ACTIVE_HIGH>;
161
+ gpio = <&nca9539_gpio 6 GPIO_ACTIVE_HIGH>;
162
+ startup-delay-us = <2000>;
163
+ off-on-delay-us = <16000>;
159164 vin-supply = <&vcc12v_dcin>;
160165 regulator-state-mem {
161166 regulator-off-in-suspend;
....@@ -163,15 +168,16 @@
163168 };
164169 };
165170
166
- camera2_vcc12v_buck: camera2_vcc12v-buck {
171
+ dcphy1_vcc12v_buck: dcphy1_vcc12v-buck {
167172 compatible = "regulator-fixed";
168
- regulator-name = "camera2_vcc12v_buck";
173
+ regulator-name = "dcphy1_vcc12v_buck";
169174 regulator-boot-on;
170
- regulator-always-on;
171175 regulator-min-microvolt = <12000000>;
172176 regulator-max-microvolt = <12000000>;
173177 enable-active-high;
174
- gpio = <&i2c5_nca9539_gpio 7 GPIO_ACTIVE_HIGH>;
178
+ gpio = <&nca9539_gpio 7 GPIO_ACTIVE_HIGH>;
179
+ startup-delay-us = <2000>;
180
+ off-on-delay-us = <16000>;
175181 vin-supply = <&vcc12v_dcin>;
176182 regulator-state-mem {
177183 regulator-off-in-suspend;
....@@ -179,15 +185,16 @@
179185 };
180186 };
181187
182
- camera3_vcc12v_buck: camera3_vcc12v-buck {
188
+ dphy0_vcc12v_buck: dphy0_vcc12v-buck {
183189 compatible = "regulator-fixed";
184
- regulator-name = "camera3_vcc12v_buck";
190
+ regulator-name = "dphy0_vcc12v_buck";
185191 regulator-boot-on;
186
- regulator-always-on;
187192 regulator-min-microvolt = <12000000>;
188193 regulator-max-microvolt = <12000000>;
189194 enable-active-high;
190
- gpio = <&i2c5_nca9539_gpio 8 GPIO_ACTIVE_HIGH>;
195
+ gpio = <&nca9539_gpio 8 GPIO_ACTIVE_HIGH>;
196
+ startup-delay-us = <2000>;
197
+ off-on-delay-us = <16000>;
191198 vin-supply = <&vcc12v_dcin>;
192199 regulator-state-mem {
193200 regulator-off-in-suspend;
....@@ -195,15 +202,16 @@
195202 };
196203 };
197204
198
- camera4_vcc12v_buck: camera4_vcc12v-buck {
205
+ dphy3_vcc12v_buck: dphy3_vcc12v-buck {
199206 compatible = "regulator-fixed";
200
- regulator-name = "camera4_vcc12v_buck";
207
+ regulator-name = "dphy3_vcc12v_buck";
201208 regulator-boot-on;
202
- regulator-always-on;
203209 regulator-min-microvolt = <12000000>;
204210 regulator-max-microvolt = <12000000>;
205211 enable-active-high;
206
- gpio = <&i2c5_nca9539_gpio 9 GPIO_ACTIVE_HIGH>;
212
+ gpio = <&nca9539_gpio 9 GPIO_ACTIVE_HIGH>;
213
+ startup-delay-us = <2000>;
214
+ off-on-delay-us = <16000>;
207215 vin-supply = <&vcc12v_dcin>;
208216 regulator-state-mem {
209217 regulator-off-in-suspend;
....@@ -219,7 +227,9 @@
219227 regulator-min-microvolt = <5000000>;
220228 regulator-max-microvolt = <5000000>;
221229 enable-active-high;
222
- gpio = <&i2c5_nca9539_gpio 10 GPIO_ACTIVE_HIGH>;
230
+ gpio = <&nca9539_gpio 10 GPIO_ACTIVE_HIGH>;
231
+ startup-delay-us = <2000>;
232
+ off-on-delay-us = <16000>;
223233 vin-supply = <&vcc5v0_usb>;
224234 };
225235
....@@ -231,7 +241,9 @@
231241 regulator-min-microvolt = <5000000>;
232242 regulator-max-microvolt = <5000000>;
233243 enable-active-high;
234
- gpio = <&i2c5_nca9539_gpio 11 GPIO_ACTIVE_HIGH>;
244
+ gpio = <&nca9539_gpio 11 GPIO_ACTIVE_HIGH>;
245
+ startup-delay-us = <2000>;
246
+ off-on-delay-us = <16000>;
235247 vin-supply = <&vcc5v0_usb>;
236248 };
237249
....@@ -243,7 +255,7 @@
243255 regulator-min-microvolt = <12000000>;
244256 regulator-max-microvolt = <12000000>;
245257 enable-active-high;
246
- gpio = <&i2c5_nca9539_gpio 12 GPIO_ACTIVE_HIGH>;
258
+ gpio = <&nca9539_gpio 12 GPIO_ACTIVE_HIGH>;
247259 vin-supply = <&vcc12v_dcin>;
248260 regulator-state-mem {
249261 regulator-off-in-suspend;
....@@ -255,22 +267,22 @@
255267 compatible = "regulator-fixed";
256268 regulator-name = "minipcie_power_buck";
257269 regulator-boot-on;
258
- regulator-always-on;
259
- regulator-min-microvolt = <12000000>;
260
- regulator-max-microvolt = <12000000>;
270
+ //regulator-always-on;
271
+ regulator-min-microvolt = <3300000>;
272
+ regulator-max-microvolt = <3300000>;
261273 enable-active-high;
262
- gpio = <&i2c5_nca9539_gpio 13 GPIO_ACTIVE_HIGH>;
263
- vin-supply = <&vcc5v0_usb>;
274
+ gpio = <&nca9539_gpio 13 GPIO_ACTIVE_HIGH>;
275
+ vin-supply = <&vcc5v0_buck>;
264276 regulator-state-mem {
265
- regulator-off-in-suspend;
266
- regulator-suspend-microvolt = <12000000>;
277
+ regulator-on-in-suspend;
278
+ regulator-suspend-microvolt = <3300000>;
267279 };
268280 };
269281
270282 bt-sound {
271283 compatible = "simple-audio-card";
272284 simple-audio-card,format = "dsp_a";
273
- simple-audio-card,bitclock-inversion = <1>;
285
+ simple-audio-card,bitclock-inversion;
274286 simple-audio-card,mclk-fs = <256>;
275287 simple-audio-card,name = "rockchip,bt";
276288 simple-audio-card,cpu {
....@@ -329,6 +341,18 @@
329341 };
330342 };
331343
344
+&max96712_dphy3_vcc1v2 {
345
+ vin-supply = <&vcc5v0_buck>;
346
+};
347
+
348
+&max96712_dphy3_poc {
349
+ vin-supply = <&dphy3_vcc12v_buck>;
350
+};
351
+
352
+&max96756_dphy0_vcc1v2 {
353
+ vin-supply = <&vcc5v0_buck>;
354
+};
355
+
332356 &avdd1v8_ddr_pll_s0 {
333357 regulator-state-mem {
334358 regulator-on-in-suspend;
....@@ -351,12 +375,12 @@
351375 };
352376
353377 &i2c2_bu18tl82 {
354
- //route-enable;
355
- use-delay-work;
378
+ route-enable;
379
+ //use-delay-work;
356380 };
357381
358382 &i2c2_bu18rl82 {
359
- use-delay-work;
383
+ //use-delay-work;
360384 vpower-supply = <&lcd1_vcc12v_buck>;
361385 };
362386
....@@ -367,11 +391,11 @@
367391 };
368392
369393 &i2c4_bu18tl82 {
370
- use-delay-work;
394
+ //use-delay-work;
371395 };
372396
373397 &i2c4_bu18rl82 {
374
- use-delay-work;
398
+ //use-delay-work;
375399 vpower-supply = <&lcd5_vcc12v_buck>;
376400 };
377401
....@@ -380,44 +404,14 @@
380404 interrupt-parent = <&gpio1>;
381405 interrupts = <RK_PA5 IRQ_TYPE_LEVEL_LOW>;
382406 };
383
-
384
- i2c5_nca9539: i2c5-nca9539@74 {
385
- compatible = "novo,nca9539";
386
- reg = <0x74>;
387
- status = "okay";
388
-
389
- /* P00-P07 P10-P17 output HIGH level default*/
390
- serdes-init-sequence = [
391
- 0002 00ff
392
- 0003 00ff
393
- 0004 0000
394
- 0005 0000
395
- 0006 0000
396
- 0007 0000
397
- ];
398
-
399
- i2c5_nca9539_pinctrl: i2c5-nca9539-pinctrl {
400
- compatible = "novo,nca9539-pinctrl";
401
- status = "okay";
402
-
403
- i2c5_nca9539_gpio: i2c5-nca9539-gpio {
404
- compatible = "novo,nca9539-gpio";
405
- status = "okay";
406
-
407
- gpio-controller;
408
- #gpio-cells = <2>;
409
- gpio-ranges = <&i2c5_nca9539_pinctrl 0 256 16>;
410
- };
411
- };
412
- };
413407 };
414408
415409 &i2c5_bu18tl82 {
416
- use-delay-work;
410
+ //use-delay-work;
417411 };
418412
419413 &i2c5_bu18rl82 {
420
- use-delay-work;
414
+ //use-delay-work;
421415 vpower-supply = <&lcd3_vcc12v_buck>;
422416 };
423417
....@@ -428,8 +422,8 @@
428422 };
429423
430424 &i2c6_bu18tl82 {
431
- //route-enable;
432
- use-delay-work;
425
+ route-enable;
426
+ //use-delay-work;
433427 };
434428
435429 &i2c6_bu18rl82 {
....@@ -438,6 +432,10 @@
438432 };
439433
440434 &pinctrl {
435
+ pinctrl-names = "init";
436
+ pinctrl-0 = <&max96712_dphy3_pwdn
437
+ &max96712_dphy3_errb
438
+ &max96712_dphy3_lock>;
441439
442440 bl {
443441 bl0_enable_pin: bl0-enable-pin {
....@@ -471,15 +469,15 @@
471469
472470 max96712-dphy3 {
473471 max96712_dphy3_pwdn: max96712-dphy3-pwdn {
474
- rockchip,pins = <4 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>;
472
+ rockchip,pins = <4 RK_PA6 RK_FUNC_GPIO &pcfg_output_low>;
475473 };
476474
477475 max96712_dphy3_errb: max96712-dphy3-errb {
478
- rockchip,pins = <1 RK_PB1 RK_FUNC_GPIO &pcfg_pull_up>;
476
+ rockchip,pins = <1 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none_smt>;
479477 };
480478
481479 max96712_dphy3_lock: max96712-dphy3-lock {
482
- rockchip,pins = <4 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>;
480
+ rockchip,pins = <4 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none_smt>;
483481 };
484482 };
485483
....@@ -543,11 +541,11 @@
543541 };
544542
545543 &route_dsi0 {
546
- status = "disabled";
544
+ status = "okay";
547545 };
548546
549547 &route_dsi1 {
550
- status = "disabled";
548
+ status = "okay";
551549 };
552550
553551 &u2phy1_otg {