aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Griffin <peter.griffin@linaro.org>2015-01-20 09:26:17 +0000
committerPeter Griffin <peter.griffin@linaro.org>2015-01-20 12:25:43 +0000
commitdcf7ad72d11ea760baa359e08958c1ddd4be9b86 (patch)
tree0f25db4e744a19b826c412c51d98ee33c87e2c03
parentd96f91c898a32341a5c21755c68419a90df98474 (diff)
ARM: STi: DT: STiH410: Add vqmmc-supply regulator dt node.
To enable correct switching from 3.3v to 1.8v the vsense regulator needs to be enabled. This is only functional on stih410, so is enabled in the stih410-b2120.dts file. Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
-rw-r--r--arch/arm/boot/dts/stih407-family.dtsi25
-rw-r--r--arch/arm/boot/dts/stih410-b2120.dts4
2 files changed, 29 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/stih407-family.dtsi b/arch/arm/boot/dts/stih407-family.dtsi
index df0284bfbf11..7e8163960b08 100644
--- a/arch/arm/boot/dts/stih407-family.dtsi
+++ b/arch/arm/boot/dts/stih407-family.dtsi
@@ -284,6 +284,30 @@
reset-names = "global", "port";
};
+ /*
+ * The table below summarizes which uses the FlashSS Top
+ * registers. For example the vsense register is exclusively
+ * mapped by the voltage regulator, the subset of registers
+ * to manage the eMMC RX/TX delay are only used inside the
+ * SDHCI ST driver.
+ *
+ *----------------------------------------------------------
+ * Offset Register Driver
+ *----------------------------------------------------------
+ * 0x0 FLASHSS_CONFIG NAND
+ * 0x4 VSENSE_CONFIG Voltage Regulator
+ * 0x8 eMMC_TX_CLK_DELAY SDHCI-ST
+ * ...
+ */
+
+ vmmc_reg: voltage-regulator {
+ compatible = "st,vmmc";
+ regulator-name = "vmmc0";
+ /* Control register for the VSENSE Module */
+ reg = <0x9061004 0x4>;
+ status = "disabled";
+ };
+
mmc0: sdhci@09060000 {
compatible = "st,sdhci-stih407", "st,sdhci";
status = "disabled";
@@ -295,6 +319,7 @@
pinctrl-0 = <&pinctrl_mmc0>;
clock-names = "mmc";
clocks = <&clk_s_c0_flexgen CLK_MMC_0>;
+ vqmmc-supply = <&vmmc_reg>;
bus-width = <8>;
non-removable;
};
diff --git a/arch/arm/boot/dts/stih410-b2120.dts b/arch/arm/boot/dts/stih410-b2120.dts
index 16f02c5e33a4..a7a7ec0a406c 100644
--- a/arch/arm/boot/dts/stih410-b2120.dts
+++ b/arch/arm/boot/dts/stih410-b2120.dts
@@ -29,6 +29,10 @@
soc {
+ vmmc_reg: voltage-regulator {
+ status = "okay";
+ };
+
mmc0: sdhci@09060000 {
max-frequency = <200000000>;
sd-uhs-sdr50;