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

Commit 52423fac authored by Siddartha Mohanadoss's avatar Siddartha Mohanadoss
Browse files

ARM: dts: msm: Add Embedded power monitor node



Embedded power monitor (EPM) supports reading voltage
and current on supported channels.

Change-Id: I818e738da45161b1645b5380369530e781f36080
Signed-off-by: default avatarSiddartha Mohanadoss <smohanad@codeaurora.org>
parent fa9301c8
Loading
Loading
Loading
Loading
+19 −0
Original line number Diff line number Diff line
@@ -790,6 +790,25 @@
	};
};

&spi_epm {
	epm-adc@1 {
		compatible = "cy,epm-adc-cy8c5568lti-114";
		reg = <1>;
		interrupt-parent = <&msmgpio>;
		spi-max-frequency = <960000>;
		qcom,channels = <31>;
		qcom,gain = <50 50 50 50 50 100 50 100 50 50
				100 50 50 50 50 50 50 50 50 50
				50 50 50 100 50 50 50 1 1 1
				1>;
		qcom,rsense = <50 100 500 10 25 1000 40 200 200 5
				500 500 75 10 5 25 33 75 25 200
				10 25 33 100 10 10 3 1000 1000 1000
				1000>;
		qcom,channel-type = <0xf0000000>;
	};
};

&spmi_bus {
	qcom,pma8084@0 {
		qcom,leds@a300 {
+4 −3
Original line number Diff line number Diff line
@@ -1745,7 +1745,7 @@
		};
	};

	spi_0: spi@f9923000 { /* BLSP1 QUP1 */
	spi_0: spi_epm: spi@f9923000 { /* BLSP1 QUP1 */
		compatible = "qcom,spi-qup-v2";
		#address-cells = <1>;
		#size-cells = <0>;
@@ -1758,8 +1758,9 @@
		qcom,gpio-mosi = <&msmgpio 0 0>;
		qcom,gpio-miso = <&msmgpio 1 0>;
		qcom,gpio-clk  = <&msmgpio 3 0>;
		qcom,gpio-cs0  = <&msmgpio 0 0>;
		qcom,gpio-cs2  = <&msmgpio 117 0>;
		qcom,gpio-cs0  = <&msmgpio 2 0>;
		qcom,gpio-cs1  = <&msmgpio 116 0>;
		qcom,gpio-cs3  = <&msmgpio 117 0>;

		qcom,infinite-mode = <0>;
		qcom,use-bam;