[PATCH 3/3] ARM: dts: rockchip: phycore: Support UHS mode for SD card on phyCORE-RK3288 RDK

2018-02-13 Thread Daniel Schultz
From: Wadim Egorov 

The phyCORE-RK3288 RDK could enable SD3.0 card but need vdd_io_sd to
support the voltage range from 1.8V to 3.3V.
And we have also to add relevant UHS modes to the sdmmc node.
Let's also turn off the vdd_io_sd regulator in suspend state.

Signed-off-by: Wadim Egorov 
Signed-off-by: Daniel Schultz 
---
 arch/arm/boot/dts/rk3288-phycore-rdk.dts  | 4 
 arch/arm/boot/dts/rk3288-phycore-som.dtsi | 5 ++---
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/arch/arm/boot/dts/rk3288-phycore-rdk.dts 
b/arch/arm/boot/dts/rk3288-phycore-rdk.dts
index ecb26f0..985743f 100644
--- a/arch/arm/boot/dts/rk3288-phycore-rdk.dts
+++ b/arch/arm/boot/dts/rk3288-phycore-rdk.dts
@@ -265,6 +265,10 @@
disable-wp;
pinctrl-names = "default";
pinctrl-0 = <_clk _cmd _cd _bus4>;
+   sd-uhs-sdr12;
+   sd-uhs-sdr25;
+   sd-uhs-sdr50;
+   sd-uhs-sdr104;
vmmc-supply = <_sd>;
vqmmc-supply = <_io_sd>;
status = "okay";
diff --git a/arch/arm/boot/dts/rk3288-phycore-som.dtsi 
b/arch/arm/boot/dts/rk3288-phycore-som.dtsi
index 5eae477..f13bcb1 100644
--- a/arch/arm/boot/dts/rk3288-phycore-som.dtsi
+++ b/arch/arm/boot/dts/rk3288-phycore-som.dtsi
@@ -336,11 +336,10 @@
regulator-name = "vdd_io_sd";
regulator-always-on;
regulator-boot-on;
-   regulator-min-microvolt = <330>;
+   regulator-min-microvolt = <180>;
regulator-max-microvolt = <330>;
regulator-state-mem {
-   regulator-on-in-suspend;
-   regulator-suspend-microvolt = <330>;
+   regulator-off-in-suspend;
};
};
};
-- 
2.7.4



[PATCH 3/3] ARM: dts: rockchip: phycore: Support UHS mode for SD card on phyCORE-RK3288 RDK

2018-02-13 Thread Daniel Schultz
From: Wadim Egorov 

The phyCORE-RK3288 RDK could enable SD3.0 card but need vdd_io_sd to
support the voltage range from 1.8V to 3.3V.
And we have also to add relevant UHS modes to the sdmmc node.
Let's also turn off the vdd_io_sd regulator in suspend state.

Signed-off-by: Wadim Egorov 
Signed-off-by: Daniel Schultz 
---
 arch/arm/boot/dts/rk3288-phycore-rdk.dts  | 4 
 arch/arm/boot/dts/rk3288-phycore-som.dtsi | 5 ++---
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/arch/arm/boot/dts/rk3288-phycore-rdk.dts 
b/arch/arm/boot/dts/rk3288-phycore-rdk.dts
index ecb26f0..985743f 100644
--- a/arch/arm/boot/dts/rk3288-phycore-rdk.dts
+++ b/arch/arm/boot/dts/rk3288-phycore-rdk.dts
@@ -265,6 +265,10 @@
disable-wp;
pinctrl-names = "default";
pinctrl-0 = <_clk _cmd _cd _bus4>;
+   sd-uhs-sdr12;
+   sd-uhs-sdr25;
+   sd-uhs-sdr50;
+   sd-uhs-sdr104;
vmmc-supply = <_sd>;
vqmmc-supply = <_io_sd>;
status = "okay";
diff --git a/arch/arm/boot/dts/rk3288-phycore-som.dtsi 
b/arch/arm/boot/dts/rk3288-phycore-som.dtsi
index 5eae477..f13bcb1 100644
--- a/arch/arm/boot/dts/rk3288-phycore-som.dtsi
+++ b/arch/arm/boot/dts/rk3288-phycore-som.dtsi
@@ -336,11 +336,10 @@
regulator-name = "vdd_io_sd";
regulator-always-on;
regulator-boot-on;
-   regulator-min-microvolt = <330>;
+   regulator-min-microvolt = <180>;
regulator-max-microvolt = <330>;
regulator-state-mem {
-   regulator-on-in-suspend;
-   regulator-suspend-microvolt = <330>;
+   regulator-off-in-suspend;
};
};
};
-- 
2.7.4