Enable SDCard support
Enable mmc2 node in the device tree.
Tested: Mount/Unmount SDCard
Change-Id: If5d7edfbf5ce7d3c121cd88a99012ca551442dfe
diff --git a/arch/arm64/boot/dts/mediatek/mt8167-coral.dts b/arch/arm64/boot/dts/mediatek/mt8167-coral.dts
index 32fd33dd..3b9b243 100644
--- a/arch/arm64/boot/dts/mediatek/mt8167-coral.dts
+++ b/arch/arm64/boot/dts/mediatek/mt8167-coral.dts
@@ -231,6 +231,44 @@
};
};
+ mmc2_pins_default: mmc2default {
+ pins_cmd_dat {
+ pinmux = <MT8167_PIN_70_MSDC2_DAT0__FUNC_MSDC2_DAT0>,
+ <MT8167_PIN_71_MSDC2_DAT1__FUNC_MSDC2_DAT1>,
+ <MT8167_PIN_72_MSDC2_DAT2__FUNC_MSDC2_DAT2>,
+ <MT8167_PIN_73_MSDC2_DAT3__FUNC_MSDC2_DAT3>,
+ <MT8167_PIN_68_MSDC2_CMD__FUNC_MSDC2_CMD>;
+ input-enable;
+ drive-strength = <MTK_DRIVE_6mA>;
+ bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
+ };
+
+ pins_clk {
+ pinmux = <MT8167_PIN_69_MSDC2_CLK__FUNC_MSDC2_CLK>;
+ drive-strength = <MTK_DRIVE_6mA>;
+ bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
+ };
+ };
+
+ mmc2_pins_uhs: mmc2@0 {
+ pins_cmd_dat {
+ pinmux = <MT8167_PIN_70_MSDC2_DAT0__FUNC_MSDC2_DAT0>,
+ <MT8167_PIN_71_MSDC2_DAT1__FUNC_MSDC2_DAT1>,
+ <MT8167_PIN_72_MSDC2_DAT2__FUNC_MSDC2_DAT2>,
+ <MT8167_PIN_73_MSDC2_DAT3__FUNC_MSDC2_DAT3>,
+ <MT8167_PIN_68_MSDC2_CMD__FUNC_MSDC2_CMD>;
+ input-enable;
+ drive-strength = <MTK_DRIVE_6mA>;
+ bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
+ };
+
+ pins_clk {
+ pinmux = <MT8167_PIN_69_MSDC2_CLK__FUNC_MSDC2_CLK>;
+ drive-strength = <MTK_DRIVE_8mA>;
+ bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
+ };
+ };
+
hdmi_pins_default: hdmi_pins_default {
};
@@ -313,6 +351,21 @@
};
};
+&mmc2 {
+ pinctrl-names = "default", "state_uhs";
+ pinctrl-0 = <&mmc2_pins_default>;
+ pinctrl-1 = <&mmc2_pins_uhs>;
+ status = "okay";
+ bus-width = <4>;
+ max-frequency = <200000000>;
+ cap-sd-highspeed;
+ sd-uhs-sdr50;
+ sd-uhs-sdr104;
+ broken-cd;
+ vmmc-supply = <&mt6392_vmch_reg>;
+ vqmmc-supply = <&mt6392_vmc_reg>;
+};
+
&dpi1 {
status = "okay";
ddc-i2c-bus = <&hdmiddc>;