summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/ste-hrefv60plus-tvk.dts
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2020-12-19 21:31:55 +0100
committerLinus Walleij <linus.walleij@linaro.org>2021-01-13 13:12:20 +0100
commit5282da459a97640ad2d12029665fa8c0a09d72a2 (patch)
treea49ee27134d1f32bda25adf51d69d135a324522f /arch/arm/boot/dts/ste-hrefv60plus-tvk.dts
parentARM: dts: ux500: Remove the GPADC HW IRQ (diff)
downloadlinux-5282da459a97640ad2d12029665fa8c0a09d72a2.tar.xz
linux-5282da459a97640ad2d12029665fa8c0a09d72a2.zip
ARM: dts: ux500: Push VMMCI down to each tree
The setting of VMMCI differs so much between different boards that we need to handle it on a per-board basis rather that complicating things by overriding stuff from the included DTSI:s. Push it down into top-level tree instead. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm/boot/dts/ste-hrefv60plus-tvk.dts')
-rw-r--r--arch/arm/boot/dts/ste-hrefv60plus-tvk.dts39
1 files changed, 39 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/ste-hrefv60plus-tvk.dts b/arch/arm/boot/dts/ste-hrefv60plus-tvk.dts
index 5d4b8245f02c..9c2d2ee6d6d8 100644
--- a/arch/arm/boot/dts/ste-hrefv60plus-tvk.dts
+++ b/arch/arm/boot/dts/ste-hrefv60plus-tvk.dts
@@ -13,4 +13,43 @@
/ {
model = "ST-Ericsson HREF (v60+) and TVK1281618 UIB";
compatible = "st-ericsson,hrefv60+", "st-ericsson,u8500";
+
+ /* ST6G3244ME level translator for 1.8/2.9 V */
+ vmmci: regulator-gpio {
+ compatible = "regulator-gpio";
+
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <2900000>;
+ regulator-name = "mmci-reg";
+ regulator-type = "voltage";
+
+ startup-delay-us = <100>;
+
+ states = <1800000 0x1
+ 2900000 0x0>;
+
+ gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>;
+ enable-gpio = <&gpio5 9 GPIO_ACTIVE_HIGH>;
+ enable-active-high;
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&vmmci_default_mode>;
+ };
+};
+
+&pinctrl {
+ vmmci {
+ vmmci_default_mode: vmmc_default {
+ /* VMMCI level-shifter enable */
+ default_hrefv60_cfg2 {
+ pins = "GPIO169_D22";
+ ste,config = <&gpio_out_hi>;
+ };
+ /* VMMCI level-shifter voltage select */
+ default_hrefv60_cfg3 {
+ pins = "GPIO5_AG6";
+ ste,config = <&gpio_out_hi>;
+ };
+ };
+ };
};