Skip to content

Commit 6636ff1

Browse files
Andy3Kuoasus-leslieyu
authored andcommitted
pmic: modify pmic setup for tinker board device
Change-Id: I50c5f0fba871c7648140003692bce9bc9e3feff6
1 parent fccea51 commit 6636ff1

2 files changed

Lines changed: 34 additions & 27 deletions

File tree

arch/arm/boot/dts/rk3288-tinker-board.dts

Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@
285285
backlight = <&backlight>;
286286
enable-delay-ms = <120>;
287287
pinctrl-0 = <&lcd_cs>;
288-
power-supply = <&vcc_lcd>;
288+
power-supply = <&vcc33_lan>;
289289
status = "okay";
290290

291291
display-timings {
@@ -406,7 +406,8 @@
406406
regulator-name = "vdd_gpu";
407407
regulator-ramp-delay = <6000>;
408408
regulator-state-mem {
409-
regulator-off-in-suspend;
409+
regulator-on-in-suspend;
410+
regulator-suspend-microvolt = <1000000>;
410411
};
411412
};
412413

@@ -431,24 +432,24 @@
431432
};
432433
};
433434

434-
vcc_tp: LDO_REG1 {
435+
vcc18_ldo1: LDO_REG1 {
435436
regulator-always-on;
436437
regulator-boot-on;
437438
regulator-min-microvolt = <1800000>;
438439
regulator-max-microvolt = <1800000>;
439-
regulator-name = "vcc_tp";
440+
regulator-name = "vcc18_ldo1";
440441
regulator-state-mem {
441442
regulator-on-in-suspend;
442443
regulator-suspend-microvolt = <1800000>;
443444
};
444445
};
445446

446-
vcca_codec: LDO_REG2 {
447+
vcc33_mipi: LDO_REG2 {
447448
regulator-always-on;
448449
regulator-boot-on;
449450
regulator-min-microvolt = <3300000>;
450451
regulator-max-microvolt = <3300000>;
451-
regulator-name = "vcca_codec";
452+
regulator-name = "vcc33_mipi";
452453
regulator-state-mem {
453454
regulator-off-in-suspend;
454455
};
@@ -466,14 +467,15 @@
466467
};
467468
};
468469

469-
vcc_wl: LDO_REG4 {
470+
vcc18_codec: LDO_REG4 {
470471
regulator-always-on;
471472
regulator-boot-on;
472473
regulator-min-microvolt = <1800000>;
473-
regulator-max-microvolt = <3300000>;
474-
regulator-name = "vcc_wl";
474+
regulator-max-microvolt = <1800000>;
475+
regulator-name = "vcc18_codec";
475476
regulator-state-mem {
476477
regulator-on-in-suspend;
478+
regulator-suspend-microvolt = <1800000>;
477479
};
478480
};
479481

@@ -496,7 +498,8 @@
496498
regulator-max-microvolt = <1000000>;
497499
regulator-name = "vdd10_lcd";
498500
regulator-state-mem {
499-
regulator-off-in-suspend;
501+
regulator-on-in-suspend;
502+
regulator-suspend-microvolt = <1000000>;
500503
};
501504
};
502505

@@ -519,29 +522,25 @@
519522
regulator-max-microvolt = <1800000>;
520523
regulator-name = "vcc18_lcd";
521524
regulator-state-mem {
522-
regulator-off-in-suspend;
525+
regulator-on-in-suspend;
526+
regulator-suspend-microvolt = <1800000>;
523527
};
524528
};
525529

526-
vcc_sd: SWITCH_REG1 {
527-
regulator-always-on;
530+
vcc33_sd: SWITCH_REG1 {
528531
regulator-boot-on;
529-
regulator-min-microvolt = <3300000>;
530-
regulator-max-microvolt = <3300000>;
531-
regulator-name = "vcc_sd";
532+
regulator-name = "vcc33_sd";
532533
regulator-state-mem {
533534
regulator-on-in-suspend;
534535
};
535536
};
536537

537-
vcc_lcd: SWITCH_REG2 {
538+
vcc33_lan: SWITCH_REG2 {
538539
regulator-always-on;
539540
regulator-boot-on;
540-
regulator-min-microvolt = <3300000>;
541-
regulator-max-microvolt = <3300000>;
542-
regulator-name = "vcc_lcd";
541+
regulator-name = "vcc33_lan";
543542
regulator-state-mem {
544-
regulator-off-in-suspend;
543+
regulator-on-in-suspend;
545544
};
546545
};
547546
};
@@ -606,13 +605,13 @@
606605
audio-supply = <&vcc_io>;
607606
bb-supply = <&vcc_io>;
608607
dvp-supply = <&vcc18_dvp>;
609-
flash0-supply = <&vcc_18>;
608+
flash0-supply = <&vcc_flash>;
610609
flash1-supply = <&vcc_io>;
611610
gpio30-supply = <&vcc_io>;
612611
gpio1830 = <&vcc_io>;
613-
lcdc-supply = <&vcc_lcd>;
612+
lcdc-supply = <&vcc33_lan>;
614613
sdcard-supply = <&vccio_sd>;
615-
wifi-supply = <&vcc_wl>;
614+
wifi-supply = <&vcc_18>;
616615
};
617616

618617
&i2c2 {

arch/arm/boot/dts/rk3288-tinker-board.dtsi

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,14 @@
155155
vin-supply = <&vcc_io>;
156156
};
157157

158+
vcc_flash: flash-regulator {
159+
compatible = "regulator-fixed";
160+
regulator-name = "vcc_flash";
161+
regulator-min-microvolt = <1800000>;
162+
regulator-max-microvolt = <1800000>;
163+
vin-supply = <&vcc_io>;
164+
};
165+
158166
wireless-bluetooth {
159167
compatible = "bluetooth-platdata";
160168
uart_rts_gpios = <&gpio4 19 GPIO_ACTIVE_LOW>;
@@ -194,7 +202,7 @@
194202
};
195203

196204
&gmac {
197-
phy-supply = <&vcc_phy>;
205+
phy-supply = <&vcc33_lan>;
198206
phy-mode = "rgmii";
199207
clock_in_out = "input";
200208
snps,reset-gpio = <&gpio4 7 0>;
@@ -217,7 +225,7 @@
217225
};
218226

219227
&saradc {
220-
vref-supply = <&vccadc_ref>;
228+
vref-supply = <&vcc18_ldo1>;
221229
status = "okay";
222230
};
223231

@@ -236,7 +244,7 @@
236244
pinctrl-names = "default";
237245
pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
238246
status = "okay";
239-
vmmc-supply = <&vcc_sd>;
247+
vmmc-supply = <&vcc33_sd>;
240248
vqmmc-supply = <&vccio_sd>;
241249
supports-sd;
242250
};

0 commit comments

Comments
 (0)