2 * Copyright (C) 2012 Texas Instruments
4 * License Terms: GNU General Public License v2
6 * Simple driver for Texas Instruments LM355x LED driver chip
8 * Author: G.Shark Jeong <gshark.jeong@gmail.com>
9 * Daniel Jeong <daniel.jeong@ti.com>
12 #define LM355x_NAME "leds-lm355x"
13 #define LM3554_NAME "leds-lm3554"
14 #define LM3556_NAME "leds-lm3556"
16 /* lm3554 : strobe def. on */
18 LM355x_PIN_STROBE_DISABLE
= 0x00,
19 LM355x_PIN_STROBE_ENABLE
= 0x01,
23 LM355x_PIN_TORCH_DISABLE
= 0,
24 LM3554_PIN_TORCH_ENABLE
= 0x80,
25 LM3556_PIN_TORCH_ENABLE
= 0x10,
29 LM355x_PIN_TX_DISABLE
= 0,
30 LM3554_PIN_TX_ENABLE
= 0x20,
31 LM3556_PIN_TX_ENABLE
= 0x40,
35 LM355x_PIN_NTC_DISABLE
= 0,
36 LM3554_PIN_NTC_ENABLE
= 0x08,
37 LM3556_PIN_NTC_ENABLE
= 0x80,
41 LM355x_PMODE_DISABLE
= 0,
42 LM355x_PMODE_ENABLE
= 0x04,
46 * struct lm3554_platform_data
47 * @pin_strobe: strobe input
48 * @pin_torch : input pin
49 * lm3554-tx1/torch/gpio1
51 * @pin_tx2 : input pin
52 * lm3554-envm/tx2/gpio2
54 * @ntc_pin : output pin
57 * @pass_mode : pass mode
59 struct lm355x_platform_data
{
60 enum lm355x_strobe pin_strobe
;
61 enum lm355x_torch pin_tx1
;
62 enum lm355x_tx2 pin_tx2
;
63 enum lm355x_ntc ntc_pin
;
65 enum lm355x_pmode pass_mode
;