From 9eb8b67fe9eef65412d630e0ab3d90300a601450 Mon Sep 17 00:00:00 2001 From: Chun Zhang Date: Wed, 16 Mar 2016 17:24:17 -0700 Subject: leds: qpnp-flash-v2: add support for strobe configuration Flash LED module supports various kinds of strobe support. Strobe type can be hardware or software, active high or low, and level or edge trigger. Add support for configuring strobe type through device tree properties. CRs-Fixed: 1024187 Change-Id: Ief6a610c82b7f645966c596f543a1d30f7a40dcc Signed-off-by: Chun Zhang Signed-off-by: Devesh Jhunjhunwala --- include/linux/leds-qpnp-flash-v2.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/linux') diff --git a/include/linux/leds-qpnp-flash-v2.h b/include/linux/leds-qpnp-flash-v2.h index ae36a163ed21..c1e841689b55 100644 --- a/include/linux/leds-qpnp-flash-v2.h +++ b/include/linux/leds-qpnp-flash-v2.h @@ -25,6 +25,9 @@ struct flash_node_data { struct pinctrl *pinctrl; struct pinctrl_state *gpio_state_active; struct pinctrl_state *gpio_state_suspend; + struct pinctrl_state *hw_strobe_state_active; + struct pinctrl_state *hw_strobe_state_suspend; + int hw_strobe_gpio; int ires_ua; int max_current; int current_ma; @@ -34,6 +37,7 @@ struct flash_node_data { u8 ires; u8 hdrm_val; u8 current_reg_val; + u8 trigger; bool led_on; }; -- cgit v1.2.3