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
This commit is contained in:
Jishnu Prakash
2020-08-31 22:30:30 +05:30
parent adc1cd2572
commit 70c5ddb1f7
2 changed files with 39 additions and 0 deletions

View File

@@ -259,6 +259,15 @@
"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 {
chg-skin-therm-usr {
polling-delay-passive = <0>;

View File

@@ -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 {
compatible = "qcom,pwm-lpg";
reg = <0xb100 0x300>, <0xb000 0x100>;