Skip to content

Commit 6a51b5c

Browse files
lkgrkhuangtao
authored andcommitted
arm64: dts: rockchip: rk3399-sapphire: add supply pin for sd card.
Change-Id: I5b8624f63ff05f3d2c8818ca99e20e8b92e3db11 Signed-off-by: Kaige Li <kevin.li@rock-chips.com>
1 parent af25336 commit 6a51b5c

1 file changed

Lines changed: 23 additions & 4 deletions

File tree

arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,17 @@
159159
regulator-max-microvolt = <5000000>;
160160
};
161161

162+
vcc_sd: vcc-sd {
163+
compatible = "regulator-fixed";
164+
enable-active-high;
165+
gpio = <&gpio0 1 GPIO_ACTIVE_HIGH>;
166+
pinctrl-names = "default";
167+
pinctrl-0 = <&vcc_sd_h>;
168+
regulator-name = "vcc_sd";
169+
regulator-min-microvolt = <3300000>;
170+
regulator-max-microvolt = <3300000>;
171+
};
172+
162173
vcc_phy: vcc-phy-regulator {
163174
compatible = "regulator-fixed";
164175
regulator-name = "vcc_phy";
@@ -383,12 +394,12 @@
383394
};
384395
};
385396

386-
vcc_sd: LDO_REG4 {
397+
vccio_sd: LDO_REG4 {
387398
regulator-always-on;
388399
regulator-boot-on;
389400
regulator-min-microvolt = <1800000>;
390401
regulator-max-microvolt = <3000000>;
391-
regulator-name = "vcc_sd";
402+
regulator-name = "vccio_sd";
392403
regulator-state-mem {
393404
regulator-on-in-suspend;
394405
regulator-suspend-microvolt = <3000000>;
@@ -496,7 +507,7 @@
496507

497508
bt656-supply = <&vcc_3v0>; /* bt656_gpio2ab_ms */
498509
audio-supply = <&vcca1v8_codec>; /* audio_gpio3d4a_ms */
499-
sdmmc-supply = <&vcc_sd>; /* sdmmc_gpio4b_ms */
510+
sdmmc-supply = <&vccio_sd>; /* sdmmc_gpio4b_ms */
500511
gpio1830-supply = <&vcc_3v0>; /* gpio1833_gpio4cd_ms */
501512
};
502513

@@ -563,7 +574,8 @@
563574
disable-wp;
564575
num-slots = <1>;
565576
//sd-uhs-sdr104;
566-
vqmmc-supply = <&vcc_sd>;
577+
vmmc-supply = <&vcc_sd>;
578+
vqmmc-supply = <&vccio_sd>;
567579
pinctrl-names = "default";
568580
pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
569581
status = "okay";
@@ -683,6 +695,13 @@
683695
};
684696
};
685697

698+
vcc_sd {
699+
vcc_sd_h: vcc-sd-h {
700+
rockchip,pins =
701+
<0 1 RK_FUNC_GPIO &pcfg_pull_up>;
702+
};
703+
};
704+
686705
fusb30x {
687706
fusb0_int: fusb0-int {
688707
rockchip,pins = <1 2 RK_FUNC_GPIO &pcfg_pull_up>;

0 commit comments

Comments
 (0)