arm64: tegra: p2597: Add SDMMC power supplies
authorThierry Reding <treding@nvidia.com>
Fri, 4 Mar 2016 14:26:47 +0000 (15:26 +0100)
committerThierry Reding <treding@nvidia.com>
Thu, 14 Jul 2016 14:20:20 +0000 (16:20 +0200)
Add power supplies for the SD/MMC card slot. Note that vmmc-supply is
currently restricted to 3.3 V because we don't support switching the
mode yet.

Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi

index 27bb835d6bcb752abb4d5276c0bc289431748bd7..b28aff5e104d3b534654b7d8bc0d33c4bc8dba83 100644 (file)
                no-1-8-v;
 
                cd-gpios = <&gpio TEGRA_GPIO(Z, 1) GPIO_ACTIVE_LOW>;
+
+               vqmmc-supply = <&vddio_sdmmc>;
+               vmmc-supply = <&vdd_3v3_sd>;
        };
 
        regulators {
                        regulator-always-on;
                        regulator-boot-on;
                };
+
+               vdd_3v3_sd: regulator@4 {
+                       compatible = "regulator-fixed";
+                       reg = <4>;
+                       regulator-name = "VDD_3V3_SD";
+                       regulator-min-microvolt = <3300000>;
+                       regulator-max-microvolt = <3300000>;
+                       gpio = <&gpio TEGRA_GPIO(Z, 4) GPIO_ACTIVE_HIGH>;
+                       enable-active-high;
+                       vin-supply = <&vdd_3v3_sys>;
+
+                       regulator-enable-ramp-delay = <472>;
+                       regulator-disable-ramp-delay = <4880>;
+               };
        };
 
        gpio-keys {