arm64: tegra: Enable SD/MMC slot on P2771
authorThierry Reding <treding@nvidia.com>
Wed, 8 Mar 2017 13:31:45 +0000 (14:31 +0100)
committerThierry Reding <treding@nvidia.com>
Fri, 10 Mar 2017 16:37:34 +0000 (17:37 +0100)
The P3310 processor module makes provisions for exposing the SDMMC1
controller via a standard SD/MMC slot, which the P2771 supports. Hook
up the power supply provided on the P2771 carrier board and enable
the device tree node.

Acked-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts

index 0d3c0996d8325c2dc53a5dcec8041e4a7bf6b93e..b80c1c3483db715192a7c1f5587346ec61d8b63e 100644 (file)
@@ -5,4 +5,27 @@
 / {
        model = "NVIDIA Tegra186 P2771-0000 Development Board";
        compatible = "nvidia,p2771-0000", "nvidia,tegra186";
+
+       /* SDMMC1 (SD/MMC) */
+       sdhci@3400000 {
+               status = "okay";
+
+               vmmc-supply = <&vdd_sd>;
+       };
+
+       regulators {
+               vdd_sd: regulator@100 {
+                       compatible = "regulator-fixed";
+                       reg = <100>;
+
+                       regulator-name = "SD_CARD_SW_PWR";
+                       regulator-min-microvolt = <3300000>;
+                       regulator-max-microvolt = <3300000>;
+
+                       gpio = <&gpio TEGRA_MAIN_GPIO(P, 6) GPIO_ACTIVE_HIGH>;
+                       enable-active-high;
+
+                       vin-supply = <&vdd_3v3_sys>;
+               };
+       };
 };