summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorChun Zhang <chunz@codeaurora.org>2016-04-04 21:24:23 -0700
committerJeevan Shriram <jshriram@codeaurora.org>2016-05-20 13:33:23 -0700
commit015dd49395f364a4364bef571cd941c5d39aef6c (patch)
tree0626662886fbefeb38611ee410a3ea320a0968eb /arch
parenta981cd9b9130fe52f9662fc8fbff5ee05e5e4127 (diff)
ARM: dts: msm: enable flash LED on cobalt
Add in device tree info to enable flash LED. CRs-fixed: 1015501 Change-Id: I0c6471549dfa7af435a5ce5f21a56caab1c4ea09 Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org> Signed-off-by: Chun Zhang <chunz@codeaurora.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/boot/dts/qcom/msm-pmicobalt.dtsi58
-rw-r--r--arch/arm/boot/dts/qcom/msmcobalt-pinctrl.dtsi17
-rw-r--r--arch/arm/boot/dts/qcom/msmcobalt-rumi.dtsi8
3 files changed, 83 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/qcom/msm-pmicobalt.dtsi b/arch/arm/boot/dts/qcom/msm-pmicobalt.dtsi
index 0a20d073aad6..627254caf696 100644
--- a/arch/arm/boot/dts/qcom/msm-pmicobalt.dtsi
+++ b/arch/arm/boot/dts/qcom/msm-pmicobalt.dtsi
@@ -491,5 +491,63 @@
qcom,lra-auto-res-mode = "qwd";
qcom,lra-res-cal-period = <4>;
};
+
+ flash_led: qcom,leds@d300 {
+ compatible = "qcom,qpnp-flash-led-v2";
+ status = "okay";
+ reg = <0xd300 0x100>;
+ label = "flash";
+ qcom,hdrm-auto-mode;
+ qcom,isc-delay = <192>;
+
+ pmi8998_flash0: qcom,flash_0 {
+ label = "flash";
+ qcom,led-name = "led:flash_0";
+ qcom,max-current = <1500>;
+ qcom,default-led-trigger =
+ "flash0_trigger";
+ qcom,id = <0>;
+ qcom,duration-ms = <1280>;
+ qcom,ires-ua = <12500>;
+ qcom,hdrm-voltage-mv = <325>;
+ qcom,hdrm-vol-hi-lo-win-mv = <100>;
+ };
+
+ pmi8998_flash1: qcom,flash_1 {
+ label = "flash";
+ qcom,led-name = "led:flash_1";
+ qcom,max-current = <1500>;
+ qcom,default-led-trigger =
+ "flash1_trigger";
+ qcom,id = <1>;
+ qcom,duration-ms = <1280>;
+ qcom,ires-ua = <12500>;
+ qcom,hdrm-voltage-mv = <325>;
+ qcom,hdrm-vol-hi-lo-win-mv = <100>;
+ };
+
+ pmi8998_flash2: qcom,flash_2 {
+ label = "flash";
+ qcom,led-name = "led:flash_2";
+ qcom,max-current = <750>;
+ qcom,default-led-trigger =
+ "flash2_trigger";
+ qcom,id = <2>;
+ qcom,duration-ms = <1280>;
+ qcom,ires-ua = <12500>;
+ qcom,hdrm-voltage-mv = <325>;
+ qcom,hdrm-vol-hi-lo-win-mv = <100>;
+ pinctrl-names = "led_enable","led_disable";
+ pinctrl-0 = <&led_enable>;
+ pinctrl-1 = <&led_disable>;
+ };
+
+ pmi8998_switch: qcom,led_switch {
+ label = "switch";
+ qcom,led-name = "led:switch";
+ qcom,default-led-trigger =
+ "switch_trigger";
+ };
+ };
};
};
diff --git a/arch/arm/boot/dts/qcom/msmcobalt-pinctrl.dtsi b/arch/arm/boot/dts/qcom/msmcobalt-pinctrl.dtsi
index e6a4f5085e42..2523ce88803f 100644
--- a/arch/arm/boot/dts/qcom/msmcobalt-pinctrl.dtsi
+++ b/arch/arm/boot/dts/qcom/msmcobalt-pinctrl.dtsi
@@ -1461,6 +1461,23 @@
bias-pull-up; /* pull up */
drive-strength = <2>; /* 2 MA */
};
+
+ };
+
+ led_enable: led_enable {
+ mux {
+ pins = "gpio21";
+ drive_strength = <16>;
+ output-high;
+ };
+ };
+
+ led_disable: led_disable {
+ mux {
+ pins = "gpio21";
+ drive_strength = <2>;
+ output-low;
+ };
};
};
};
diff --git a/arch/arm/boot/dts/qcom/msmcobalt-rumi.dtsi b/arch/arm/boot/dts/qcom/msmcobalt-rumi.dtsi
index 8495da13ed1a..27e9bd321b1b 100644
--- a/arch/arm/boot/dts/qcom/msmcobalt-rumi.dtsi
+++ b/arch/arm/boot/dts/qcom/msmcobalt-rumi.dtsi
@@ -265,3 +265,11 @@
&gdsc_ufs {
compatible = "regulator-fixed";
};
+
+&spmi_bus {
+ qcom,pmicobalt@3 {
+ flash_led: qcom,leds@d300 {
+ status = "disabled";
+ };
+ };
+};