Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ee4340da authored by Vijay Viswanath's avatar Vijay Viswanath
Browse files

ARM: dts: msm: Add sdhc2 for sdm670 rumi



Add sdhc2 for enabling SD card on sdm670 rumi target. This will
enable the kernel to register and use SD card in rumi. Currently
bus bandwidth voting and speeds higher than 50Mhz are not supported
in the RUMI. Also since card detect gpio is not yet assigned, the sd
card driver will do periodic polling instead.

Change-Id: I110257c76aa5dc6efb4a4fa204d3acd11dcd5fe9
Signed-off-by: default avatarVijay Viswanath <vviswana@codeaurora.org>
parent 1d9aee75
Loading
Loading
Loading
Loading
+19 −0
Original line number Diff line number Diff line
@@ -98,3 +98,22 @@

	status = "ok";
};

&sdhc_2 {
	vdd-supply = <&pm660l_l5>;
	qcom,vdd-voltage-level = <2960000 2960000>;
	qcom,vdd-current-level = <200 800000>;

	vdd-io-supply = <&pm660l_l2>;
	qcom,vdd-io-voltage-level = <1800000 2960000>;
	qcom,vdd-io-current-level = <200 22000>;

	pinctrl-names = "active", "sleep";
	pinctrl-0 = <&sdc2_clk_on  &sdc2_cmd_on &sdc2_data_on>;
	pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off>;

	qcom,clk-rates = <400000 20000000 25000000 50000000>;
	qcom,bus-speed-mode = "SDR12", "SDR25", "SDR50";

	status = "ok";
};
+19 −0
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@
	aliases {
		ufshc1 = &ufshc_mem; /* Embedded UFS slot */
		sdhc1 = &sdhc_1; /* SDC1 eMMC slot */
		sdhc2 = &sdhc_2; /* SDC2 SD Card slot */
	};

	aliases {
@@ -1848,6 +1849,24 @@
		status = "disabled";
	};

	sdhc_2: sdhci@8804000 {
		compatible = "qcom,sdhci-msm-v5";
		reg = <0x8804000 0x1000>;
		reg-names = "hc_mem";

		interrupts = <0 204 0>, <0 222 0>;
		interrupt-names = "hc_irq", "pwr_irq";

		qcom,bus-width = <4>;
		qcom,large-address-bus;

		clocks = <&clock_gcc GCC_SDCC2_AHB_CLK>,
			<&clock_gcc GCC_SDCC2_APPS_CLK>;
		clock-names = "iface_clk", "core_clk";

		status = "disabled";
	};

	qcom,msm-cdsp-loader {
		compatible = "qcom,cdsp-loader";
		qcom,proc-img-to-load = "cdsp";