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

Commit 0a97523c authored by Subhash Jadavani's avatar Subhash Jadavani
Browse files

ARM: dts: msm: move SD card detect to legacy mechanism for SDM845



We have shared gpio for SD and UFS card hotplug detection which required
us to use the extcon-gpio framework to take care of the hot plug event
detection. Now that UFS card feature is disabled, we no longer need
to use the extcon-gpio framework and simply use the legacy card detect
framework for SD card hot plug detection.

Change-Id: If9fdbd95f6fbe6ed766c5dde3c21f5a81a4fb163
Signed-off-by: default avatarSubhash Jadavani <subhashj@codeaurora.org>
parent d6b5188e
Loading
Loading
Loading
Loading
+3 −14
Original line number Diff line number Diff line
@@ -121,17 +121,6 @@
	status = "ok";
};

&extcon_storage_cd {
	gpio = <&tlmm 126 GPIO_ACTIVE_LOW>;
	debounce-ms = <200>;
	irq-flags = <IRQ_TYPE_EDGE_BOTH>;

	pinctrl-names = "default";
	pinctrl-0 = <&storage_cd>;

	status = "ok";
};

&sdhc_2 {
	vdd-supply = <&pm8998_l21>;
	qcom,vdd-voltage-level = <2950000 2960000>;
@@ -142,10 +131,10 @@
	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>;
	pinctrl-0 = <&sdc2_clk_on  &sdc2_cmd_on &sdc2_data_on &storage_cd>;
	pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &storage_cd>;

	extcon = <&extcon_storage_cd>;
	cd-gpios = <&tlmm 126 GPIO_ACTIVE_LOW>;

	status = "ok";
};
+3 −14
Original line number Diff line number Diff line
@@ -209,17 +209,6 @@
	status = "ok";
};

&extcon_storage_cd {
	gpio = <&tlmm 126 GPIO_ACTIVE_LOW>;
	debounce-ms = <200>;
	irq-flags = <IRQ_TYPE_EDGE_BOTH>;

	pinctrl-names = "default";
	pinctrl-0 = <&storage_cd>;

	status = "ok";
};

&sdhc_2 {
	vdd-supply = <&pm8998_l21>;
	qcom,vdd-voltage-level = <2950000 2960000>;
@@ -230,10 +219,10 @@
	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>;
	pinctrl-0 = <&sdc2_clk_on  &sdc2_cmd_on &sdc2_data_on &storage_cd>;
	pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &storage_cd>;

	extcon = <&extcon_storage_cd>;
	cd-gpios = <&tlmm 126 GPIO_ACTIVE_LOW>;

	status = "ok";
};
+3 −14
Original line number Diff line number Diff line
@@ -126,17 +126,6 @@
	status = "ok";
};

&extcon_storage_cd {
	gpio = <&tlmm 126 GPIO_ACTIVE_LOW>;
	debounce-ms = <200>;
	irq-flags = <IRQ_TYPE_EDGE_BOTH>;

	pinctrl-names = "default";
	pinctrl-0 = <&storage_cd>;

	status = "ok";
};

&sdhc_2 {
	vdd-supply = <&pm8998_l21>;
	qcom,vdd-voltage-level = <2950000 2960000>;
@@ -147,10 +136,10 @@
	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>;
	pinctrl-0 = <&sdc2_clk_on  &sdc2_cmd_on &sdc2_data_on &storage_cd>;
	pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &storage_cd>;

	extcon = <&extcon_storage_cd>;
	cd-gpios = <&tlmm 126 GPIO_ACTIVE_LOW>;

	status = "ok";
};
+0 −6
Original line number Diff line number Diff line
@@ -1545,12 +1545,6 @@
		status = "disabled";
	};

	extcon_storage_cd: extcon_storage_cd {
		compatible = "extcon-gpio";
		extcon-id = <62>; /* EXTCON_MECHANICAL */
		status = "disabled";
	};

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