[PATCH] media: i2c: add driver for dual LED Flash, lm3560.

2013-09-11 Thread Daniel Jeong
. But flash timeout and operation mode are shared. Signed-off-by: Daniel Jeong gshark.je...@gmail.com --- drivers/media/i2c/Kconfig |9 + drivers/media/i2c/Makefile |1 + drivers/media/i2c/lm3560.c | 716 include/media/lm3560.h | 103

[PATCH V2] media: i2c: add driver for dual LED Flash, lm3560.

2013-10-16 Thread Daniel Jeong
can be controlled independantly. But flash timeout and operation mode are shared. Signed-off-by: Daniel Jeong gshark.je...@gmail.com --- drivers/media/i2c/Kconfig |9 + drivers/media/i2c/Makefile |1 + drivers/media/i2c/lm3560.c | 488

[PATCH -next] [media] media: i2c: lm3560: fix missing unlock error in lm3560_get_ctrl().

2013-11-13 Thread Daniel Jeong
Add the missing unlock before return from function lm3560_get_ctrl() to avoid deadlock. Thanks to Dan Carpenter. Signed-off-by: Daniel Jeong gshark.je...@gmail.com --- drivers/media/i2c/lm3560.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/media/i2c

[PATCH V2 -next] [media] media: i2c: lm3560: fix missing unlock on error in lm3560_get_ctrl().

2013-12-05 Thread Daniel Jeong
Sorry I should have checked below things before sending the first patch. Correct reference of reading values. (rval - reg_val) Add the missing unlock before return from function lm3560_get_ctrl() to avoid deadlock. Thank you Dan Carpenter Sakari. Signed-off-by: Daniel Jeong gshark.je

media: i2c: add new dual LED Flash driver, lm3646.

2014-01-06 Thread Daniel Jeong
threshhold Faults are added. Please refer the datasheet http://www.ti.com/lit/ds/snvs962/snvs962.pdf Signed-off-by: Daniel Jeong gshark.je...@gmail.com --- drivers/media/i2c/Kconfig |9 + drivers/media/i2c/Makefile |1 + drivers/media/i2c/lm3646.c | 410

[RFCv2,2/2] i2c: add new dual Flash driver,LM3646

2014-01-27 Thread Daniel Jeong
brightness is set equal to or bigger than Total brightness. And the brightness step is very small, 1.46mA for Torch, 11.71mA for Flash. If the step is changed to mA, maximum brightness cannot be reachable. Signed-off-by: Daniel Jeong gshark.je...@gmail.com --- drivers/media/i2c/Kconfig |9

[RFCv2,1/2] v4l2-controls.h: add addtional Flash fault bits

2014-01-27 Thread Daniel Jeong
. Many Flash drivers have a pin and the fault bit to serves as a threshold detector for negative temperature coefficient (NTC) thermistors. Signed-off-by: Daniel Jeong gshark.je...@gmail.com --- include/uapi/linux/v4l2-controls.h |3 +++ 1 file changed, 3 insertions(+) diff --git a/include

Re: [RFCv2,1/2] v4l2-controls.h: add addtional Flash fault bits

2014-01-28 Thread Daniel Jeong
2014년 01월 28일 18:08, Sakari Ailus 쓴 글: Hi Daniel, On Tue, Jan 28, 2014 at 03:55:57PM +0900, Daniel Jeong wrote: Add additional FLASH Fault bits to dectect faults from chip. Some Flash drivers support UVLO, IVFM, NTC Trip faults. UVLO : Under Voltage Lock Out Threshold crossed IVFM : IVFM

[RFC v3,1/3] v4l2-controls.h: add addtional Flash fault bits

2014-02-14 Thread Daniel Jeong
Add addtional falult bits for FLASH V4L2_FLASH_FAULT_UNDER_VOLTAGE : UVLO V4L2_FLASH_FAULT_INPUT_VOLTAGE : input voltage is adjusted by IVFM V4L2_FLASH_FAULT_LED_OVER_TEMPERATURE : NTC Trip point is crossed. Signed-off-by: Daniel Jeong gshark.je...@gmail.com --- include/uapi/linux/v4l2

[RFC v3,2/3] controls.xml : add addtional Flash fault bits

2014-02-14 Thread Daniel Jeong
Add addtional falult bits for FLASH V4L2_FLASH_FAULT_UNDER_VOLTAGE : UVLO V4L2_FLASH_FAULT_INPUT_VOLTAGE : input voltage is adjusted by IVFM V4L2_FLASH_FAULT_LED_OVER_TEMPERATURE : NTC Trip point is crossed. Signed-off-by: Daniel Jeong gshark.je...@gmail.com --- Documentation/DocBook/media/v4l

[RFC v3,3/3] media: i2c: add new dual LED Flash driver, lm3646

2014-02-14 Thread Daniel Jeong
Add new dual flash driver. Fixed the previous issues and added device tree support. Signed-off-by: Daniel Jeong gshark.je...@gmail.com --- drivers/media/i2c/Kconfig |9 + drivers/media/i2c/Makefile |1 + drivers/media/i2c/lm3646.c | 451

[RFC v4,3/3] media: i2c: add new dual LED Flash driver, lm3646

2014-02-16 Thread Daniel Jeong
harware description check priorities platform data - device tree - default data Signed-off-by: Daniel Jeong gshark.je...@gmail.com --- drivers/media/i2c/Kconfig |9 + drivers/media/i2c/Makefile |1 + drivers/media/i2c/lm3646.c | 456 include

Re: [RFC v3,2/3] controls.xml : add addtional Flash fault bits

2014-02-18 Thread Daniel Jeong
Hi Sakari. Thank you for you comments. Hi Daniel, Thanks for the update. Daniel Jeong wrote: Add addtional falult bits for FLASH V4L2_FLASH_FAULT_UNDER_VOLTAGE : UVLO V4L2_FLASH_FAULT_INPUT_VOLTAGE : input voltage is adjusted by IVFM V4L2_FLASH_FAULT_LED_OVER_TEMPERATURE : NTC Trip point

[RFC v5, 1/3] v4l2-controls.h: add addtional Flash fault bits

2014-02-20 Thread Daniel Jeong
Same with v3 and v4. Signed-off-by: Daniel Jeong gshark.je...@gmail.com --- include/uapi/linux/v4l2-controls.h |3 +++ 1 file changed, 3 insertions(+) diff --git a/include/uapi/linux/v4l2-controls.h b/include/uapi/linux/v4l2-controls.h index 2cbe605..1d662f6 100644 --- a/include/uapi/linux

[RFC v5,2/3] controls.xml : add addtional Flash fault bits

2014-02-20 Thread Daniel Jeong
Added more comment about Input voltage flash monitor and external temp function. Signed-off-by: Daniel Jeong gshark.je...@gmail.com --- Documentation/DocBook/media/v4l/controls.xml | 18 ++ 1 file changed, 18 insertions(+) diff --git a/Documentation/DocBook/media/v4l

[RFC v5,3/3] media: i2c: add new dual LED Flash driver, lm3646

2014-02-20 Thread Daniel Jeong
To prevent redundant i2c access, Mode register is caching at initial time. And it will be written with control mode. There are many bit data in mode register so it is hard to set zero all. DT is removed and will be created a seperated patch Signed-off-by: Daniel Jeong gshark.je...@gmail.com

Re: [RFC v5,2/3] controls.xml : add addtional Flash fault bits

2014-02-23 Thread Daniel Jeong
Hi Sakari Thank you for your comments. Hi Daniel, Daniel Jeong wrote: Added more comment about Input voltage flash monitor and external temp function. Signed-off-by: Daniel Jeong gshark.je...@gmail.com --- Documentation/DocBook/media/v4l/controls.xml | 18 ++ 1 file

[RFC v6,2/3] controls.xml : add addtional Flash fault bits

2014-02-25 Thread Daniel Jeong
Descriptions for flash faluts. V4L2_FLASH_FAULT_UNDER_VOLTAGE, V4L2_FLASH_FAULT_INPUT_VOLTAGE, and V4L2_FLASH_FAULT_LED_OVER_TEMPERATURE Signed-off-by: Daniel Jeong gshark.je...@gmail.com --- Documentation/DocBook/media/v4l/controls.xml | 18 ++ 1 file changed, 18 insertions

[RFC v6,3/3] media: i2c: add new dual LED Flash driver, lm364

2014-02-25 Thread Daniel Jeong
voltage monitor and thermal threshhold Faults are added. Please refer the datasheet http://www.ti.com/lit/ds/snvs962/snvs962.pdf Signed-off-by: Daniel Jeong gshark.je...@gmail.com --- drivers/media/i2c/Kconfig |9 + drivers/media/i2c/Makefile |1 + drivers/media/i2c/lm3646.c | 419

[RFC v6 1/3] v4l2-controls.h: add addtional Flash fault bits

2014-02-25 Thread Daniel Jeong
the temperature exceed the maximun limit Signed-off-by: Daniel Jeong gshark.je...@gmail.com --- include/uapi/linux/v4l2-controls.h |3 +++ 1 file changed, 3 insertions(+) diff --git a/include/uapi/linux/v4l2-controls.h b/include/uapi/linux/v4l2-controls.h index 2cbe605..1d662f6 100644

Re: [RFC v6,3/3] media: i2c: add new dual LED Flash driver, lm364

2014-03-03 Thread Daniel Jeong
2014년 02월 26일 21:56, Sakari Ailus 쓴 글: Hi Daniel, Just a few minor comments. On Wed, Feb 26, 2014 at 04:04:11PM +0900, Daniel Jeong wrote: This patch adds the driver for the LM3646, dual LED Flash driver. The LM3646 has two 1.5A sync. boost converter with dual white current source

[RFC v7 1/3] v4l2-controls.h: add addtional Flash fault bits

2014-03-03 Thread Daniel Jeong
the temperature exceed the maximun limit Signed-off-by: Daniel Jeong gshark.je...@gmail.com --- include/uapi/linux/v4l2-controls.h |3 +++ 1 file changed, 3 insertions(+) diff --git a/include/uapi/linux/v4l2-controls.h b/include/uapi/linux/v4l2-controls.h index 2cbe605..1d662f6 100644

[RFC v7,3/3] media: i2c: add new dual LED Flash driver, lm364

2014-03-03 Thread Daniel Jeong
voltage monitor and thermal threshhold Faults are added. Please refer the datasheet http://www.ti.com/lit/ds/snvs962/snvs962.pdf Signed-off-by: Daniel Jeong gshark.je...@gmail.com --- drivers/media/i2c/Kconfig |9 + drivers/media/i2c/Makefile |1 + drivers/media/i2c/lm3646.c | 414

[RFC v7,2/3] controls.xml : add addtional Flash fault bits

2014-03-03 Thread Daniel Jeong
Descriptions for flash faluts. V4L2_FLASH_FAULT_UNDER_VOLTAGE, V4L2_FLASH_FAULT_INPUT_VOLTAGE, and V4L2_FLASH_FAULT_LED_OVER_TEMPERATURE v7 : Changed V4L2_FLASH_FAULT_UNDER_VOLTAGE description Signed-off-by: Daniel Jeong gshark.je...@gmail.com --- Documentation/DocBook/media/v4l/controls.xml

[RFC v7 0/3] add new Dual LED FLASH LM3646

2014-03-03 Thread Daniel Jeong
V4L2_FLASH_FAULT_UNDER_VOLTAGE description in DocBook. Changed lm3646_get_ctrl v6 - change log Changed description in DocBook. v5 - change log Added control register caching to avoid redundant i2c access. Removed dt to create a seperate patch. Changed description in DocBook. Daniel Jeong (3): [RFC] v4l2

Re: [PATCH 28/46] [media] lm3560: simplify boolean tests

2014-09-04 Thread Daniel Jeong
...@linux.intel.com I will keep it in my mind for my next patch files. Thank you. Acked-by: Daniel Jeong gshark.je...@gmail.com -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org

[PATCH] media: i2c: add new driver for single string flash.

2015-01-19 Thread Daniel Jeong
This patch adds the driver for the single string flash products of TI. Several single string flash controllers of TI have similar register map and bit data. This driver supports four products,lm3556, lm3561, lm3642 and lm3648. Signed-off-by: Daniel Jeong gshark.je...@gmail.com --- drivers/media

Re: [PATCH] media: i2c: add new driver for single string flash.

2015-01-20 Thread Daniel Jeong
Hi. On Mon, 2015-01-19 at 17:25 +0900, Daniel Jeong wrote: This patch adds the driver for the single string flash products of TI. Several single string flash controllers of TI have similar register map and bit data. This driver supports four products,lm3556, lm3561, lm3642 and lm3648. Why