cron job: media_tree daily build: OK

2018-07-23 Thread Hans Verkuil
This message is generated daily by a cron job that builds media_tree for the kernels and architectures in the list below. Results of the daily build of media_tree: date: Tue Jul 24 05:00:11 CEST 2018 media-tree git hash:39fbb88165b2bbbc77ea7acab5f10632a31526e6 media_build

[PATCH RESEND v6 15/17] media: platform: Switch to v4l2_async_notifier_add_subdev

2018-07-23 Thread Steve Longerbeam
Switch all media platform drivers to call v4l2_async_notifier_add_subdev() to add asd's to a notifier, in place of referencing the notifier->subdevs[] array. These drivers also must now call v4l2_async_notifier_init() before adding asd's to their notifiers. There may still be cases where a

Re: [PATCH 16/16] media: imx: add mem2mem device

2018-07-23 Thread Steve Longerbeam
On 07/23/2018 12:31 AM, Philipp Zabel wrote: ipu_image_convert_adjust tries to adjust both input and output image at the same time, here we just have the format of either input or output image. Do you suggest to split this function into an input and an output version? See b4362162c0

[PATCH 01/21] v4l: fwnode: Add debug prints for V4L2 endpoint property parsing

2018-07-23 Thread Sakari Ailus
Print debug info as standard V4L2 endpoint are parsed. Signed-off-by: Sakari Ailus Reviewed-by: Niklas Söderlund --- drivers/media/v4l2-core/v4l2-fwnode.c | 108 ++ 1 file changed, 85 insertions(+), 23 deletions(-) diff --git

[PATCH 14/21] v4l: fwnode: Use default parallel flags

2018-07-23 Thread Sakari Ailus
The caller may provide default flags for the endpoint. Change the configuration based on what is available through the fwnode property API. Signed-off-by: Sakari Ailus --- drivers/media/v4l2-core/v4l2-fwnode.c | 19 +++ 1 file changed, 19 insertions(+) diff --git

[PATCH 02/21] v4l: fwnode: Use fwnode_graph_for_each_endpoint

2018-07-23 Thread Sakari Ailus
Use fwnode_graph_for_each_endpoint iterator for better readability. Signed-off-by: Sakari Ailus Reviewed-by: Niklas Söderlund --- drivers/media/v4l2-core/v4l2-fwnode.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/media/v4l2-core/v4l2-fwnode.c

[PATCH 00/21] V4L2 fwnode rework; support for default configuration

2018-07-23 Thread Sakari Ailus
Hello everyone, I've long thought the V4L2 fwnode framework requires some work (it's buggy and it does not adequately serve common needs). This set should address in particular these matters: - Most devices support a particular media bus type but the V4L2 fwnode framework was not able to use

[PATCH 11/21] v4l: fwnode: Support driver-defined lane mapping defaults

2018-07-23 Thread Sakari Ailus
Make use of the default CSI-2 lane mapping from caller-passed configuration. Signed-off-by: Sakari Ailus --- drivers/media/v4l2-core/v4l2-fwnode.c | 20 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/drivers/media/v4l2-core/v4l2-fwnode.c

[PATCH 05/21] dt-bindings: media: Specify bus type for MIPI D-PHY, others, explicitly

2018-07-23 Thread Sakari Ailus
Allow specifying the bus type explicitly for MIPI D-PHY, parallel and Bt.656 busses. This is useful for devices that can make use of different bus types. There are CSI-2 transmitters and receivers but the PHY selection needs to be made between C-PHY and D-PHY; many devices also support parallel

[PATCH 03/21] v4l: fwnode: Detect bus type correctly

2018-07-23 Thread Sakari Ailus
In case the device supports multiple video bus types on an endpoint, the V4L2 fwnode framework attempts to detect the type based on the available information. This wasn't working really well, and sometimes could lead to the V4L2 fwnode endpoint struct as being mishandled between the bus types.

[PATCH 21/21] smiapp: Query the V4L2 endpoint for a specific bus type

2018-07-23 Thread Sakari Ailus
Instead of opportunistically trying to gather some information from the V4L2 endpoint, set the bus type and let the V4L2 fwnode framework figure out the configuration. Signed-off-by: Sakari Ailus --- drivers/media/i2c/smiapp/smiapp-core.c | 6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH 06/21] v4l: fwnode: Add definitions for CSI-2 D-PHY, parallel and Bt.656 busses

2018-07-23 Thread Sakari Ailus
Add definitions corresponding to DT bindings to the CSI-2 D-PHY, parallel and Bt.656 busses. Signed-off-by: Sakari Ailus --- drivers/media/v4l2-core/v4l2-fwnode.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/media/v4l2-core/v4l2-fwnode.c

[PATCH 04/21] v4l: fwnode: The CSI-2 clock is continuous if it's not non-continuous

2018-07-23 Thread Sakari Ailus
The continuous clock flag was only set if there was a clock or data lanes. This isn't needed as such a configuration is invalid to begin with. Always set the continuous clock flag if the non-continuous property is not found. Still don't consider the continuous clock flag as an indication that

[PATCH 18/21] v4l: fwnode: Use V4L2 fwnode endpoint media bus type if set

2018-07-23 Thread Sakari Ailus
Use the given media bus type set by the caller. If none is given (i.e. the mbus type is V4L2_MBUS_UNKNOWN, or 0), fall back to the old behaviour. This is to obtain the information from the DT or try to guess the bus type. -ENXIO is returned if the caller sets the bus type but that does not match

[PATCH 09/21] v4l: fwnode: Read lane inversion information despite lane numbering

2018-07-23 Thread Sakari Ailus
Read the lane inversion independently of whether the "data-lanes" property exists. This makes sense since the caller may pass the number of lanes as the default configuration while the lane inversion configuration may still be available in firmware. Signed-off-by: Sakari Ailus ---

[PATCH 10/21] v4l: fwnode: Only assign configuration if there is no error

2018-07-23 Thread Sakari Ailus
Only assign endpoint configuration if the endpoint is parsed successfully. Signed-off-by: Sakari Ailus --- drivers/media/v4l2-core/v4l2-fwnode.c | 30 ++ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/drivers/media/v4l2-core/v4l2-fwnode.c

[PATCH 15/21] v4l: fwnode: Allow setting default parameters

2018-07-23 Thread Sakari Ailus
Instead of allocating the V4L2 fwnode endpoint in v4l2_fwnode_endpoint_alloc_parse, let the caller to do this. This allows setting default parameters for the endpoint which is a very common need for drivers. Signed-off-by: Sakari Ailus --- drivers/media/i2c/ov2659.c | 14

[PATCH 16/21] v4l: fwnode: Use media bus type for bus parser selection

2018-07-23 Thread Sakari Ailus
Use the media bus types instead of the fwnode bus types internally. This is the interface to the drivers as well, making the use of the fwnode bus types more localised to the V4L2 fwnode framework. Signed-off-by: Sakari Ailus --- drivers/media/v4l2-core/v4l2-fwnode.c | 98

[PATCH 17/21] v4l: fwnode: Print bus type

2018-07-23 Thread Sakari Ailus
Print bus type either as set by the driver or as parsed from the bus-type property, as well as the guessed V4L2 media bus type. Signed-off-by: Sakari Ailus --- drivers/media/v4l2-core/v4l2-fwnode.c | 38 +++ 1 file changed, 38 insertions(+) diff --git

[PATCH 08/21] v4l: fwnode: Make use of newly specified bus types

2018-07-23 Thread Sakari Ailus
Make use of bus type specified for an endpoint. Signed-off-by: Sakari Ailus --- drivers/media/v4l2-core/v4l2-fwnode.c | 48 ++- 1 file changed, 36 insertions(+), 12 deletions(-) diff --git a/drivers/media/v4l2-core/v4l2-fwnode.c

[PATCH 12/21] v4l: fwnode: Support default CSI-2 lane mapping for drivers

2018-07-23 Thread Sakari Ailus
Most hardware doesn't support re-mapping of the CSI-2 lanes. Especially sensor drivers have a default number of lanes. Instead of requiring the caller (the driver) to provide such a unit mapping, provide one if no mapping is configured. Signed-off-by: Sakari Ailus ---

[PATCH 20/21] v4l: fwnode: Update V4L2 fwnode endpoint parsing documentation

2018-07-23 Thread Sakari Ailus
The semantics of v4l2_fwnode_endpoint_parse() and v4l2_fwnode_endpoint_alloc_parse() have changed slightly: they now take the bus type from the user as well as a default configuration for the bus that shall reflect the DT binding defaults. Document this. Signed-off-by: Sakari Ailus ---

[PATCH 19/21] v4l: fwnode: Support parsing of CSI-2 C-PHY endpoints

2018-07-23 Thread Sakari Ailus
The V4L2 fwnode framework only parsed CSI-2 D-PHY endpoints while C-PHY support wasn't there. Also parse endpoints for media bus type V4L2_MBUS_CSI2_CPHY. Signed-off-by: Sakari Ailus --- drivers/media/v4l2-core/v4l2-fwnode.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff

[PATCH 07/21] v4l: mediabus: Recognise CSI-2 D-PHY and C-PHY

2018-07-23 Thread Sakari Ailus
The CSI-2 bus may use either D-PHY or C-PHY. Make this visible in media bus enum. Signed-off-by: Sakari Ailus --- drivers/gpu/ipu-v3/ipu-csi.c | 2 +- drivers/media/i2c/adv7180.c | 2 +- drivers/media/i2c/ov5640.c | 4 ++--

[PATCH 13/21] v4l: fwnode: Parse the graph endpoint as last

2018-07-23 Thread Sakari Ailus
Parsing the graph endpoint is always successful; therefore parse it as last. Signed-off-by: Sakari Ailus --- drivers/media/v4l2-core/v4l2-fwnode.c | 26 +- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/drivers/media/v4l2-core/v4l2-fwnode.c

Re: [PATCH v2 00/16] i.MX media mem2mem scaler

2018-07-23 Thread Philipp Zabel
Hi Steve, On Sun, 2018-07-22 at 11:30 -0700, Steve Longerbeam wrote: [...] > To aid in debugging this I created branch 'imx-mem2mem.stevel' in my > mediatree fork on github. I moved the mem2mem driver to the beginning > and added a few patches: > > d317a7771c ("gpu: ipu-cpmem: add WARN_ON_ONCE()

Re: [RFC] media: thermal I2C cameras metadata

2018-07-23 Thread Sakari Ailus
Hi Matt, On Sun, Jul 15, 2018 at 11:05:42PM -0700, Matt Ranostay wrote: > Hello et all, > > So currently working with some thermal sensors that have coefficients > that needs to be passed back to userspace that aren't related to the > pixel data but are required to normalize to remove scan

[PATCH 2/2] dw9807-vcm: Recognise this is just the VCM bit of the device

2018-07-23 Thread Sakari Ailus
The dw9807 contains a voice coil lens driver as well as an EEPROM. This driver is just for the VCM. Reflect this in the driver's name --- this is already the case for the compatible string, for instance. Signed-off-by: Sakari Ailus --- drivers/media/i2c/Kconfig| 2 +-

[PATCH 1/2] dt-bindings: dw9714, dw9807-vcm: Add files to MAINTAINERS, rename files

2018-07-23 Thread Sakari Ailus
Add the DT binding documentation for dw9714 and dw9807-vcm to the MAINTAINERS file. The dw9807-vcm binding documentation file is renamed to match the dw9807's VCM bit's compatible string. Signed-off-by: Sakari Ailus --- .../bindings/media/i2c/{dongwoon,dw9807.txt => dongwoon,dw9807-vcm.txt} | 0

[PATCH 0/2] dw9807 bindings and driver are just for VCM

2018-07-23 Thread Sakari Ailus
Hi, I though of writing these two small patches to rename the dw9807 bindings and driver to reflect what's apparent in the compatible string: this is just the VCM part. Sakari Ailus (2): dt-bindings: dw9714, dw9807-vcm: Add files to MAINTAINERS, rename files dw9807-vcm: Recognise this is

Re: [PATCH v2 00/16] i.MX media mem2mem scaler

2018-07-23 Thread Philipp Zabel
On Mon, 2018-07-23 at 11:29 +0200, Philipp Zabel wrote: [...] > > Also, I'm trying to parse the functions find_best_seam() and > > find_seams(). Can > > you provide some more background on the behavior of those functions? > > The hardware limits us to restart linear sampling at zero with each >

[GIT PULL FOR v4.19] vicodec: the Virtual Codec driver

2018-07-23 Thread Hans Verkuil
Hi Mauro, This is the pull request for the new vicodec driver. The cover letter is here: https://www.mail-archive.com/linux-media@vger.kernel.org/msg133594.html One request: the vicodec-codec.h header refers to Tom's report on the Fast Walsh Hadamard Transform:

Re: [PATCH v2 00/16] i.MX media mem2mem scaler

2018-07-23 Thread Philipp Zabel
Hi Steve, On Sun, 2018-07-22 at 11:30 -0700, Steve Longerbeam wrote: > Hi Philipp, > > On 07/19/2018 08:30 AM, Philipp Zabel wrote: > > Hi, > > > > this is the second version of the i.MX mem2mem scaler series. > > Patches 8 and 16 have been modified. > > > > Changes since v1: > > - Fix

[GIT PULL FOR v4.19] cec/cec-gpio: add support for 5V testing

2018-07-23 Thread Hans Verkuil
Some displays disable CEC if the HDMI 5V is not detected. In order to test issues related to this you want to be able to optionally detect when the 5V line changes in the cec-gpio driver. This patch series adds support for this feature. Regards, Hans The following changes since commit

[PATCHv2 1/5] cec-gpio.txt: add v5-gpios for testing the 5V line

2018-07-23 Thread Hans Verkuil
In order to debug the HDMI 5V line we need to add a new v5-gpios property. Signed-off-by: Hans Verkuil Reviewed-by: Rob Herring --- Changes since v1: - Document that hpd-gpios and 5v-gpios are meant for debugging those lines. --- .../devicetree/bindings/media/cec-gpio.txt| 22

Re: [PATCH 2/5] videodev.h: add PIX_FMT_FWHT for use with vicodec

2018-07-23 Thread Hans Verkuil
On 21/07/18 19:51, Tom aan de Wiel wrote: > Hi! > > As of now, the version of the document I have locally is pretty much > identical to the one you already linked to. > I haven't had the time to shape it into a more documentation kind of document > instead of the report format it has now. >

Re: [PATCH 16/16] media: imx: add mem2mem device

2018-07-23 Thread Philipp Zabel
On Sun, 2018-07-22 at 11:02 -0700, Steve Longerbeam wrote: > On 07/16/2018 07:12 AM, Philipp Zabel wrote: [...] > > > > + /* > > > > +* The IC burst reads 8 pixels at a time. Reading > > > > beyond the > > > > +* end of the line is usually acceptable.