Re: [PATCH v3 1/2] media: dt-bindings: bind nokia,n900-ir to generic pwm-ir-tx driver

2018-08-30 Thread Ivaylo Dimitrov
, so please, somebody else do it. Cc: Rob Herring Cc: Ivaylo Dimitrov Cc: Pali Rohár Cc: Pavel Machek Cc: Timo Kokkonen Cc: Tony Lindgren And some acks Before merging it. Signed-off-by: Sean Young --- arch/arm/boot/dts/omap3-n900.dts | 2 +- drivers/media/rc/pwm-ir-tx.c | 1

Re: [PATCH v3 2/2] media: rc: remove ir-rx51 in favour of generic pwm-ir-tx

2018-07-13 Thread Ivaylo Dimitrov
Hi, On 13.07.2018 15:22, Sean Young wrote: The ir-rx51 is a pwm-based TX driver specific to the N900. This can be handled entirely by the generic pwm-ir-tx driver. Note that the suspend code in the ir-rx51 driver is unnecessary, since during transmit, the process is not in interruptable sleep.

Re: [PATCH] devicetree: Add video bus switch

2017-12-21 Thread Ivaylo Dimitrov
Hi, On 20.12.2017 19:54, Laurent Pinchart wrote: Hi Pavel, On Saturday, 4 February 2017 23:56:10 EET Pavel Machek wrote: Hi! +Required properties +=== + +compatible : must contain "video-bus-switch" How generic is this? Should we have e.g. nokia,video-bus-switch? And

Re: [patch] autogain support for bayer10 format (was Re: [patch] propagating controls in libv4l2)

2017-04-26 Thread Ivaylo Dimitrov
On 27.04.2017 01:51, Pavel Machek wrote: Hi! There are two separate things here: 1) Autofoucs for a device that doesn't use subdev API 2) libv4l2 support for devices that require MC and subdev API Actually there are three: 0) autogain. Unfortunately, I need autogain first before autofocus

Re: [patch] autogain support for bayer10 format (was Re: [patch] propagating controls in libv4l2)

2017-04-26 Thread Ivaylo Dimitrov
Hi, On 26.04.2017 16:23, Pavel Machek wrote: Hi! I don't see why it would be hard to open files or have threads inside a library. There are several libraries that do that already, specially the ones designed to be used on multimidia apps. Well, This is what the libv4l2 says: This file

Re: [PATCHv2] dt: bindings: Add support for CSI1 bus

2017-01-20 Thread Ivaylo Dimitrov
ltiple types of busses on the same interfaces. Document the CSI1/CCP2 property strobe. It signifies the clock or strobe mode. Signed-off-by: Sakari Ailus <sakari.ai...@iki.fi> Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov...@gmail.com> Signed-off-by: Pavel Machek <pa..

Re: [PATCH 1/5] [media] ir-rx51: port to rc-core

2017-01-16 Thread Ivaylo Dimitrov
Hi On 16.01.2017 12:10, Sean Young wrote: Have you had a chance to test the ir-rx51 changes? Thanks Sean Still no, and afaik there are issues booting n900 with current kernel. Will try to find time over the weekend. Ivo -- To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH 1/5] [media] ir-rx51: port to rc-core

2016-12-30 Thread Ivaylo Dimitrov
On 30.12.2016 15:30, Sean Young wrote: On Fri, Dec 30, 2016 at 01:07:52PM +, Sean Young wrote: Hi Ivo,, On Fri, Dec 30, 2016 at 01:30:01PM +0200, Ivaylo Dimitrov wrote: On 20.12.2016 19:50, Sean Young wrote: This driver was written using lirc since rc-core did not support transmitter

Re: [PATCH 1/5] [media] ir-rx51: port to rc-core

2016-12-30 Thread Ivaylo Dimitrov
Hi, On 20.12.2016 19:50, Sean Young wrote: This driver was written using lirc since rc-core did not support transmitter-only hardware at that time. Now that it does, port this driver. Compile tested only. I guess after that change, there will be no more /dev/lircN device, right? Neither

Re: [RFC/PATCH] media: Add video bus switch

2016-12-23 Thread Ivaylo Dimitrov
Hi, On 23.12.2016 13:42, Pavel Machek wrote: Hi! [...] static int isp_subdev_notifier_bound(struct v4l2_async_notifier *async, diff --git a/drivers/media/platform/video-bus-switch.c b/drivers/media/platform/video-bus-switch.c index 1a5d944..3a2d442 100644 ---

Re: [PATCH v5] media: Driver for Toshiba et8ek8 5MP sensor

2016-12-14 Thread Ivaylo Dimitrov
Hi On 14.12.2016 15:03, Pali Rohár wrote: Hi! See inlined some my notes. + +#ifdef USE_CRC + rval = et8ek8_i2c_read_reg(client, ET8EK8_REG_8BIT, 0x1263, ); + if (rval) + goto out; +#if USE_CRC /* TODO get crc setting from DT */ + val |= BIT(4); +#else +

Re: [PATCH v4] media: Driver for Toshiba et8ek8 5MP sensor

2016-11-03 Thread Ivaylo Dimitrov
Hi, On 4.11.2016 01:05, Sakari Ailus wrote: Hi Sebastian, On Thu, Nov 03, 2016 at 11:48:43PM +0100, Sebastian Reichel wrote: Hi, On Tue, Nov 01, 2016 at 12:54:08AM +0200, Sakari Ailus wrote: Thanks, this answered half of my questions already. ;-) :-). I'll have to go through the patches,

Re: [PATCH v4] media: Driver for Toshiba et8ek8 5MP sensor

2016-11-02 Thread Ivaylo Dimitrov
On 2.11.2016 10:15, Pavel Machek wrote: Hi! I'll have to go through the patches, et8ek8 driver is probably not enough to get useful video. platform/video-bus-switch.c is needed for camera switching, then some omap3isp patches to bind flash and autofocus into the subdevice. Then, device

Re: [PATCH v4] media: Driver for Toshiba et8ek8 5MP sensor

2016-11-01 Thread Ivaylo Dimitrov
On 1.11.2016 22:11, Sakari Ailus wrote: Hi Ivaylo, On Tue, Nov 01, 2016 at 08:36:57AM +0200, Ivaylo Dimitrov wrote: Hi, On 1.11.2016 00:54, Sakari Ailus wrote: Hi Pavel, On Sun, Oct 23, 2016 at 10:33:15PM +0200, Pavel Machek wrote: Hi! Thanks, this answered half of my questions

Re: [PATCH v4] media: Driver for Toshiba et8ek8 5MP sensor

2016-11-01 Thread Ivaylo Dimitrov
Hi, On 1.11.2016 00:54, Sakari Ailus wrote: Hi Pavel, On Sun, Oct 23, 2016 at 10:33:15PM +0200, Pavel Machek wrote: Hi! Thanks, this answered half of my questions already. ;-) :-). I'll have to go through the patches, et8ek8 driver is probably not enough to get useful video.

Re: [PATCH v3 0/2] media: add et8ek8 camera sensor driver and documentation

2016-10-23 Thread Ivaylo Dimitrov
changed according to the comments on v1 Ivaylo Dimitrov (2): media: Driver for Toshiba et8ek8 5MP sensor media: et8ek8: Add documentation Is there any progress here? Is there any way I could help? There were some notes I need to address, unfortunately no spare time lately :( . Feel free

Re: [PATCH v3 0/2] media: add et8ek8 camera sensor driver and documentation

2016-10-23 Thread Ivaylo Dimitrov
- code changed according to the comments on v1 Ivaylo Dimitrov (2): media: Driver for Toshiba et8ek8 5MP sensor media: et8ek8: Add documentation Is there any progress here? Is there any way I could help? There were some notes I need to address, unfortunately no spare time lately :( . Feel

Re: [RESEND PATCH v2 1/5] ir-rx51: Fix build after multiarch changes broke it

2016-06-27 Thread Ivaylo Dimitrov
On 23.06.2016 20:48, Pali Rohár wrote: On Wednesday 22 June 2016 21:22:17 Ivaylo Dimitrov wrote: The ir-rx51 driver for n900 has been disabled since the multiarch changes as plat include directory no longer is SoC specific. Let's fix it with minimal changes to pass the dmtimer calls in pdata

[RESEND PATCH v2 3/5] ir-rx51: use PWM framework instead of OMAP dmtimer

2016-06-22 Thread Ivaylo Dimitrov
Convert driver to use PWM framework instead of calling dmtimer functions directly for PWM timer. Remove paragraph about writing to the Free Software Foundation's mailing address while at it. Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov...@gmail.com> --- arch/arm/mach-omap2/boar

[RESEND PATCH v2 1/5] ir-rx51: Fix build after multiarch changes broke it

2016-06-22 Thread Ivaylo Dimitrov
on the previous patch "ARM: OMAP2+: Add more functions to pwm pdata for ir-rx51". Cc: Mauro Carvalho Chehab <mche...@osg.samsung.com> Cc: Neil Armstrong <narmstr...@baylibre.com> Cc: linux-media@vger.kernel.org Signed-off-by: Tony Lindgren <t...@atomide.com> Si

[RESEND PATCH v2 0/5] ir-rx51 driver fixes

2016-06-22 Thread Ivaylo Dimitrov
is needed so the driver to function correctly, without it PWM refuses to set the needed carrier frequency. Changes compared to v1: - removed [PATCH 5/7] ARM: OMAP: dmtimer: Do not call PM runtime functions when not needed. - DT compatible string changed to "nokia,n900-ir" Ivaylo Dimitrov

[RESEND PATCH v2 4/5] ir-rx51: add DT support to driver

2016-06-22 Thread Ivaylo Dimitrov
With the upcoming removal of legacy boot, lets add support to one of the last N900 drivers remaining without it. As the driver still uses omap dmtimer, add auxdata as well. Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov...@gmail.com> Acked-by: Rob Herring <r...@kernel.org> --- ..

[RESEND PATCH v2 2/5] pwm: omap-dmtimer: Allow for setting dmtimer clock source

2016-06-22 Thread Ivaylo Dimitrov
source. Allowing setting the clock source by PWM rather than by timer allows different PWMs to have different ranges by not hard-wiring the clock source to the timer. Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov...@gmail.com> Acked-by: Rob Herring <r...@kernel.org> --- Documentatio

[RESEND PATCH v2 5/5] ir-rx51: use hrtimer instead of dmtimer

2016-06-22 Thread Ivaylo Dimitrov
Drop dmtimer usage for pulse timer in favor of hrtimer. That allows removing PWM dmitimer platform data usage. Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov...@gmail.com> --- arch/arm/mach-omap2/board-rx51-peripherals.c | 4 - arch/arm/mach-omap2/pdata-quirks.c | 3 - d

Re: [PATCH v3 2/2] media: et8ek8: Add documentation

2016-06-15 Thread Ivaylo Dimitrov
On 15.06.2016 21:41, Rob Herring wrote: On Tue, Jun 14, 2016 at 11:31 PM, Sakari Ailus <sakari.ai...@iki.fi> wrote: Hi Rob, On Tue, Jun 14, 2016 at 05:05:17PM -0500, Rob Herring wrote: On Sat, Jun 11, 2016 at 06:39:53PM +0300, Ivaylo Dimitrov wrote: Add DT bindings descr

Re: [PATCH 5/7] ARM: OMAP: dmtimer: Do not call PM runtime functions when not needed.

2016-06-13 Thread Ivaylo Dimitrov
Hi, On 13.06.2016 10:10, Tony Lindgren wrote: * Ivaylo Dimitrov <ivo.g.dimitrov...@gmail.com> [160610 14:23]: On 10.06.2016 13:22, Tony Lindgren wrote: OK. And I just applied the related dts changes. Please repost the driver changes and DT binding doc with Rob's ack to the

Re: [PATCH 0/7] ir-rx51 driver fixes

2016-06-13 Thread Ivaylo Dimitrov
Hi, On 13.06.2016 21:17, Pali Rohár wrote: On Saturday 07 May 2016 17:21:41 Ivaylo Dimitrov wrote: ir-rx51 is a driver for Nokia N900 IR transmitter. The current series fixes the remaining problems in the driver: - replace GP timer 9 with PWM framework usage - replace pulse width timer

Re: [PATCH 1/1] v4l: Add camera voice coil lens control class, current control

2016-06-12 Thread Ivaylo Dimitrov
Hi, On 12.06.2016 23:41, Sakari Ailus wrote: From: Sakari Ailus Add a V4L2 control class for voice coil lens driver devices. These are simple devices that are used to move a camera lens from its resting position. Signed-off-by: Sakari Ailus

[PATCH v3 0/2] media: add et8ek8 camera sensor driver and documentation

2016-06-11 Thread Ivaylo Dimitrov
This series adds driver for Toshiba et8ek8 camera sensor found in Nokia N900 Changes from v2: - fix build when CONFIG_PM is not defined Changes from v1: - driver and documentation split into separate patches - removed custom controls - code changed according to the comments on v1 Ivaylo

[PATCH v3 1/2] media: Driver for Toshiba et8ek8 5MP sensor

2016-06-11 Thread Ivaylo Dimitrov
The sensor is found in Nokia N900 main camera Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov...@gmail.com> --- drivers/media/i2c/Kconfig|1 + drivers/media/i2c/Makefile |1 + drivers/media/i2c/et8ek8/Kconfig |6 + drivers/media/i2c/

[PATCH v3 2/2] media: et8ek8: Add documentation

2016-06-11 Thread Ivaylo Dimitrov
Add DT bindings description Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov...@gmail.com> --- .../bindings/media/i2c/toshiba,et8ek8.txt | 50 ++ 1 file changed, 50 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/toshiba,et8ek8.txt

[PATCH v2 1/2] media: Driver for Toshiba et8ek8 5MP sensor

2016-06-11 Thread Ivaylo Dimitrov
The sensor is found in Nokia N900 main camera Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov...@gmail.com> --- drivers/media/i2c/Kconfig|1 + drivers/media/i2c/Makefile |1 + drivers/media/i2c/et8ek8/Kconfig |6 + drivers/media/i2c/

[PATCH v2 0/2] media: add et8ek8 camera sensor driver and documentation

2016-06-11 Thread Ivaylo Dimitrov
This series adds driver for Toshiba et8ek8 camera sensor found in Nokia N900 Changes from v2: - driver and documentation split into separate patches - removed custom controls - code changed according to the comments on v1 Ivaylo Dimitrov (2): media: Driver for Toshiba et8ek8 5MP sensor

[PATCH v2 2/2] media: et8ek8: Add documentation

2016-06-11 Thread Ivaylo Dimitrov
Add DT bindings description Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov...@gmail.com> --- .../bindings/media/i2c/toshiba,et8ek8.txt | 50 ++ 1 file changed, 50 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/toshiba,et8ek8.txt

Re: [PATCH 5/7] ARM: OMAP: dmtimer: Do not call PM runtime functions when not needed.

2016-06-10 Thread Ivaylo Dimitrov
On 10.06.2016 13:22, Tony Lindgren wrote: OK. And I just applied the related dts changes. Please repost the driver changes and DT binding doc with Rob's ack to the driver maintainers to apply. Already did, see https://lkml.org/lkml/2016/5/16/429 Shall I do anything else? Thanks, Ivo -- To

Re: [PATCH] userspace API definitions for auto-focus coil

2016-06-06 Thread Ivaylo Dimitrov
Hi, On 5.06.2016 22:07, Pavel Machek wrote: Add userspace API definitions. Signed-off-by: Pavel Machek diff --git a/include/uapi/linux/v4l2-controls.h b/include/uapi/linux/v4l2-controls.h index b6a357a..23011cc 100644 --- a/include/uapi/linux/v4l2-controls.h +++

Re: [PATCH] [media]: Driver for Toshiba et8ek8 5MP sensor

2016-06-04 Thread Ivaylo Dimitrov
ace. I'll try to take a look at those some time in the near future. ok I very much appreciate your work towards finally upstreaming this! :-) On Tue, May 03, 2016 at 05:50:04PM +0300, Ivaylo Dimitrov wrote: The sensor is found in Nokia N900 main camera Signed-off-by: Ivaylo Dimitrov <i

Re: [PATCH] [media]: Driver for Toshiba et8ek8 5MP sensor

2016-06-04 Thread Ivaylo Dimitrov
Hi, On 24.05.2016 14:19, Pavel Machek wrote: Hi! The sensor is found in Nokia N900 main camera Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov...@gmail.com> +/* + * A buffered write method that puts the wanted register write + * commands in a message list and passes the list to t

Re: [PATCHv3] support for AD5820 camera auto-focus coil

2016-05-25 Thread Ivaylo Dimitrov
On 24.05.2016 23:20, Pavel Machek wrote: Hi! devm_regulator_get()? I'd rather avoid devm_ here. Driver is simple enough to allow it. Now thinking about it, what would happen here if regulator_get() returns -EPROBE_DEFER? Wouldn't it be better to move regulator_get to the probe()

Re: [PATCHv3] support for AD5820 camera auto-focus coil

2016-05-24 Thread Ivaylo Dimitrov
On 24.05.2016 12:04, Pavel Machek wrote: Hi! +static int ad5820_registered(struct v4l2_subdev *subdev) +{ + struct ad5820_device *coil = to_ad5820_device(subdev); + struct i2c_client *client = v4l2_get_subdevdata(subdev); + + coil->vana = regulator_get(>dev, "VANA");

Re: [PATCH] [media]: Driver for Toshiba et8ek8 5MP sensor

2016-05-22 Thread Ivaylo Dimitrov
On 3.05.2016 17:50, Ivaylo Dimitrov wrote: The sensor is found in Nokia N900 main camera Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov...@gmail.com> --- .../bindings/media/i2c/toshiba,et8ek8.txt | 53 + drivers/media/i2c/Kconfig |1 + d

Re: [PATCHv3] support for AD5820 camera auto-focus coil

2016-05-21 Thread Ivaylo Dimitrov
Hi, On 21.05.2016 13:56, Pavel Machek wrote: This adds support for AD5820 autofocus coil, found for example in Nokia N900 smartphone. Signed-off-by: Pavel Machek --- v2: simple cleanups, fix error paths, simplify probe v3: more cleanups, remove printk, add include diff --git

Re: [PATCHv2] support for AD5820 camera auto-focus coil

2016-05-21 Thread Ivaylo Dimitrov
Hi, On 21.05.2016 08:43, Pavel Machek wrote: This adds support for AD5820 autofocus coil, found for example in Nokia N900 smartphone. Signed-off-by: Pavel Machek --- v2: simple cleanups, fix error paths, simplify probe I think it is ready. Please apply :-). diff --git

[PATCH v2 0/6] ir-rx51 driver fixes

2016-05-16 Thread Ivaylo Dimitrov
is needed so the driver to function correctly, without it PWM refuses to set the needed carrier frequency. Changes compared to v1: - removed [PATCH 5/7] ARM: OMAP: dmtimer: Do not call PM runtime functions when not needed. - DT compatible string changed to "nokia,n900-ir" Ivaylo Dimitrov

[PATCH v2 2/6] pwm: omap-dmtimer: Allow for setting dmtimer clock source

2016-05-16 Thread Ivaylo Dimitrov
source. Allowing setting the clock source by PWM rather than by timer allows different PWMs to have different ranges by not hard-wiring the clock source to the timer. Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov...@gmail.com> Acked-by: Rob Herring <r...@kernel.org> --- Documentatio

[PATCH v2 6/6] ARM: dts: n900: enable lirc-rx51 driver

2016-05-16 Thread Ivaylo Dimitrov
Add the needed DT data to enable IR TX driver Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov...@gmail.com> --- arch/arm/boot/dts/omap3-n900.dts | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts index b

[PATCH v2 4/6] ir-rx51: add DT support to driver

2016-05-16 Thread Ivaylo Dimitrov
With the upcoming removal of legacy boot, lets add support to one of the last N900 drivers remaining without it. As the driver still uses omap dmtimer, add auxdata as well. Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov...@gmail.com> --- .../devicetree/bindings/media/nokia,n900-ir

[PATCH v2 1/6] ir-rx51: Fix build after multiarch changes broke it

2016-05-16 Thread Ivaylo Dimitrov
From: Tony Lindgren The ir-rx51 driver for n900 has been disabled since the multiarch changes as plat include directory no longer is SoC specific. Let's fix it with minimal changes to pass the dmtimer calls in pdata. Then the following changes can be done while things can be

[PATCH v2 3/6] ir-rx51: use PWM framework instead of OMAP dmtimer

2016-05-16 Thread Ivaylo Dimitrov
Convert driver to use PWM framework instead of calling dmtimer functions directly for PWM timer. Remove paragraph about writing to the Free Software Foundation's mailing address while at it. Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov...@gmail.com> --- arch/arm/mach-omap2/boar

[PATCH v2 5/6] ir-rx51: use hrtimer instead of dmtimer

2016-05-16 Thread Ivaylo Dimitrov
Drop dmtimer usage for pulse timer in favor of hrtimer. That allows removing PWM dmitimer platform data usage. Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov...@gmail.com> --- arch/arm/mach-omap2/board-rx51-peripherals.c | 4 - arch/arm/mach-omap2/pdata-quirks.c | 3 - d

Re: [PATCH 4/7] [media] ir-rx51: add DT support to driver

2016-05-13 Thread Ivaylo Dimitrov
Hi, On 11.05.2016 17:14, Rob Herring wrote: On Tue, May 10, 2016 at 04:18:27AM +0200, Sebastian Reichel wrote: Hi, On Mon, May 09, 2016 at 04:07:35PM -0500, Rob Herring wrote: There's already a pwm-led binding that can be used. Though there may be missing consumer IR to LED subsystem support

Re: [PATCH 4/7] [media] ir-rx51: add DT support to driver

2016-05-09 Thread Ivaylo Dimitrov
On 10.05.2016 00:07, Rob Herring wrote: On Mon, May 9, 2016 at 3:53 PM, Ivaylo Dimitrov <ivo.g.dimitrov...@gmail.com> wrote: Hi, On 9.05.2016 23:06, Rob Herring wrote: On Sat, May 07, 2016 at 06:21:45PM +0300, Ivaylo Dimitrov wrote: With the upcoming removal of legacy boot, le

Re: [PATCH 4/7] [media] ir-rx51: add DT support to driver

2016-05-09 Thread Ivaylo Dimitrov
Hi, On 9.05.2016 23:06, Rob Herring wrote: On Sat, May 07, 2016 at 06:21:45PM +0300, Ivaylo Dimitrov wrote: With the upcoming removal of legacy boot, lets add support to one of the last N900 drivers remaining without it. As the driver still uses omap dmtimer, add auxdata as well. Signed-off

Re: [PATCH 5/7] ARM: OMAP: dmtimer: Do not call PM runtime functions when not needed.

2016-05-09 Thread Ivaylo Dimitrov
Hi, On 9.05.2016 22:36, Tony Lindgren wrote: * Ivaylo Dimitrov <ivo.g.dimitrov...@gmail.com> [160507 08:24]: once omap_dm_timer_start() is called, which calls omap_dm_timer_enable() and thus pm_runtime_get_sync(), it doesn't make sense to call PM runtime functions again

[PATCH 0/7] ir-rx51 driver fixes

2016-05-07 Thread Ivaylo Dimitrov
are needed so the driver to function correctly, without those PWM either refuses to set the needed carrier frequency (patch 2) or there are such a delays in the PWM framework, code that transmission duration raises to ~5s instead of half a second. Ivaylo Dimitrov (6): pwm: omap-dmtimer: Allow

[PATCH 1/7] ir-rx51: Fix build after multiarch changes broke it

2016-05-07 Thread Ivaylo Dimitrov
From: Tony Lindgren The ir-rx51 driver for n900 has been disabled since the multiarch changes as plat include directory no longer is SoC specific. Let's fix it with minimal changes to pass the dmtimer calls in pdata. Then the following changes can be done while things can be

[PATCH 7/7] ARM: dts: n900: enable lirc-rx51 driver

2016-05-07 Thread Ivaylo Dimitrov
Add the needed DT data to enable IR TX driver Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov...@gmail.com> --- arch/arm/boot/dts/omap3-n900.dts | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts index b

[PATCH 5/7] ARM: OMAP: dmtimer: Do not call PM runtime functions when not needed.

2016-05-07 Thread Ivaylo Dimitrov
delays. Fix that by implementing an "enabled" counter, so the PM runtime functions get called only when really needed. Without that patch Nokia N900 IR TX driver (ir-rx51) does not function. Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov...@gmail.com> --- arch/arm/pla

[PATCH 6/7] [media] ir-rx51: use hrtimer instead of dmtimer

2016-05-07 Thread Ivaylo Dimitrov
Drop dmtimer usage for pulse timer in favor of hrtimer. That allows removing PWM dmitimer platform data usage. Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov...@gmail.com> --- arch/arm/mach-omap2/board-rx51-peripherals.c | 4 - arch/arm/mach-omap2/pdata-quirks.c | 3 - d

[PATCH 3/7] [media] ir-rx51: use PWM framework instead of OMAP dmtimer

2016-05-07 Thread Ivaylo Dimitrov
Convert driver to use PWM framework instead of calling dmtimer functions directly for PWM timer. Remove paragraph about writing to the Free Software Foundation's mailing address while at it. Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov...@gmail.com> --- arch/arm/mach-omap2/boar

[PATCH 4/7] [media] ir-rx51: add DT support to driver

2016-05-07 Thread Ivaylo Dimitrov
With the upcoming removal of legacy boot, lets add support to one of the last N900 drivers remaining without it. As the driver still uses omap dmtimer, add auxdata as well. Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov...@gmail.com> --- .../devicetree/bindings/media/nokia,lirc-rx51

[PATCH 2/7] pwm: omap-dmtimer: Allow for setting dmtimer clock source

2016-05-07 Thread Ivaylo Dimitrov
source. Allowing setting the clock source by PWM rather than by timer allows different PWMs to have different ranges by not hard-wiring the clock source to the timer. Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov...@gmail.com> --- Documentation/devicetree/bindings/pwm/pwm-omap-dmtimer.tx

Re: [RFC PATCH 06/24] smiapp: Add quirk control support

2016-05-03 Thread Ivaylo Dimitrov
Hi, On 1.05.2016 13:46, Sakari Ailus wrote: On Mon, Apr 25, 2016 at 12:08:06AM +0300, Ivaylo Dimitrov wrote: From: Sakari Ailus <sakari.ai...@linux.intel.com> Quirk controls can be set up in the init quirk. Signed-off-by: Sakari Ailus <sakari.ai...@linux.intel.com> Do yo

Re: [RFC PATCH 04/24] smiapp-pll: Take existing divisor into account in minimum divisor check

2016-05-03 Thread Ivaylo Dimitrov
Hi, On 1.05.2016 13:45, Sakari Ailus wrote: Hi Ivaylo, On Mon, Apr 25, 2016 at 12:08:04AM +0300, Ivaylo Dimitrov wrote: From: Sakari Ailus <sakari.ai...@iki.fi> Required added multiplier (and divisor) calculation did not take into account the existing divisor when checking the

[PATCH] [media]: Driver for Toshiba et8ek8 5MP sensor

2016-05-03 Thread Ivaylo Dimitrov
The sensor is found in Nokia N900 main camera Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov...@gmail.com> --- .../bindings/media/i2c/toshiba,et8ek8.txt | 53 + drivers/media/i2c/Kconfig |1 + drivers/media/i2c/Makefile

Re: [RFC PATCH 03/24] et8ek8: Toshiba 5MP sensor driver

2016-05-01 Thread Ivaylo Dimitrov
Hi, On 1.05.2016 13:44, Sakari Ailus wrote: Hi Ivaylo, On Mon, Apr 25, 2016 at 12:08:03AM +0300, Ivaylo Dimitrov wrote: add driver Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov...@gmail.com> --- drivers/media/i2c/smia/Kconfig |8 + drivers/media/i2c/smia/Makefile |1 + d

Re: [RFC PATCH 03/24] et8ek8: Toshiba 5MP sensor driver

2016-05-01 Thread Ivaylo Dimitrov
Ignore that mail, I pushed send by mistake On 1.05.2016 15:31, Ivaylo Dimitrov wrote: Hi, On 1.05.2016 13:44, Sakari Ailus wrote: Hi Ivaylo, On Mon, Apr 25, 2016 at 12:08:03AM +0300, Ivaylo Dimitrov wrote: add driver Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov...@gmail.

Re: [RFC PATCH 03/24] et8ek8: Toshiba 5MP sensor driver

2016-05-01 Thread Ivaylo Dimitrov
Hi, On 1.05.2016 13:44, Sakari Ailus wrote: Hi Ivaylo, On Mon, Apr 25, 2016 at 12:08:03AM +0300, Ivaylo Dimitrov wrote: add driver Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov...@gmail.com> --- drivers/media/i2c/smia/Kconfig |8 + drivers/media/i2c/smia/Makefile |1 + d

Re: [PATCH 0/2] Fix ir-rx51 by using PWM pdata

2016-04-30 Thread Ivaylo Dimitrov
Hi, On 29.04.2016 00:27, Tony Lindgren wrote: * Ivaylo Dimitrov <ivo.g.dimitrov...@gmail.com> [160428 14:21]: I didn't test legacy boot, as I don't really see any value of doing it now the end of the legacy boot is near, the driver does not function correctly, however the patchset at

Re: camera application for testing (was Re: v4l subdevs without big device)

2016-04-29 Thread Ivaylo Dimitrov
Hi, On 30.04.2016 01:20, Pali Rohár wrote: On Saturday 30 April 2016 00:13:59 Pavel Machek wrote: Any other application I should look at? Thanks, Maybe camera-ui, which is part of CSSU? https://github.com/community-ssu/camera-ui This is based on gdigicam, are you sure it is compatible

Re: [RFC PATCH 00/24] Make Nokia N900 cameras working

2016-04-29 Thread Ivaylo Dimitrov
Hi, On 29.04.2016 20:45, Sebastian Reichel wrote: Hi, On Fri, Apr 29, 2016 at 02:05:52AM +0200, Sebastian Reichel wrote: On Wed, Apr 27, 2016 at 08:12:50PM +0300, Ивайло Димитров wrote: The zImage + initrd works with the steps you described below. Great! I also got it working with the

Re: [PATCH 0/2] Fix ir-rx51 by using PWM pdata

2016-04-28 Thread Ivaylo Dimitrov
not function correctly, however the patchset at least allows for the driver to be build and we have something to improve on. And I am going to send a patch that fixes the problem with omap_dm_timer_request_specific(). So, for both patches, you may add: Tested-by: Ivaylo Dimitrov

Re: [PATCH 2/2] [media] ir-rx51: Fix build after multiarch changes broke it

2016-04-28 Thread Ivaylo Dimitrov
Хи, On 28.04.2016 23:22, Tony Lindgren wrote: * Ivaylo Dimitrov <ivo.g.dimitrov...@gmail.com> [160428 12:39]: On 27.04.2016 02:51, Tony Lindgren wrote: omap_dm_timer_request_specific always fails with message "Please use omap_dm_timer_request_by_cap/node()" with DT boot. I

Re: [PATCH 2/2] [media] ir-rx51: Fix build after multiarch changes broke it

2016-04-28 Thread Ivaylo Dimitrov
Hi, On 27.04.2016 02:51, Tony Lindgren wrote: The ir-rx51 driver for n900 has been disabled since the multiarch changes as plat include directory no longer is SoC specific. Let's fix it with minimal changes to pass the dmtimer calls in pdata. Then the following changes can be done while things

Re: [RFC PATCH 00/24] Make Nokia N900 cameras working

2016-04-27 Thread Ivaylo Dimitrov
Hi, On 27.04.2016 08:05, Ivaylo Dimitrov wrote: Hi, On 27.04.2016 06:08, Sebastian Reichel wrote: Hi, On Mon, Apr 25, 2016 at 12:08:00AM +0300, Ivaylo Dimitrov wrote: Those patch series make cameras on Nokia N900 partially working. Some more patches are needed, but I've already sent them

Re: [RFC PATCH 00/24] Make Nokia N900 cameras working

2016-04-26 Thread Ivaylo Dimitrov
Hi, On 27.04.2016 06:08, Sebastian Reichel wrote: Hi, On Mon, Apr 25, 2016 at 12:08:00AM +0300, Ivaylo Dimitrov wrote: Those patch series make cameras on Nokia N900 partially working. Some more patches are needed, but I've already sent them for upstreaming so they are not part of the series

Re: [RFC PATCH 00/24] Make Nokia N900 cameras working

2016-04-25 Thread Ivaylo Dimitrov
Hi, On 26.04.2016 01:07, Pavel Machek wrote: Hi! Hi! All my testing so far was performed using modules, though it shouldn't make difference. https://lkml.org/lkml/2016/4/16/14 https://lkml.org/lkml/2016/4/16/33 More stuff is needed, all those twl4030 regulator patches (already in

Re: [RFC PATCH 00/24] Make Nokia N900 cameras working

2016-04-25 Thread Ivaylo Dimitrov
Hi, On 25.04.2016 23:41, Pavel Machek wrote: Hi! All my testing so far was performed using modules, though it shouldn't make difference. https://lkml.org/lkml/2016/4/16/14 https://lkml.org/lkml/2016/4/16/33 More stuff is needed, all those twl4030 regulator patches (already in linux-next)

Re: [RFC PATCH 00/24] Make Nokia N900 cameras working

2016-04-25 Thread Ivaylo Dimitrov
Hi, On 25.04.2016 21:40, Pavel Machek wrote: Hi! I can't do -vo xv ... fails for me, probably due to X configuration. Does it work with -vo x11 for you? yes, -vo x11 works under maemo. Ok, good. In linux-n900 branch we have a patch that reserves memory for omapfb - see

Re: [RFC PATCH 00/24] Make Nokia N900 cameras working

2016-04-25 Thread Ivaylo Dimitrov
On 25.04.2016 20:09, Pavel Machek wrote: Hi! The needed pipeline could be made with: Would you have similar pipeline for the back camera? Autofocus and 5MPx makes it more interesting. I understand that different dts will be needed. Try with: media-ctl -r media-ctl -l '"et8ek8 3-003e":0

Re: [RFC PATCH 00/24] Make Nokia N900 cameras working

2016-04-25 Thread Ivaylo Dimitrov
Hi, On 25.04.2016 19:58, Pavel Machek wrote: Hi! Ok, let me try: The needed pipeline could be made with: media-ctl -r media-ctl -l '"vs6555 binner 2-0010":1 -> "video-bus-switch":2 [1]' media-ctl -l '"video-bus-switch":0 -> "OMAP3 ISP CCP2":0 [1]' media-ctl -l '"OMAP3 ISP CCP2":1 -> "OMAP3

Re: [RFC PATCH 01/24] V4L fixes

2016-04-25 Thread Ivaylo Dimitrov
Hi, On 25.04.2016 16:25, Sakari Ailus wrote: Hi Ivaylo, Thanks for the set! On Mon, Apr 25, 2016 at 12:08:01AM +0300, Ivaylo Dimitrov wrote: From: "Tuukka.O Toivonen" <tuukka.o.toivo...@nokia.com> Squashed from the following upstream commits: V4L: Create control class for

Re: [RFC PATCH 00/24] Make Nokia N900 cameras working

2016-04-25 Thread Ivaylo Dimitrov
On 25.04.2016 00:55, Pavel Machek wrote: Hi! Those patch series make cameras on Nokia N900 partially working. Some more patches are needed, but I've already sent them for upstreaming so they are not part of the series: https://lkml.org/lkml/2016/4/16/14 https://lkml.org/lkml/2016/4/16/33

[RFC PATCH 04/24] smiapp-pll: Take existing divisor into account in minimum divisor check

2016-04-24 Thread Ivaylo Dimitrov
From: Sakari Ailus Required added multiplier (and divisor) calculation did not take into account the existing divisor when checking the values against the minimum divisor. Do just that. Signed-off-by: Sakari Ailus --- drivers/media/i2c/smiapp-pll.c |

[RFC PATCH 09/24] v4l: Add CSI1 and CCP2 bus type to enum v4l2_mbus_type

2016-04-24 Thread Ivaylo Dimitrov
From: Sakari Ailus CCP2, or CSI-1, is an older single data lane serial bus. Signed-off-by: Sakari Ailus --- include/media/v4l2-mediabus.h | 4 1 file changed, 4 insertions(+) diff --git a/include/media/v4l2-mediabus.h

[RFC PATCH 06/24] smiapp: Add quirk control support

2016-04-24 Thread Ivaylo Dimitrov
From: Sakari Ailus Quirk controls can be set up in the init quirk. Signed-off-by: Sakari Ailus --- drivers/media/i2c/smiapp/smiapp-core.c | 6 ++ drivers/media/i2c/smiapp/smiapp-quirk.h | 3 +++ 2 files changed, 9 insertions(+)

[RFC PATCH 21/24] omap3isp: dt: Add support for CSI1/CCP2 busses

2016-04-24 Thread Ivaylo Dimitrov
From: Sakari Ailus Obtain the CSI1/CCP2 bus parameters from the OF node. Signed-off-by: Sakari Ailus --- drivers/media/platform/omap3isp/isp.c | 110 -- 1 file changed, 77 insertions(+), 33 deletions(-) diff --git

[RFC PATCH 12/24] dt: bindings: Add CSI1/CCP2 related properties to video-interfaces.txt

2016-04-24 Thread Ivaylo Dimitrov
From: Sakari Ailus Document the CSI1/CCP2 properties strobe_clk_inv and strobe_clock properties. The former tells whether the strobe/clock signal is inverted, while the latter signifies the clock or strobe mode. Signed-off-by: Sakari Ailus ---

[RFC PATCH 10/24] v4l: of: Separate lane parsing from CSI-2 bus parameter parsing

2016-04-24 Thread Ivaylo Dimitrov
From: Sakari Ailus The CSI-1 will need these as well, separate them into a different function. have_clk_lane and num_data_lanes arguments may be NULL; the CSI-1 bus will have no use for them. Signed-off-by: Sakari Ailus ---

[RFC PATCH 11/24] dt: bindings: v4l: Add bus-type video interface property

2016-04-24 Thread Ivaylo Dimitrov
From: Sakari Ailus In the vast majority of cases the bus type is known to the driver(s) since a receiver or transmitter can only support a single one. There are cases however where different options are possible. Signed-off-by: Sakari Ailus ---

[RFC PATCH 05/24] smiapp: Add smiapp_has_quirk() to tell whether a quirk is implemented

2016-04-24 Thread Ivaylo Dimitrov
From: Sakari Ailus Signed-off-by: Sakari Ailus --- drivers/media/i2c/smiapp/smiapp-quirk.h | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/smiapp/smiapp-quirk.h b/drivers/media/i2c/smiapp/smiapp-quirk.h

[RFC PATCH 16/24] media: video-bus-switch: new driver

2016-04-24 Thread Ivaylo Dimitrov
Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov...@gmail.com> --- drivers/media/platform/Kconfig| 10 + drivers/media/platform/Makefile | 2 + drivers/media/platform/video-bus-switch.c | 366 ++ 3 files changed, 378 insertions(+) creat

[RFC PATCH 14/24] media: et8ek8: add device tree binding document

2016-04-24 Thread Ivaylo Dimitrov
From: Sebastian Reichel Add the document for et8ek8 dt. --- .../bindings/media/i2c/toshiba,et8ek8.txt | 56 ++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/toshiba,et8ek8.txt diff --git

[RFC PATCH 18/24] v4l2-async: per notifier locking

2016-04-24 Thread Ivaylo Dimitrov
From: Sebastian Reichel --- drivers/media/v4l2-core/v4l2-async.c | 50 ++-- include/media/v4l2-async.h | 2 ++ 2 files changed, 27 insertions(+), 25 deletions(-) diff --git a/drivers/media/v4l2-core/v4l2-async.c

[RFC PATCH 24/24] ARM: dts: omap3-n900: enable cameras - remove invalid entry

2016-04-24 Thread Ivaylo Dimitrov
Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov...@gmail.com> --- arch/arm/boot/dts/omap3-n900.dts | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts index 03e1613..bf74f85 100644 --- a/arch/arm/boot/dts/omap3-n900.dts +++

[RFC PATCH 17/24] smiapp: add CCP2 support

2016-04-24 Thread Ivaylo Dimitrov
From: Sebastian Reichel Add support for CCP2 connected SMIA sensors as found on the Nokia N900. Signed-off-by: Sebastian Reichel --- drivers/media/i2c/smiapp/smiapp-core.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git

[RFC PATCH 23/24] [media] omap3isp: Make sure CSI1 interface is enabled in CPP2 mode

2016-04-24 Thread Ivaylo Dimitrov
OMAP3430 needs various syscon CONTROL_CSIRXFE bits set in order to operate. Implement the missing functionality. Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov...@gmail.com> --- drivers/media/platform/omap3isp/ispccp2.c | 27 +++ 1 file changed, 27 insertions(+)

[RFC PATCH 15/24] media: add subdev type for bus switch

2016-04-24 Thread Ivaylo Dimitrov
From: Sebastian Reichel --- include/uapi/linux/media.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/media.h b/include/uapi/linux/media.h index df59ede..244bea1 100644 --- a/include/uapi/linux/media.h +++ b/include/uapi/linux/media.h @@ -137,6 +137,7 @@

[RFC PATCH 13/24] v4l: of: Support CSI-1 and CCP2 busses

2016-04-24 Thread Ivaylo Dimitrov
Add support for parsing of CSI-1 and CCP2 bus related properties documented in video-interfaces.txt. Signed-off-by: Sakari Ailus --- drivers/media/v4l2-core/v4l2-of.c | 35 +++ include/media/v4l2-of.h | 17 + 2 files

[RFC PATCH 03/24] et8ek8: Toshiba 5MP sensor driver

2016-04-24 Thread Ivaylo Dimitrov
add driver Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov...@gmail.com> --- drivers/media/i2c/smia/Kconfig |8 + drivers/media/i2c/smia/Makefile |1 + drivers/media/i2c/smia/et8ek8.c | 1788 +++ 3 files changed, 1797 insertions(+) create mode

  1   2   >