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

Commit a3828831 authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

ARM: dts: msm: Specify RGB_LED configuration for PM855L



RGB LEDs are present on PM855L which can be used for status
notifications (e.g. charging) on sdm855 platforms. They're
sourced by LPG/PWM channels.

Add the required configuration for it.

Change-Id: I5676e56855751e47a4a1882ee37eda61f666dfb5
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent dfca2095
Loading
Loading
Loading
Loading
+27 −0
Original line number Diff line number Diff line
@@ -226,6 +226,33 @@
			qcom,pmic-revid = <&pm855l_revid>;
			status = "disabled";
		};

		pm855l_lpg: qcom,pwms@b100 {
			compatible = "qcom,pwm-lpg";
			reg = <0xb100 0x300>;
			reg-names = "lpg-base";
			#pwm-cells = <2>;
		};

		pm855l_rgb_led: qcom,leds@d000 {
			compatible = "qcom,tri-led";
			reg = <0xd000 0x100>;
			red {
				label = "red";
				pwms = <&pm855l_lpg 0 1000000>;
				led-sources = <0>;
			};
			green {
				label = "green";
				pwms = <&pm855l_lpg 1 1000000>;
				led-sources = <1>;
			};
			blue {
				label = "blue";
				pwms = <&pm855l_lpg 2 1000000>;
				led-sources = <2>;
			};
		};
	};
};