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

Commit 49d189cc authored by Osvaldo Banuelos's avatar Osvaldo Banuelos Committed by Stepan Moskovchenko
Browse files

ARM: dts: msm: Add fixed regulator for SPI ethernet device on msm8996



Add a fixed regulator device tree node and configure PM8994 MPP5 for
digital output at 1.8V, in order to power the SPI Ethernet peripheral
used on msm8996 CDP boards.

Change-Id: I68ee1bf6487b8b25fe02c8b3d206f8e5a0df5f1d
Signed-off-by: default avatarOsvaldo Banuelos <osvaldob@codeaurora.org>
parent c75f26d9
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -27,6 +27,10 @@
	};
};

&spi_eth_vreg {
	status = "ok";
};

&uartblsp2dm1 {
	status = "ok";
	pinctrl-names = "default";
@@ -677,6 +681,15 @@
		qcom,invert = <0>;
		status = "okay";
	};

	mpp@a400 { /* MPP 5 */
		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 */
		status = "okay";
	};
};

&pmi8994_gpios {
+8 −0
Original line number Diff line number Diff line
@@ -938,6 +938,14 @@
	};

/* Miscellaneous regulators */
	spi_eth_vreg: spi_eth_phy_vreg {
		compatible = "regulator-fixed";
		regulator-name = "ethernet_phy";
		gpio = <&pm8994_mpps 5 0>;
		enable-active-high;
		status = "disabled";
	};

	usb_otg_switch: usb-otg-switch {
		compatible = "regulator-fixed";
		regulator-name = "usb_otg_vreg";