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

Commit 70c5ddb1 authored by Jishnu Prakash's avatar Jishnu Prakash
Browse files

ARM: dts: msm: Add WLED support on PM6150l for holi

Add WLED support on PM6150l for holi. Also add QG IIO
channels required by WLED.

Change-Id: Ia43387d875abf0365e68f77afb5775c25d2d9f9d
parent adc1cd25
Loading
Loading
Loading
Loading
+9 −0
Original line number Original line Diff line number Diff line
@@ -259,6 +259,15 @@
			   "flash_active";
			   "flash_active";
};
};


&pm6150l_wled {
	io-channels = <&pm7250b_qg PSY_IIO_RESISTANCE>,
		      <&pm7250b_qg PSY_IIO_VOLTAGE_OCV>,
		      <&pm7250b_qg PSY_IIO_CURRENT_NOW>;
	io-channel-names = "rbatt",
			   "voltage_ocv",
			   "current_now";
};

&thermal_zones {
&thermal_zones {
	chg-skin-therm-usr {
	chg-skin-therm-usr {
		polling-delay-passive = <0>;
		polling-delay-passive = <0>;
+30 −0
Original line number Original line Diff line number Diff line
@@ -281,6 +281,36 @@
			};
			};
		};
		};


		pm6150l_wled: qcom,wled@d800 {
			compatible = "qcom,pm6150l-spmi-wled";
			reg = <0xd800>, <0xd900>;
			reg-names = "wled-ctrl-base", "wled-sink-base";
			label = "backlight";
			interrupts = <0x5 0xd8 0x1 IRQ_TYPE_EDGE_RISING>,
				     <0x5 0xd8 0x4 IRQ_TYPE_EDGE_BOTH>,
				     <0x5 0xd8 0x5 IRQ_TYPE_EDGE_BOTH>;
			interrupt-names = "ovp-irq", "pre-flash-irq",
					  "flash-irq";
			qcom,auto-calibration;
			status = "disabled";

			wled_flash: qcom,wled-flash {
				label = "flash";
				qcom,default-led-trigger = "wled_flash";
			};

			wled_torch: qcom,wled-torch {
				label = "torch";
				qcom,default-led-trigger = "wled_torch";
				qcom,wled-torch-timer = <1200>;
			};

			wled_switch: qcom,wled-switch {
				label = "switch";
				qcom,default-led-trigger = "wled_switch";
			};
		};

		pm6150l_lpg: qcom,pwms@b100 {
		pm6150l_lpg: qcom,pwms@b100 {
			compatible = "qcom,pwm-lpg";
			compatible = "qcom,pwm-lpg";
			reg = <0xb100 0x300>, <0xb000 0x100>;
			reg = <0xb100 0x300>, <0xb000 0x100>;