[PATCH v1 07/18] ARM: tegra: tegratab: Configure MMC devices

From: Svyatoslav Ryhel

Date: Sun Nov 22 2026 - 15:14:53 EST


The tegratab board uses three MMC controllers of four that Tegra SoC has
(the second one is unused).

The first is used for Wi-Fi SDIO, the third for microSD card support, and
the fourth for the internal eMMC device. Configure all controllers
accordingly.

Signed-off-by: Svyatoslav Ryhel <clamor95@xxxxxxxxx>
---
.../tegra114-nvidia-tegratab-common.dtsi | 56 ++++++++++++++++++-
1 file changed, 55 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/nvidia/tegra114-nvidia-tegratab-common.dtsi b/arch/arm/boot/dts/nvidia/tegra114-nvidia-tegratab-common.dtsi
index 2ccee3b70aac9..b7a14e24df79b 100644
--- a/arch/arm/boot/dts/nvidia/tegra114-nvidia-tegratab-common.dtsi
+++ b/arch/arm/boot/dts/nvidia/tegra114-nvidia-tegratab-common.dtsi
@@ -13,6 +13,10 @@ chosen {
};

aliases {
+ mmc0 = &sdmmc4; /* eMMC */
+ mmc1 = &sdmmc3; /* uSD slot */
+ mmc2 = &sdmmc1; /* WiFi */
+
serial0 = &uartd;
};

@@ -1254,11 +1258,61 @@ i2c-thermtrip {
};
};

+ /* Wifi */
+ sdmmc1: mmc@78000000 {
+ status = "okay";
+
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ assigned-clocks = <&tegra_car TEGRA114_CLK_SDMMC1>;
+ assigned-clock-parents = <&tegra_car TEGRA114_CLK_PLL_P>;
+ assigned-clock-rates = <82000000>;
+
+ max-frequency = <82000000>;
+ keep-power-in-suspend;
+ cap-power-off-card;
+ bus-width = <4>;
+ non-removable;
+
+ sd-uhs-ddr50;
+ sd-uhs-sdr104;
+
+ nvidia,default-tap = <0x2>;
+ nvidia,default-trim = <0x2>;
+
+ vmmc-supply = <&vdd_3v3_com>;
+ vqmmc-supply = <&vdd_1v8_vio>;
+ };
+
+ /* MicroSD */
+ sdmmc3: mmc@78000400 {
+ status = "okay";
+ bus-width = <4>;
+
+ sd-uhs-ddr50;
+
+ cd-gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_LOW>;
+ power-gpios = <&gpio TEGRA_GPIO(K, 1) GPIO_ACTIVE_HIGH>;
+
+ nvidia,default-tap = <0x3>;
+ nvidia,default-trim = <0x3>;
+
+ vmmc-supply = <&vcore_emmc>;
+ vqmmc-supply = <&vddio_usd>;
+ };
+
/* eMMC */
- mmc@78000600 {
+ sdmmc4: mmc@78000600 {
status = "okay";
bus-width = <8>;
+
+ mmc-ddr-1_8v;
+ mmc-hs200-1_8v;
non-removable;
+
+ vmmc-supply = <&vcore_emmc>;
+ vqmmc-supply = <&vdd_1v8_vio>;
};

/* Micro USB */
--
2.53.0