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

Commit 179513bd authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

ARM: dts: qcom: add ECM device for PM8350B

Add AMOLED ECM (Embedded Current Measurement) device for PM8350B
to measure display current for OLED panels that is used on Lahaina
platforms. Also, add the necessary SDAM devices in PMK8350 for
ECM to be functional.

Change-Id: I2ee2cec85c6a75fef443713fbe04e86e095c0ce1
parent 34588620
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -201,6 +201,16 @@
				regulator-allow-set-load;
			};
		};

		qcom,amoled-ecm@f900 {
			compatible = "qcom,amoled-ecm";
			reg = <0xf900>;
			nvmem-names = "amoled-ecm-sdam0", "amoled-ecm-sdam1";
			nvmem = <&pmk8350_sdam_13>, <&pmk8350_sdam_14>;
			interrupt-names = "ecm-sdam0", "ecm-sdam1";
			interrupts = <0x0 0x7c 0x1 IRQ_TYPE_EDGE_RISING>,
				     <0x0 0x7d 0x1 IRQ_TYPE_EDGE_RISING>;
		};
	};
};

+10 −0
Original line number Diff line number Diff line
@@ -199,6 +199,16 @@
			};
		};

		pmk8350_sdam_13: sdam@7c00 {
			compatible = "qcom,spmi-sdam";
			reg = <0x7c00>;
		};

		pmk8350_sdam_14: sdam@7d00 {
			compatible = "qcom,spmi-sdam";
			reg = <0x7d00>;
		};

		pmk8350_sdam_21: sdam@8400 {
			compatible = "qcom,spmi-sdam";
			reg = <0x8400>;