Re: [PATCH v10 03/14] media: v4l2-fwnode: add initial connector parsing support

2019-10-23 Thread Marco Felsch
Hi Sakari, On 19-10-23 13:57, Sakari Ailus wrote: > Hi Marco, > > Apologies for the delay. No problem. > On Wed, Oct 02, 2019 at 10:07:35AM +0200, Marco Felsch wrote: > > Hi Sakari, > > > > On 19-10-02 10:03, Sakari Ailus wrote: > > > Hi Marco, > >

Re: [PATCH v10 03/14] media: v4l2-fwnode: add initial connector parsing support

2019-10-22 Thread Marco Felsch
Hi Sakari, gentle ping. On 19-10-02 10:07, Marco Felsch wrote: > Hi Sakari, > > On 19-10-02 10:03, Sakari Ailus wrote: > > Hi Marco, > > > > On Fri, Aug 30, 2019 at 12:16:35PM +0200, Marco Felsch wrote: > > > The patch adds the initial connector parsing code

Re: [PATCH v10 03/14] media: v4l2-fwnode: add initial connector parsing support

2019-10-02 Thread Marco Felsch
Hi Sakari, On 19-10-02 10:03, Sakari Ailus wrote: > Hi Marco, > > On Fri, Aug 30, 2019 at 12:16:35PM +0200, Marco Felsch wrote: > > The patch adds the initial connector parsing code, so we can move from a > > driver specific parsing code to a generic one. Currently only t

[PATCH v11 07/15] media: dt-bindings: tvp5150: Add input port connectors DT bindings

2019-09-30 Thread Marco Felsch
AIP1A and AIP1B respectively. This patch extends the device tree bindings documentation to describe how the input connectors for these devices should be defined in a DT. Signed-off-by: Marco Felsch Reviewed-by: Rob Herring --- Changelog: v7: Hi Rob, I droped your r b tag because I changed the

[PATCH v11 14/15] media: tvp5150: add support to limit sdtv standards

2019-09-30 Thread Marco Felsch
decoded video streams if the tvp5150 gets powered on before the video signal is present. Limit the supported sdtv standards according to the actual selected connector to avoid a misconfiguration. Signed-off-by: Marco Felsch --- [1] https://patchwork.kernel.org/cover/10794703/ v11: - address 80

[PATCH v11 10/15] media: tvp5150: initialize subdev before parsing device tree

2019-09-30 Thread Marco Felsch
-off-by: Marco Felsch --- drivers/media/i2c/tvp5150.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/media/i2c/tvp5150.c b/drivers/media/i2c/tvp5150.c index 69697c00dbd7..dda9f0a2995f 100644 --- a/drivers/media/i2c/tvp5150.c +++ b/drivers/media/i2c/tvp5150.c

[PATCH v11 02/15] media: v4l: link dt-bindings and uapi

2019-09-30 Thread Marco Felsch
Since we expose the definition to the dt-bindings we need to keep those definitions in sync. To address this the patch adds a simple cross reference to the dt-bindings. Signed-off-by: Marco Felsch --- Changelog: v11: - new patch since the split https://patchwork.linuxtv.org/patch/58491/ v2-v10

[PATCH v11 09/15] media: tvp5150: add FORMAT_TRY support for get/set selection handlers

2019-09-30 Thread Marco Felsch
ile handle or driver state) which will be set/returned. The selection rectangle is updated if the format is FORMAT_ACTIVE and the rectangle position and/or size differs from the current set rectangle. Signed-off-by: Marco Felsch --- Changelog: v11: - s/__tvp5150_get_pad_crop/tvp51

[PATCH v11 01/15] dt-bindings: connector: analog: add sdtv standards property

2019-09-30 Thread Marco Felsch
e PAL format. This patch adds the capability to describe such limitation within the firmware. There are no format restrictions if the property isn't present, so it's completely backward compatible. Signed-off-by: Marco Felsch Reviewed-by: Rob Herring --- [1] https://patchwork.kernel.org

[PATCH v11 05/15] partial revert of "[media] tvp5150: add HW input connectors support"

2019-09-30 Thread Marco Felsch
allowing the commit to be reverted cleanly anymore. But all the code related to the DT parsing logic and input entities creation are removed. Suggested-by: Laurent Pinchart Signed-off-by: Javier Martinez Canillas Acked-by: Laurent Pinchart [m.fel...@pengutronix.de: rm TVP5150_INPUT_NUM define] Si

[PATCH v11 15/15] media: tvp5150: make debug output more readable

2019-09-30 Thread Marco Felsch
Change this by brinting the register values hex formatted and the states as more readable string. Signed-off-by: Marco Felsch Reviewed-by: Jacopo Mondi --- drivers/media/i2c/tvp5150.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/tvp5150.c b/dr

[PATCH v11 03/15] media: v4l2-fwnode: add v4l2_fwnode_connector

2019-09-30 Thread Marco Felsch
stored within a union, since only one of them can be available at the time. Since this is the initial support the patch adds only the analog-connector specific ones. Signed-off-by: Marco Felsch --- [1] https://patchwork.kernel.org/cover/10794703/ v10: - drop unused V4L2_CONN_HDMI support v8

[PATCH v11 04/15] media: v4l2-fwnode: add initial connector parsing support

2019-09-30 Thread Marco Felsch
-by: Marco Felsch --- [1] https://patchwork.kernel.org/cover/10794703/ v10: - drop V4L2_CONN_HDMI support - adapt pr_err msg to reflect new state (-> connector is unkown) v9: - Fix leading semicolon found by kbuild semicolon.cocci v8: - V4L2_CON_* -> V4L2_CONN_* - tvnorms -> sdtv-

[PATCH v11 13/15] media: dt-bindings: tvp5150: add optional sdtv standards documentation

2019-09-30 Thread Marco Felsch
Document the optional binding to limit the possible sdtv standards on the input connectors. Signed-off-by: Marco Felsch Reviewed-by: Rob Herring v8: - adapt to new sdtv-standards - adapt commit message - fix missing include within example code --- .../devicetree/bindings/media/i2c/tvp5150.txt

[PATCH v11 08/15] media: tvp5150: fix set_selection rectangle handling

2019-09-30 Thread Marco Felsch
his. Signed-off-by: Marco Felsch --- v10: - new patch --- drivers/media/i2c/tvp5150.c | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/media/i2c/tvp5150.c b/drivers/media/i2c/tvp5150.c index d8325b6dbaee..3de935036a4e 100644 --- a/driv

[PATCH v11 00/15] TVP5150 Features and fixes

2019-09-30 Thread Marco Felsch
0: add HW input connectors support" Marco Felsch (13): dt-bindings: connector: analog: add sdtv standards property media: v4l: link dt-bindings and uapi media: v4l2-fwnode: add v4l2_fwnode_connector media: v4l2-fwnode: add initial connector parsing support media: tvp5150: add input sourc

[PATCH v11 12/15] media: dt-bindings: tvp5150: cleanup bindings stlye

2019-09-30 Thread Marco Felsch
Use underlines to highlight optional and required properties. This is quite common for all bindings. Align descriptions and start sentence with uppercase letter. Also reword the usage of the required endpoint properties for the output port in case BT.656 should be used. Signed-off-by: Marco

[PATCH v11 11/15] media: tvp5150: add s_power callback

2019-09-30 Thread Marco Felsch
Don't en-/disable the interrupts during s_stream because someone can disable the stream but wants to get informed if the stream is locked again. So keep the interrupts enabled the whole time the pipeline is opened. Signed-off-by: Marco Felsch --- drivers/media/i2c/tvp5150.c

[PATCH v11 06/15] media: tvp5150: add input source selection of_graph support

2019-09-30 Thread Marco Felsch
active. [1] https://www.spinics.net/lists/linux-media/msg138545.html [2] https://www.spinics.net/lists/linux-media/msg138546.html Signed-off-by: Marco Felsch --- Changelog: [1] https://patchwork.kernel.org/cover/10794703/ [2] https://patchwork.kernel.org/cover/10786553/ v11: - add local struct

Re: [PATCH v10 07/14] media: tvp5150: fix set_selection rectangle handling

2019-09-27 Thread Marco Felsch
Hi Hans, since you review contained many checkpatch issues I wanna ask if it okay to keep this line as it before I will send a v11. Please check my inline comment. On 19-08-30 12:16, Marco Felsch wrote: > Currently a local copy of sel->r is made and adapted to the hardware > constrain

Re: [PATCH v10 05/14] media: tvp5150: add input source selection of_graph support

2019-09-27 Thread Marco Felsch
Hi Hans, On 19-09-27 10:54, Hans Verkuil wrote: > On 8/30/19 12:16 PM, Marco Felsch wrote: > > This patch adds the of_graph support to describe the tvp input connections. > > Physical the TVP5150 has three ports: AIP1A, AIP1B and YOUT. As result > > of discussion [1],[2]

Re: [PATCH v10 13/14] media: tvp5150: add support to limit sdtv standards

2019-09-27 Thread Marco Felsch
Hi Hans, On 19-09-27 10:52, Hans Verkuil wrote: > Hi Marco, > > On 8/30/19 12:16 PM, Marco Felsch wrote: > > The tvp5150 accepts NTSC(M,J,4.43), PAL (B,D,G,H,I,M,N) and SECAM video > > data and is able to auto-detect the input signal. The auto-detection > > does not

Re: [PATCH v10 08/14] media: tvp5150: add FORMAT_TRY support for get/set selection handlers

2019-09-27 Thread Marco Felsch
Hi Hans, On 19-09-27 11:01, Hans Verkuil wrote: > On 8/30/19 12:16 PM, Marco Felsch wrote: > > Since commit 10d5509c8d50 ("[media] v4l2: remove g/s_crop from video ops") > > the 'which' field for set/get_selection must be FORMAT_ACTIVE. There is > > no w

Re: [PATCH v10 01/14] dt-bindings: connector: analog: add sdtv standards property

2019-09-27 Thread Marco Felsch
Hi Hans, On 19-09-27 11:09, Hans Verkuil wrote: > Hi Marco, > > On 8/30/19 12:16 PM, Marco Felsch wrote: > > Some connectors no matter if in- or output supports only a limited > > range of sdtv standards. It doesn't matter if the hardware behind that > > connect

[PATCH v10 00/14] TVP5150 features and fixes

2019-08-30 Thread Marco Felsch
n the driver. This gets addressed by Patch ("media: tvp5150: fix set_selection rectangle handling"). Regards, Marco [1] https://www.spinics.net/lists/linux-media/msg156237.html Javier Martinez Canillas (1): partial revert of "[media] tvp5150: add HW input connectors suppor

[PATCH v10 13/14] media: tvp5150: add support to limit sdtv standards

2019-08-30 Thread Marco Felsch
decoded video streams if the tvp5150 gets powered on before the video signal is present. Limit the supported sdtv standards according to the actual selected connector to avoid a misconfiguration. Signed-off-by: Marco Felsch --- [1] https://patchwork.kernel.org/cover/10794703/ v8: - adapt commit

[PATCH v10 14/14] media: tvp5150: make debug output more readable

2019-08-30 Thread Marco Felsch
Change this by brinting the register values hex formatted and the states as more readable string. Signed-off-by: Marco Felsch Reviewed-by: Jacopo Mondi --- drivers/media/i2c/tvp5150.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/tvp5150.c b/dr

[PATCH v10 10/14] media: tvp5150: add s_power callback

2019-08-30 Thread Marco Felsch
Don't en-/disable the interrupts during s_stream because someone can disable the stream but wants to get informed if the stream is locked again. So keep the interrupts enabled the whole time the pipeline is opened. Signed-off-by: Marco Felsch --- drivers/media/i2c/tvp5150.c

[PATCH v10 03/14] media: v4l2-fwnode: add initial connector parsing support

2019-08-30 Thread Marco Felsch
-by: Marco Felsch --- [1] https://patchwork.kernel.org/cover/10794703/ v10: - drop V4L2_CONN_HDMI support - adapt pr_err msg to reflect new state (-> connector is unkown) v9: - Fix leading semicolon found by kbuild semicolon.cocci v8: - V4L2_CON_* -> V4L2_CONN_* - tvnorms -> sdtv-

[PATCH v10 09/14] media: tvp5150: initialize subdev before parsing device tree

2019-08-30 Thread Marco Felsch
-off-by: Marco Felsch --- drivers/media/i2c/tvp5150.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/media/i2c/tvp5150.c b/drivers/media/i2c/tvp5150.c index 636e8737ac44..dc8272d3a445 100644 --- a/drivers/media/i2c/tvp5150.c +++ b/drivers/media/i2c/tvp5150.c

[PATCH v10 02/14] media: v4l2-fwnode: add v4l2_fwnode_connector

2019-08-30 Thread Marco Felsch
stored within a union, since only one of them can be available at the time. Since this is the initial support the patch adds only the analog-connector specific ones. Signed-off-by: Marco Felsch --- [1] https://patchwork.kernel.org/cover/10794703/ v10: - drop unused V4L2_CONN_HDMI support v8

[PATCH v10 12/14] media: dt-bindings: tvp5150: add optional sdtv standards documentation

2019-08-30 Thread Marco Felsch
Document the optional binding to limit the possible sdtv standards on the input connectors. Signed-off-by: Marco Felsch Reviewed-by: Rob Herring --- v8: - adapt to new sdtv-standards - adapt commit message - fix missing include within example code .../devicetree/bindings/media/i2c/tvp5150.txt

[PATCH v10 08/14] media: tvp5150: add FORMAT_TRY support for get/set selection handlers

2019-08-30 Thread Marco Felsch
ile handle or driver state) which will be set/returned. The selection rectangle is updated if the format is FORMAT_ACTIVE and the rectangle position and/or size differs from the current set rectangle. Signed-off-by: Marco Felsch --- Changelog: v10: - __tvp5150_get_pad_crop: drop confusing fall-thr

[PATCH v10 11/14] media: dt-bindings: tvp5150: cleanup bindings stlye

2019-08-30 Thread Marco Felsch
Use underlines to highlight optional and required properties. This is quite common for all bindings. Align descriptions and start sentence with uppercase letter. Also reword the usage of the required endpoint properties for the output port in case BT.656 should be used. Signed-off-by: Marco

[PATCH v10 05/14] media: tvp5150: add input source selection of_graph support

2019-08-30 Thread Marco Felsch
active. [1] https://www.spinics.net/lists/linux-media/msg138545.html [2] https://www.spinics.net/lists/linux-media/msg138546.html Signed-off-by: Marco Felsch --- Changelog: [1] https://patchwork.kernel.org/cover/10794703/ [2] https://patchwork.kernel.org/cover/10786553/ v8: - fix rebasing issue

[PATCH v10 06/14] media: dt-bindings: tvp5150: Add input port connectors DT bindings

2019-08-30 Thread Marco Felsch
AIP1A and AIP1B respectively. This patch extends the device tree bindings documentation to describe how the input connectors for these devices should be defined in a DT. Signed-off-by: Marco Felsch Reviewed-by: Rob Herring --- Changelog: v7: Hi Rob, I droped your r b tag because I changed the

[PATCH v10 01/14] dt-bindings: connector: analog: add sdtv standards property

2019-08-30 Thread Marco Felsch
e PAL format. This patch adds the capability to describe such limitation within the firmware. There are no format restrictions if the property isn't present, so it's completely backward compatible. Signed-off-by: Marco Felsch Reviewed-by: Rob Herring --- [1] https://patchwork.kernel.org

[PATCH v10 07/14] media: tvp5150: fix set_selection rectangle handling

2019-08-30 Thread Marco Felsch
his. Signed-off-by: Marco Felsch --- v10: - new patch drivers/media/i2c/tvp5150.c | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/media/i2c/tvp5150.c b/drivers/media/i2c/tvp5150.c index 477a929d4f89..c1542a89e8c8 100644 --- a/drivers/me

[PATCH v10 04/14] partial revert of "[media] tvp5150: add HW input connectors support"

2019-08-30 Thread Marco Felsch
allowing the commit to be reverted cleanly anymore. But all the code related to the DT parsing logic and input entities creation are removed. Suggested-by: Laurent Pinchart Signed-off-by: Javier Martinez Canillas Acked-by: Laurent Pinchart [m.fel...@pengutronix.de: rm TVP5150_INPUT_NUM define] Si

Re: [PATCH v9 07/13] media: tvp5150: add FORMAT_TRY support for get/set selection handlers

2019-08-29 Thread Marco Felsch
On 19-08-29 11:56, Hans Verkuil wrote: > On 8/22/19 10:05 AM, Marco Felsch wrote: > > Since commit 10d5509c8d50 ("[media] v4l2: remove g/s_crop from video ops") > > the 'which' field for set/get_selection must be FORMAT_ACTIVE. There is > > no way to t

Re: [PATCH v9 01/13] dt-bindings: connector: analog: add sdtv standards property

2019-08-29 Thread Marco Felsch
On 19-08-29 12:02, Hans Verkuil wrote: > On 8/22/19 10:05 AM, Marco Felsch wrote: > > Some connectors no matter if in- or output supports only a limited > > range of sdtv standards. It doesn't matter if the hardware behind that > > connector supports more than the list

Re: [PATCH v9 02/13] media: v4l2-fwnode: add v4l2_fwnode_connector

2019-08-29 Thread Marco Felsch
On 19-08-29 11:59, Hans Verkuil wrote: > On 8/22/19 10:05 AM, Marco Felsch wrote: > > Currently every driver needs to parse the connector endpoints by it self. > > This is the initial work to make this generic. A generic connector has > > common members and connector specifi

[PATCH v9 12/13] media: tvp5150: add support to limit sdtv standards

2019-08-22 Thread Marco Felsch
decoded video streams if the tvp5150 gets powered on before the video signal is present. Limit the supported sdtv standards according to the actual selected connector to avoid a misconfiguration. Signed-off-by: Marco Felsch --- [1] https://patchwork.kernel.org/cover/10794703/ v8: - adapt commit

[PATCH v9 09/13] media: tvp5150: add s_power callback

2019-08-22 Thread Marco Felsch
Don't en-/disable the interrupts during s_stream because someone can disable the stream but wants to get informed if the stream is locked again. So keep the interrupts enabled the whole time the pipeline is opened. Signed-off-by: Marco Felsch --- drivers/media/i2c/tvp5150.c

[PATCH v9 05/13] media: tvp5150: add input source selection of_graph support

2019-08-22 Thread Marco Felsch
active. [1] https://www.spinics.net/lists/linux-media/msg138545.html [2] https://www.spinics.net/lists/linux-media/msg138546.html Signed-off-by: Marco Felsch --- Changelog: [1] https://patchwork.kernel.org/cover/10794703/ [2] https://patchwork.kernel.org/cover/10786553/ v8: - fix rebasing issue

[PATCH v9 08/13] media: tvp5150: initialize subdev before parsing device tree

2019-08-22 Thread Marco Felsch
-off-by: Marco Felsch --- drivers/media/i2c/tvp5150.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/media/i2c/tvp5150.c b/drivers/media/i2c/tvp5150.c index 62a1c7c3a7c0..c74410684675 100644 --- a/drivers/media/i2c/tvp5150.c +++ b/drivers/media/i2c/tvp5150.c

[PATCH v9 04/13] partial revert of "[media] tvp5150: add HW input connectors support"

2019-08-22 Thread Marco Felsch
allowing the commit to be reverted cleanly anymore. But all the code related to the DT parsing logic and input entities creation are removed. Suggested-by: Laurent Pinchart Signed-off-by: Javier Martinez Canillas Acked-by: Laurent Pinchart [m.fel...@pengutronix.de: rm TVP5150_INPUT_NUM define] Si

[PATCH v9 00/13] Add TVP5150 features

2019-08-22 Thread Marco Felsch
r Martinez Canillas (1): partial revert of "[media] tvp5150: add HW input connectors support" Marco Felsch (11): dt-bindings: connector: analog: add sdtv standards property media: v4l2-fwnode: add v4l2_fwnode_connector media: v4l2-fwnode: add initial connector parsing support media

[PATCH v9 02/13] media: v4l2-fwnode: add v4l2_fwnode_connector

2019-08-22 Thread Marco Felsch
stored within a union, since only one of them can be available at the time. Since this is the initial support the patch adds only the analog-connector specific ones. Signed-off-by: Marco Felsch --- [1] https://patchwork.kernel.org/cover/10794703/ v8: - rename CON -> CONN - supported_tvnorms_s

[PATCH v9 13/13] media: tvp5150: make debug output more readable

2019-08-22 Thread Marco Felsch
Change this by brinting the register values hex formatted and the states as more readable string. Signed-off-by: Marco Felsch Reviewed-by: Jacopo Mondi --- drivers/media/i2c/tvp5150.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/tvp5150.c b/dr

[PATCH v9 11/13] media: dt-bindings: tvp5150: add optional sdtv standards documentation

2019-08-22 Thread Marco Felsch
Document the optional binding to limit the possible sdtv standards on the input connectors. Signed-off-by: Marco Felsch Reviewed-by: Rob Herring v8: - adapt to new sdtv-standards - adapt commit message - fix missing include within example code --- .../devicetree/bindings/media/i2c/tvp5150.txt

[PATCH v9 06/13] media: dt-bindings: tvp5150: Add input port connectors DT bindings

2019-08-22 Thread Marco Felsch
AIP1A and AIP1B respectively. This patch extends the device tree bindings documentation to describe how the input connectors for these devices should be defined in a DT. Signed-off-by: Marco Felsch Reviewed-by: Rob Herring --- Changelog: v7: Hi Rob, I droped your r b tag because I changed the

[PATCH v9 03/13] media: v4l2-fwnode: add initial connector parsing support

2019-08-22 Thread Marco Felsch
-by: Marco Felsch --- [1] https://patchwork.kernel.org/cover/10794703/ v9: - Fix leading semicolon found by kbuild semicolon.cocci v8: - V4L2_CON_* -> V4L2_CONN_* - tvnorms -> sdtv-standards - adapt to new v4l2_fwnode_connector_analog member - return error in case of V4L2_CONN_HDMI v7: @

[PATCH v9 10/13] media: dt-bindings: tvp5150: cleanup bindings stlye

2019-08-22 Thread Marco Felsch
Use underlines to highlight optional and required properties. This is quite common for all bindings. Align descriptions and start sentence with uppercase letter. Also reword the usage of the required endpoint properties for the output port in case BT.656 should be used. Signed-off-by: Marco

[PATCH v9 07/13] media: tvp5150: add FORMAT_TRY support for get/set selection handlers

2019-08-22 Thread Marco Felsch
ile handle or driver state) which will be set/returned. The selection rectangle is updated if the format is FORMAT_ACTIVE and the rectangle position and/or size differs from the current set rectangle. Signed-off-by: Marco Felsch --- Changelog: v8: - adapt commit message - remove wrong FOR

[PATCH v9 01/13] dt-bindings: connector: analog: add sdtv standards property

2019-08-22 Thread Marco Felsch
e PAL format. This patch adds the capability to describe such limitation within the firmware. There are no format restrictions if the property isn't present, so it's completely backward compatible. Signed-off-by: Marco Felsch --- [1] https://patchwork.kernel.org/cover/10794703/ v8: Hi Rob,

[PATCH v8 06/13] media: dt-bindings: tvp5150: Add input port connectors DT bindings

2019-08-21 Thread Marco Felsch
AIP1A and AIP1B respectively. This patch extends the device tree bindings documentation to describe how the input connectors for these devices should be defined in a DT. Signed-off-by: Marco Felsch Reviewed-by: Rob Herring --- Changelog: v7: Hi Rob, I droped your r b tag because I changed the

[PATCH v8 00/13] Add TVP5150 features

2019-08-21 Thread Marco Felsch
on my v7. I've tested the code on a custom embedded device and compile tested it using our 0day instance. Regards, Marco Javier Martinez Canillas (1): partial revert of "[media] tvp5150: add HW input connectors support" Marco Felsch (11): dt-bindings: connector: analog: add

[PATCH v8 09/13] media: tvp5150: add s_power callback

2019-08-21 Thread Marco Felsch
Don't en-/disable the interrupts during s_stream because someone can disable the stream but wants to get informed if the stream is locked again. So keep the interrupts enabled the whole time the pipeline is opened. Signed-off-by: Marco Felsch --- drivers/media/i2c/tvp5150.c

[PATCH v8 02/13] media: v4l2-fwnode: add v4l2_fwnode_connector

2019-08-21 Thread Marco Felsch
stored within a union, since only one of them can be available at the time. Since this is the initial support the patch adds only the analog-connector specific ones. Signed-off-by: Marco Felsch --- [1] https://patchwork.kernel.org/cover/10794703/ v8: - rename CON -> CONN - supported_tvnorms_s

[PATCH v8 03/13] media: v4l2-fwnode: add initial connector parsing support

2019-08-21 Thread Marco Felsch
-by: Marco Felsch --- [1] https://patchwork.kernel.org/cover/10794703/ v8: - V4L2_CON_* -> V4L2_CONN_* - tvnorms -> sdtv-standards - adapt to new v4l2_fwnode_connector_analog member - return error in case of V4L2_CONN_HDMI v7: @Jacopo: I dropped your r b tag becuase of the amount of cha

[PATCH v8 01/13] dt-bindings: connector: analog: add sdtv standards property

2019-08-21 Thread Marco Felsch
e PAL format. This patch adds the capability to describe such limitation within the firmware. There are no format restrictions if the property isn't present, so it's completely backward compatible. Signed-off-by: Marco Felsch --- [1] https://patchwork.kernel.org/cover/10794703/ v8: Hi Rob,

[PATCH v8 13/13] media: tvp5150: make debug output more readable

2019-08-21 Thread Marco Felsch
Change this by brinting the register values hex formatted and the states as more readable string. Signed-off-by: Marco Felsch Reviewed-by: Jacopo Mondi --- drivers/media/i2c/tvp5150.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/tvp5150.c b/dr

[PATCH v8 10/13] media: dt-bindings: tvp5150: cleanup bindings stlye

2019-08-21 Thread Marco Felsch
Use underlines to highlight optional and required properties. This is quite common for all bindings. Align descriptions and start sentence with uppercase letter. Also reword the usage of the required endpoint properties for the output port in case BT.656 should be used. Signed-off-by: Marco

[PATCH v8 07/13] media: tvp5150: add FORMAT_TRY support for get/set selection handlers

2019-08-21 Thread Marco Felsch
ile handle or driver state) which will be set/returned. The selection rectangle is updated if the format is FORMAT_ACTIVE and the rectangle position and/or size differs from the current set rectangle. Signed-off-by: Marco Felsch --- Changelog: v8: - adapt commit message - remove wrong FOR

[PATCH v8 08/13] media: tvp5150: initialize subdev before parsing device tree

2019-08-21 Thread Marco Felsch
-off-by: Marco Felsch --- drivers/media/i2c/tvp5150.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/media/i2c/tvp5150.c b/drivers/media/i2c/tvp5150.c index 62a1c7c3a7c0..c74410684675 100644 --- a/drivers/media/i2c/tvp5150.c +++ b/drivers/media/i2c/tvp5150.c

[PATCH v8 12/13] media: tvp5150: add support to limit sdtv standards

2019-08-21 Thread Marco Felsch
decoded video streams if the tvp5150 gets powered on before the video signal is present. Limit the supported sdtv standards according to the actual selected connector to avoid a misconfiguration. Signed-off-by: Marco Felsch --- [1] https://patchwork.kernel.org/cover/10794703/ v8: - adapt commit

[PATCH v8 11/13] media: dt-bindings: tvp5150: add optional sdtv standards documentation

2019-08-21 Thread Marco Felsch
Document the optional binding to limit the possible sdtv standards on the input connectors. Signed-off-by: Marco Felsch Reviewed-by: Rob Herring --- v8: - adapt to new sdtv-standards - adapt commit message - fix missing include within example code .../devicetree/bindings/media/i2c/tvp5150.txt

[PATCH v8 05/13] media: tvp5150: add input source selection of_graph support

2019-08-21 Thread Marco Felsch
active. [1] https://www.spinics.net/lists/linux-media/msg138545.html [2] https://www.spinics.net/lists/linux-media/msg138546.html Signed-off-by: Marco Felsch --- Changelog: [1] https://patchwork.kernel.org/cover/10794703/ [2] https://patchwork.kernel.org/cover/10786553/ v8: - fix rebasing issue

[PATCH v8 04/13] partial revert of "[media] tvp5150: add HW input connectors support"

2019-08-21 Thread Marco Felsch
allowing the commit to be reverted cleanly anymore. But all the code related to the DT parsing logic and input entities creation are removed. Suggested-by: Laurent Pinchart Signed-off-by: Javier Martinez Canillas Acked-by: Laurent Pinchart [m.fel...@pengutronix.de: rm TVP5150_INPUT_NUM define] Si

Re: [PATCH v2 2/2] media: tc358746: add Toshiba TC358746 Parallel to CSI-2 bridge driver

2019-08-20 Thread Marco Felsch
Hi Sakari, gentle ping. Regards, Marco On 19-07-29 12:40, Marco Felsch wrote: > Hi Sakari, > > On 19-06-25 15:27, Sakari Ailus wrote: > > Hi Marco, > > > > Thanks for the set. > > > > Looks quite good to me in general; a few minor comments bel

Re: [PATCH v7 07/13] media: tvp5150: add FORMAT_TRY support for get/set selection handlers

2019-08-19 Thread Marco Felsch
On 19-08-16 13:27, Hans Verkuil wrote: > On 8/15/19 1:57 PM, Marco Felsch wrote: > > Since commit 10d5509c8d50 ("[media] v4l2: remove g/s_crop from video ops") > > the 'which' field for set/get_selection must be FORMAT_ACTIVE. There is > > no way to t

Re: [PATCH v7 02/13] media: v4l2-fwnode: add v4l2_fwnode_connector

2019-08-19 Thread Marco Felsch
On 19-08-16 12:59, Hans Verkuil wrote: > On 8/15/19 1:57 PM, Marco Felsch wrote: > > Currently every driver needs to parse the connector endpoints by it self. > > This is the initial work to make this generic. A generic connector has > > common members and connector specifi

Re: [PATCH v7 01/13] dt-bindings: connector: analog: add tv norms property

2019-08-19 Thread Marco Felsch
On 19-08-19 10:39, Hans Verkuil wrote: > On 8/19/19 10:09 AM, Marco Felsch wrote: > > Hi Hans, > > > > On 19-08-16 13:11, Hans Verkuil wrote: > >> On 8/15/19 1:57 PM, Marco Felsch wrote: > >>> Some connectors no matter if in- or output supports only a l

Re: [PATCH v7 01/13] dt-bindings: connector: analog: add tv norms property

2019-08-19 Thread Marco Felsch
Hi, On 19-08-19 10:09, Marco Felsch wrote: > Hi Hans, > > On 19-08-16 13:11, Hans Verkuil wrote: > > On 8/15/19 1:57 PM, Marco Felsch wrote: > > > Some connectors no matter if in- or output supports only a limited > > > range of tv norms. It doesn

Re: [PATCH v7 01/13] dt-bindings: connector: analog: add tv norms property

2019-08-19 Thread Marco Felsch
Hi Hans, On 19-08-16 13:11, Hans Verkuil wrote: > On 8/15/19 1:57 PM, Marco Felsch wrote: > > Some connectors no matter if in- or output supports only a limited > > range of tv norms. It doesn't matter if the hardware behind that > > connector supports more than the list

Re: [PATCH v7 05/13] media: tvp5150: add input source selection of_graph support

2019-08-18 Thread Marco Felsch
() callback ensures that only one > connector is active. > > [1] https://www.spinics.net/lists/linux-media/msg138545.html > [2] https://www.spinics.net/lists/linux-media/msg138546.html > > Signed-off-by: Marco Felsch > > --- > Changelog: > > [1]

Re: [PATCH v6 02/13] media: v4l2-fwnode: add v4l2_fwnode_connector

2019-08-15 Thread Marco Felsch
Hi Laurent, On 19-08-15 16:10, Laurent Pinchart wrote: > Hi Marco, > > On Thu, Aug 15, 2019 at 03:04:37PM +0200, Marco Felsch wrote: > > On 19-08-15 15:38, Laurent Pinchart wrote: > > > On Fri, Aug 09, 2019 at 09:55:36AM +0200, Marco Felsch wrote: > > >> On 19

Re: [PATCH v6 01/13] dt-bindings: connector: analog: add tv norms property

2019-08-15 Thread Marco Felsch
Hi Laurent, On 19-08-15 16:02, Laurent Pinchart wrote: > Hi Marco, > > On Thu, Aug 15, 2019 at 02:50:02PM +0200, Marco Felsch wrote: > > On 19-08-15 15:33, Laurent Pinchart wrote: > > > On Fri, Aug 09, 2019 at 07:58:09AM +0200, Marco Felsch wrote: > > >> On 19

Re: [PATCH v6 12/13] media: tvp5150: add support to limit tv norms on connector

2019-08-15 Thread Marco Felsch
Hi Laurent, On 19-08-15 15:53, Laurent Pinchart wrote: > Hi Marco, > > On Tue, Aug 13, 2019 at 11:10:30AM +0200, Marco Felsch wrote: > > On 19-05-16 21:07, Laurent Pinchart wrote: > > > On Mon, Apr 15, 2019 at 02:44:12PM +0200, Marco Felsch wrote: > > > > The

Re: [PATCH v6 05/13] media: tvp5150: add input source selection of_graph support

2019-08-15 Thread Marco Felsch
Hi Laurent, On 19-08-15 15:51, Laurent Pinchart wrote: > On Tue, Aug 13, 2019 at 10:54:29AM +0200, Marco Felsch wrote: > > Hi Laurent, > > > > On 19-05-16 21:03, Laurent Pinchart wrote: > > > Hello Marco, > > > > > > Thank you for the patch. >

Re: [PATCH v6 03/13] media: v4l2-fwnode: add initial connector parsing support

2019-08-15 Thread Marco Felsch
Hi Laurent, On 19-08-15 15:48, Laurent Pinchart wrote: > Hi Marco, > > On Fri, Aug 09, 2019 at 02:16:06PM +0200, Marco Felsch wrote: > > On 19-05-16 19:51, Laurent Pinchart wrote: > > > On Tue, May 14, 2019 at 03:20:04PM -0300, Mauro Carvalho Chehab wrote: > >

Re: [PATCH v6 02/13] media: v4l2-fwnode: add v4l2_fwnode_connector

2019-08-15 Thread Marco Felsch
Hi Laurent, On 19-08-15 15:38, Laurent Pinchart wrote: > Hi Marco, > > On Fri, Aug 09, 2019 at 09:55:36AM +0200, Marco Felsch wrote: > > On 19-05-16 19:36, Laurent Pinchart wrote: > > > On Mon, Apr 15, 2019 at 02:44:02PM +0200, Marco Felsch wrote: > > > > C

Re: [PATCH v6 01/13] dt-bindings: connector: analog: add tv norms property

2019-08-15 Thread Marco Felsch
On 19-08-15 15:33, Laurent Pinchart wrote: > Hi Marco, > > On Fri, Aug 09, 2019 at 07:58:09AM +0200, Marco Felsch wrote: > > On 19-05-16 19:27, Laurent Pinchart wrote: > > > On Mon, Apr 15, 2019 at 02:44:01PM +0200, Marco Felsch wrote: > > > > Some connectors

[PATCH v7 13/13] media: tvp5150: make debug output more readable

2019-08-15 Thread Marco Felsch
Change this by brinting the register values hex formatted and the states as more readable string. Signed-off-by: Marco Felsch Reviewed-by: Jacopo Mondi --- drivers/media/i2c/tvp5150.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/tvp5150.c b/dr

[PATCH v7 08/13] media: tvp5150: initialize subdev before parsing device tree

2019-08-15 Thread Marco Felsch
-off-by: Marco Felsch --- drivers/media/i2c/tvp5150.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/media/i2c/tvp5150.c b/drivers/media/i2c/tvp5150.c index ad59e65e6771..26a156da3ab4 100644 --- a/drivers/media/i2c/tvp5150.c +++ b/drivers/media/i2c/tvp5150.c

[PATCH v7 11/13] media: dt-bindings: tvp5150: add optional tvnorms documentation

2019-08-15 Thread Marco Felsch
Document the optional binding to limit the possible tv-norms on the input connectors. Signed-off-by: Marco Felsch Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/media/i2c/tvp5150.txt | 9 + 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings

[PATCH v7 07/13] media: tvp5150: add FORMAT_TRY support for get/set selection handlers

2019-08-15 Thread Marco Felsch
ile handle or driver state) which will be set/returned. The TVP5150 AVID will be updated if the 'which' field is FORMAT_ACTIVE and the requested selection rectangle differs from the already set one. Signed-off-by: Marco Felsch --- Changelog: v7: - __tvp5150_get_pad_crop(): return er

[PATCH v7 04/13] partial revert of "[media] tvp5150: add HW input connectors support"

2019-08-15 Thread Marco Felsch
allowing the commit to be reverted cleanly anymore. But all the code related to the DT parsing logic and input entities creation are removed. Suggested-by: Laurent Pinchart Signed-off-by: Javier Martinez Canillas Acked-by: Laurent Pinchart [m.fel...@pengutronix.de: rm TVP5150_INPUT_NUM define] Si

[PATCH v7 01/13] dt-bindings: connector: analog: add tv norms property

2019-08-15 Thread Marco Felsch
ormat. This patch adds the capability to describe such limitation within the firmware. There are no format restrictions if the property isn't present, so it's completely backward compatible. Signed-off-by: Marco Felsch Reviewed-by: Rob Herring --- [1] https://patchwork.kernel.org/cover/1

[PATCH v7 00/13] Add TVP5150 features

2019-08-15 Thread Marco Felsch
o review and maintain Each changed patch contains a more detailed changelog. Hopefully we get this series done :) Regards, Marco Javier Martinez Canillas (1): partial revert of "[media] tvp5150: add HW input connectors support" Marco Felsch (11): dt-bindings: connector: an

[PATCH v7 06/13] media: dt-bindings: tvp5150: Add input port connectors DT bindings

2019-08-15 Thread Marco Felsch
AIP1A and AIP1B respectively. This patch extends the device tree bindings documentation to describe how the input connectors for these devices should be defined in a DT. Signed-off-by: Marco Felsch --- Changelog: v7: Hi Rob, I droped your r b tag because I changed the bindings in this patch

[PATCH v7 03/13] media: v4l2-fwnode: add initial connector parsing support

2019-08-15 Thread Marco Felsch
-by: Marco Felsch --- [1] https://patchwork.kernel.org/cover/10794703/ v7: @Jacopo: I dropped your r b tag becuase of the amount of changes I made.. - drop unnecessary comments - fix commet style - s/v4l2_fwnode_connector_conv.name/v4l2_fwnode_connector_conv.compatible/ - make label size variable

[PATCH v7 09/13] media: tvp5150: add s_power callback

2019-08-15 Thread Marco Felsch
Don't en-/disable the interrupts during s_stream because someone can disable the stream but wants to get informed if the stream is locked again. So keep the interrupts enabled the whole time the pipeline is opened. Signed-off-by: Marco Felsch --- drivers/media/i2c/tvp5150.c

[PATCH v7 02/13] media: v4l2-fwnode: add v4l2_fwnode_connector

2019-08-15 Thread Marco Felsch
stored within a union, since only one of them can be available at the time. Since this is the initial support the patch adds only the analog-connector specific ones. Signed-off-by: Marco Felsch --- [1] https://patchwork.kernel.org/cover/10794703/ v7: - fix spelling issues - constify label

[PATCH v7 05/13] media: tvp5150: add input source selection of_graph support

2019-08-15 Thread Marco Felsch
active. [1] https://www.spinics.net/lists/linux-media/msg138545.html [2] https://www.spinics.net/lists/linux-media/msg138546.html Signed-off-by: Marco Felsch --- Changelog: [1] https://patchwork.kernel.org/cover/10794703/ [2] https://patchwork.kernel.org/cover/10786553/ v7: - don't init

[PATCH v7 12/13] media: tvp5150: add support to limit tv norms on connector

2019-08-15 Thread Marco Felsch
decoded video streams if the tvp5150 gets powered on before the video signal is present. Limit the supported tv norms according to the actual selected connector to avoid a misconfiguration. Signed-off-by: Marco Felsch --- [1] https://patchwork.kernel.org/cover/10794703/ v5: - probe() initialize

[PATCH v7 10/13] media: dt-bindings: tvp5150: cleanup bindings stlye

2019-08-15 Thread Marco Felsch
Use underlines to highlight optional and required properties. This is quite common for all bindings. Align descriptions and start sentence with uppercase letter. Also reword the usage of the required endpoint properties for the output port in case BT.656 should be used. Signed-off-by: Marco

Re: [PATCH v6 12/13] media: tvp5150: add support to limit tv norms on connector

2019-08-13 Thread Marco Felsch
Hi Laurent, On 19-05-16 21:07, Laurent Pinchart wrote: > Hi Marco, > > Thank you for the patch. > > On Mon, Apr 15, 2019 at 02:44:12PM +0200, Marco Felsch wrote: > > The tvp5150 accepts NTSC(M,J,4.43), PAL (B,D,G,H,I,M,N) and SECAM video > > data and is able to auto-d

Re: [PATCH v6 06/13] media: dt-bindings: tvp5150: Add input port connectors DT bindings

2019-08-13 Thread Marco Felsch
Hi Laurent, On 19-05-16 21:05, Laurent Pinchart wrote: > Hi Marco, > > Thank you for the patch. > > On Mon, Apr 15, 2019 at 02:44:06PM +0200, Marco Felsch wrote: > > The TVP5150/1 decoders support different video input sources to their > > AIP1A/B pins. > > &

  1   2   3   >