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

Commit 5336af5f authored by Anna Hanna Sedlak Grinbaum's avatar Anna Hanna Sedlak Grinbaum
Browse files

ARM: dts: apq: Configure GPIOs for DragonBoard-8096



Configure Dragonboard-8096 expansion connector pins as general
purpose I/Os:
1. Configuration of PM_GPIOs and PM_MPPs as output.
2. Disable spi_0 to support behavior of APQ_GPIO0,
APQ_GPIO1, APQ_GPIO2, APQ_GPIO3 as regular GPIOs.

Change-Id: Id161ef4d313481c4abfba7f744bde0febb3962cb
Signed-off-by: default avatarAnna Hanna Sedlak Grinbaum <asedla@codeaurora.org>
parent 40b49a34
Loading
Loading
Loading
Loading
+44 −12
Original line number Diff line number Diff line
@@ -427,6 +427,26 @@
};

&pm8994_mpps {
	mpp@a100 { /* MPP 2 */
		qcom,mode = <1>;		/* Digital output */
		qcom,output-type = <0>;		/* CMOS logic */
		qcom,vin-sel = <2>;		/* S4 1.8V */
		qcom,src-sel = <0>;		/* Constant */
		qcom,master-en = <1>;		/* Enable GPIO */
		qcom,invert = <0>;
		status = "okay";
	};

	mpp@a200 { /* MPP 3 */
		qcom,mode = <1>;		/* Digital output */
		qcom,output-type = <0>;		/* CMOS logic */
		qcom,vin-sel = <2>;		/* S4 1.8V */
		qcom,src-sel = <0>;		/* Constant */
		qcom,master-en = <1>;		/* Enable GPIO */
		qcom,invert = <0>;
		status = "okay";
	};

	mpp@a300 { /* MPP 4 */
		/* HDMI_5v_vreg regulator enable */
		qcom,mode = <1>;		/* Digital output */
@@ -437,6 +457,16 @@
		qcom,invert = <0>;
		status = "okay";
	};

	mpp@a500 { /* MPP 6 */
		qcom,mode = <1>;		/* Digital output */
		qcom,output-type = <0>;		/* CMOS logic */
		qcom,vin-sel = <2>;		/* S4 1.8V */
		qcom,src-sel = <0>;		/* Constant */
		qcom,master-en = <1>;		/* Enable GPIO */
		qcom,invert = <0>;
		status = "okay";
	};
};


@@ -604,6 +634,10 @@
		interrupt-names = "vbus_det_irq";
		vin-supply = <&vph_pwr_vreg>;
	};

	spi@7575000 { /* BLSP1 QUP1 */
		status = "disabled";
	};
};

&spmi_bus {
@@ -642,11 +676,10 @@
		status = "okay";
	};

	gpio@c600 { /* GPIO 7 - NFC_PWR_REQ */
		qcom,mode = <0>;	/* DIGITAL IN */
		qcom,pull = <5>;	/* No Pull */
	gpio@c600 { /* GPIO 7 */
		qcom,mode = <1>;	/* DIGITAL OUT */
		qcom,vin-sel = <2>;	/* 1.8 */
		qcom,src-sel = <0>;	/* CONSTANT */
		qcom,src-sel = <0>;	/* GPIO */
		qcom,master-en = <1>;	/* ENABLE GPIO */
		status = "okay";
	};
@@ -661,11 +694,10 @@
		status = "okay";
	};

	gpio@c900 { /* GPIO 10 - NFC_CLK_REQ */
		qcom,mode = <0>;	/* DIGITAL IN */
		qcom,pull = <5>;	/* No Pull */
	gpio@c900 { /* GPIO 10 */
		qcom,mode = <1>;	/* DIGITAL OUT */
		qcom,vin-sel = <2>;	/* 1.8 */
		qcom,src-sel = <2>;	/* QPNP_PIN_SEL_FUNC_1 */
		qcom,src-sel = <0>;	/* GPIO */
		qcom,master-en = <1>;	/* ENABLE GPIO */
		status = "okay";
	};
@@ -680,10 +712,10 @@
	};

	gpio@cc00 { /* GPIO 13 */
		qcom,mode = <0>;
		qcom,pull = <0>;
		qcom,vin-sel = <2>;
		qcom,src-sel = <0>;
		qcom,mode = <1>;	/* DIGITAL OUT */
		qcom,vin-sel = <2>;	/* 1.8 */
		qcom,src-sel = <0>;	/* GPIO */
		qcom,master-en = <1>;	/* Enable GPIO */
		status = "okay";
	};