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

Commit ee498e28 authored by Asutosh Das's avatar Asutosh Das
Browse files

ARM: dts: msm: add SDHC DAT1 line wakeup support for 8974



This patch adds mpm and gpio based wakeup interrupt support.
SDIO card interrupt can wake up the system by pulling the
DAT1 line low. When the system is suspended mpm monitors
this line and wakes up the system.

Change-Id: I4ea5e29200e7138bca18ed429175a39414ea3318
Signed-off-by: default avatarAsutosh Das <asutoshd@codeaurora.org>
parent d569f144
Loading
Loading
Loading
Loading
+24 −4
Original line number Diff line number Diff line
@@ -492,6 +492,7 @@
				<78 512 800000 1600000>, /* 200 MB/s */
				<78 512 2048000 4096000>; /* Max. bandwidth */
		qcom,bus-bw-vectors-bps = <0 400000 20000000 25000000 50000000 100000000 200000000 4294967295>;
		qcom,dat1-mpm-int = <42>;
		status = "disable";
	};

@@ -518,6 +519,7 @@
				<81 512 800000 1600000>, /* 200 MB/s */
				<81 512 2048000 4096000>; /* Max. bandwidth */
		qcom,bus-bw-vectors-bps = <0 400000 20000000 25000000 50000000 100000000 200000000 4294967295>;
		qcom,dat1-mpm-int = <44>;
		status = "disable";
	};

@@ -525,8 +527,17 @@
		compatible = "qcom,sdhci-msm";
		reg = <0xf9864900 0x11c>, <0xf9864000 0x800>;
		reg-names = "hc_mem", "core_mem";
		interrupts = <0 127 0>, <0 224 0>;
		interrupt-names = "hc_irq", "pwr_irq";

		#address-cells = <0>;
		interrupt-parent = <&sdhc_3>;
		interrupts = <0 1 2>;
		#interrupt-cells = <1>;
		interrupt-map-mask = <0xffffffff>;
		interrupt-map = <0 &intc 0 127 0
				1 &intc 0 224 0
				2 &msmgpio 37 0x8>;
		interrupt-names = "hc_irq", "pwr_irq", "sdiowakeup_irq";

		gpios = <&msmgpio 40 0>, /* CLK */
			<&msmgpio 39 0>, /* CMD */
			<&msmgpio 38 0>, /* DATA0 */
@@ -558,8 +569,17 @@
		compatible = "qcom,sdhci-msm";
		reg = <0xf98e4900 0x11c>, <0xf98e4000 0x800>;
		reg-names = "hc_mem", "core_mem";
		interrupts = <0 129 0>, <0 227 0>;
		interrupt-names = "hc_irq", "pwr_irq";

		#address-cells = <0>;
		interrupt-parent = <&sdhc_4>;
		interrupts = <0 1 2>;
		#interrupt-cells = <1>;
		interrupt-map-mask = <0xffffffff>;
		interrupt-map = <0 &intc 0 129 0
				1 &intc 0 227 0
				2 &msmgpio 95 0x8>;
		interrupt-names = "hc_irq", "pwr_irq", "sdiowakeup_irq";

		gpios = <&msmgpio 93 0>, /* CLK */
			<&msmgpio 91 0>, /* CMD */
			<&msmgpio 96 0>, /* DATA0 */