[PATCH 1/2] drm/doc: fix kerneldoc syntax

2019-03-13 Thread Luca Ceresoli
The probe() reference renders incorrectly and without a link, fix it. Also fix a typo reported by checkpatch in the context lines. Signed-off-by: Luca Ceresoli --- drivers/gpu/drm/drm_drv.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm

[PATCH 2/2] drm/doc: fix missing verb

2019-03-13 Thread Luca Ceresoli
Add a missing "be". While there, also fix the syntax for struct drm_device. Signed-off-by: Luca Ceresoli --- include/drm/drm_drv.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/drm/drm_drv.h b/include/drm/drm_drv.h index 570f9d03b2eb..ecbbcb281

Re: [PATCH 1/2] drm/doc: fix kerneldoc syntax

2019-03-19 Thread Luca Ceresoli
On 14/03/19 11:41, Daniel Vetter wrote: > On Wed, Mar 13, 2019 at 04:35:36PM +0100, Luca Ceresoli wrote: >> The probe() reference renders incorrectly and without a link, fix it. >> >> Also fix a typo reported by checkpatch in the context lines. >> >

Re: [PATCH] dt-bindings: Whitespace clean-ups in schema files

2020-08-14 Thread Luca Ceresoli
Hi, On 14/08/20 16:51, Rob Herring wrote: > On Thu, Aug 13, 2020 at 4:31 AM Luca Ceresoli wrote: >> >> Hi Rob, >> >> On 12/08/20 22:36, Rob Herring wrote: >>> Clean-up incorrect indentation, extra spaces, long lines, and missing >>> EOF newline in sch

Re: [PATCH] dt-bindings: Whitespace clean-ups in schema files

2020-08-13 Thread Luca Ceresoli
Hi Rob, On 12/08/20 22:36, Rob Herring wrote: > Clean-up incorrect indentation, extra spaces, long lines, and missing > EOF newline in schema files. Most of the clean-ups are for list > indentation which should always be 2 spaces more than the preceding > keyword. > > Found with yamllint (which

Re: [PATCH v4 2/2] drm/bridge: imx: add driver for HDMI TX Parallel Video Interface

2023-09-29 Thread Luca Ceresoli
ck > just needs to be powered up and told about the polarity of the video > sync signals to act in bypass mode. > > Signed-off-by: Lucas Stach > Reviewed-by: Luca Ceresoli (v2) I was in Cc on your v3 but not on this v4. Maybe the " (v2)" on these lines confuses get_maintai

Re: [PATCH v4 1/2] dt-bindings: display: imx: add binding for i.MX8MP HDMI PVI

2023-09-29 Thread Luca Ceresoli
> +#include > + > +display-bridge@32fc4000 { > +compatible = "fsl,imx8mp-hdmi-pvi"; > +reg = <0x32fc4000 0x40>; The device has up to register 0x40, thus I guess the second value should be 0x44 here. Or maybe 0x100, just to be comfortable. :) Luca -- Luca Ceresoli, Bootlin Embedded Linux and Kernel engineering https://bootlin.com

[PATCH] dt-bindings: display: remove backlight node from panel examples

2023-10-11 Thread Luca Ceresoli
/ Suggested-by: Rob Herring Signed-off-by: Luca Ceresoli --- Documentation/devicetree/bindings/display/ilitek,ili9486.yaml | 4 Documentation/devicetree/bindings/display/panel/ilitek,ili9163.yaml | 4 Documentation/devicetree/bindings/display/sitronix,st7735r.yaml | 5 - 3 files

Re: [PATCH v2 4/4] drm/bridge: imx: add driver for HDMI TX Parallel Video Interface

2023-08-18 Thread Luca Ceresoli
fg.flags; > + > + if (bus_flags & DRM_BUS_FLAG_DE_HIGH) > + val |= PVI_CTL_OP_DE_POL | PVI_CTL_INP_DE_POL; > + > + writel(val, pvi->regs + HTX_PVI_CTL); > + val |= PVI_CTL_EN; > + writel(val, pvi->regs + HTX_PVI_CTL); I guess I'm missing something here: why can't one just write the register once, with the enable bit set? I tried removing the first writel() and everything seems to work just the same. With these fixed: Reviewed-by: Luca Ceresoli And definitely: [Tested on a custom board using modetest on v6.5-rc6] Tested-by: Luca Ceresoli -- Luca Ceresoli, Bootlin Embedded Linux and Kernel engineering https://bootlin.com

Re: [PATCH v2 2/4] drm/bridge: imx: add bridge wrapper driver for i.MX8MP DWC HDMI

2023-08-18 Thread Luca Ceresoli
Pinchart > Tested-by: Marek Vasut I realized I had sent my Tested-by to v1 when v2 was already out. So, in case you still need some encouragement for keeping on with this series: [Tested on a custom board using modetest on v6.5-rc6] Tested-by: Luca Ceresoli -- Luca Ceresoli, Bootlin Embe

Re: [PATCH 6/6] i2c: Make remove callback return void

2022-06-29 Thread Luca Ceresoli
c_get_clientdata(client); > > @@ -1146,8 +1146,6 @@ static int vc5_remove(struct i2c_client *client) > > if (vc5->chip_info->flags & VC5_HAS_INTERNAL_XTAL) > clk_unregister_fixed_rate(vc5->pin_xin); > - > - return 0; > } > &

Re: [PATCH v2 00/21] Add Tegra20 parallel video input capture

2022-12-22 Thread Luca Ceresoli
Hello Dmitry, thanks for your review. On Tue, 20 Dec 2022 23:21:49 +0300 Dmitry Osipenko wrote: > 28.11.2022 18:23, Luca Ceresoli пишет: > > Tegra20 and other Tegra SoCs have a video input (VI) peripheral that can > > receive from either MIPI CSI-2 or parallel video (called re

Re: [PATCH v2 21/21] staging: media: tegra-video: add tegra20 variant

2022-12-22 Thread Luca Ceresoli
Hello Dmitry, On Wed, 21 Dec 2022 00:40:20 +0300 Dmitry Osipenko wrote: > 28.11.2022 18:23, Luca Ceresoli пишет: > > +static int tegra20_channel_capture_frame(struct tegra_vi_channel *chan, > > +struct tegra_channel_buffer *buf) > >

Re: [PATCH v2 01/21] dt-bindings: display: tegra: add Tegra20 VIP

2022-12-22 Thread Luca Ceresoli
Hello Dmitry, On Tue, 20 Dec 2022 23:13:05 +0300 Dmitry Osipenko wrote: > 02.12.2022 11:11, Luca Ceresoli пишет: ... > >>> --- /dev/null > >>> +++ > >>> b/Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-vip.yaml > >>> @@ -0,0

Re: [PATCH v2 21/21] staging: media: tegra-video: add tegra20 variant

2022-12-28 Thread Luca Ceresoli
On Fri, 23 Dec 2022 15:35:58 +0300 Dmitry Osipenko wrote: > 28.11.2022 18:23, Luca Ceresoli пишет: ... > > +static const struct tegra_vip_ops tegra20_vip_ops = { > > + .vip_start_streaming = tegra20_vip_start_streaming, > > +}; > > + > > +const str

[PATCH v3 00/21] Add Tegra20 parallel video input capture

2022-12-29 Thread Luca Ceresoli
oved patches 3 and 4 adding DT labels without a mainline user - two small fixes to the last patch [v2] https://lore.kernel.org/linux-tegra/20221222100328.6e341874@booty/T/#t [v1] https://lore.kernel.org/linux-tegra/20221124155634.5bc2a423@booty/T/#t Luca Luca Ceresoli (21): dt-bindings: display

[PATCH v3 02/21] dt-bindings: display: tegra: vi: add 'vip' property and example

2022-12-29 Thread Luca Ceresoli
The Tegra20 VI peripheral can receive parallel input from the VIP parallel input module. Add it to the allowed properties and augment the existing nvidia,tegra20-vi example to show a 'vip' property. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Luca Ceresoli --- Changed in v3 (suggested

[PATCH v3 19/21] staging: media: tegra-video: add hooks for planar YUV and H/V flip

2022-12-29 Thread Luca Ceresoli
rt offsets - an optional per-soc VI operation to compute those values on queue setup Signed-off-by: Luca Ceresoli --- No changes in v3 No changes in v2 --- drivers/staging/media/tegra-video/vi.c | 4 drivers/staging/media/tegra-video/vi.h | 14 ++ 2 files changed, 18 insertions(+)

[PATCH v3 04/21] staging: media: tegra-video: improve documentation of tegra_video_format fields

2022-12-29 Thread Luca Ceresoli
Some fields are irrelevant for Tegra20/VIP. Add a note to clarify that. Signed-off-by: Luca Ceresoli --- No changes in v3 No changes in v2 --- drivers/staging/media/tegra-video/vi.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/media/tegra-video

[PATCH v3 17/21] staging: media: tegra-video: move syncpt init/free to a per-soc op

2022-12-29 Thread Luca Ceresoli
`struct tegra_vi_ops` . No functional changes. Signed-off-by: Luca Ceresoli --- No changes in v3 No changes in v2 --- drivers/staging/media/tegra-video/tegra210.c | 52 drivers/staging/media/tegra-video/vi.c | 52 ++-- drivers/staging/media/tegra-video

[PATCH v3 21/21] staging: media: tegra-video: add support for Tegra20 parallel input

2022-12-29 Thread Luca Ceresoli
from a vendor kernel based on Linux 3.1 and massively adapted to fit into the tegra-video driver. Parts of this code is definitely non-optimal to say the least (especially tegra20_vi_enable() and the single-frame capture logic), but it was impossible to improve it. Signed-off-by: Luca Ceresoli

[PATCH v3 03/21] staging: media: tegra-video: fix .vidioc_enum_fmt_vid_cap to return all formats

2022-12-29 Thread Luca Ceresoli
("media: tegra-video: Add Tegra210 Video input driver") Signed-off-by: Luca Ceresoli --- No changes in v3 No changes in v2 --- drivers/staging/media/tegra-video/tegra210.c | 7 +- drivers/staging/media/tegra-video/vi.c | 103 +-- drivers/staging/media/tegra-

[PATCH v3 01/21] dt-bindings: display: tegra: add Tegra20 VIP

2022-12-29 Thread Luca Ceresoli
VIP is the parallel video capture component within the video input subsystem of Tegra20 (and other Tegra chips, apparently). Signed-off-by: Luca Ceresoli --- Changed in v3: - remove channel@0 node (Krzysztof, Rob, Dmitry) - add myself as a maintainer of the whole Tegra video driver (Dmitry

[PATCH v3 20/21] staging: media: tegra-video: add H/V flip controls

2022-12-29 Thread Luca Ceresoli
implementation that simply sets two flags in the channel struct. The Tegra20 implementation will enable flipping at stream start based on those flags. Signed-off-by: Luca Ceresoli --- No changes in v3 No changes in v2 --- drivers/staging/media/tegra-video/vi.c | 14 +- drivers/staging

[PATCH v3 14/21] staging: media: tegra-video: move default format to soc-specific data

2022-12-29 Thread Luca Ceresoli
. No functional changes. The format pointed to is the same that used to be in vi.c. Signed-off-by: Luca Ceresoli --- No changes in v3 No changes in v2 --- drivers/staging/media/tegra-video/tegra210.c | 2 ++ drivers/staging/media/tegra-video/vi.c | 11 +-- drivers/staging/media/tegra

[PATCH v3 15/21] staging: media: tegra-video: move MIPI calibration calls from VI to CSI

2022-12-29 Thread Luca Ceresoli
it. Signed-off-by: Luca Ceresoli --- No changes in v3 No changes in v2 --- drivers/staging/media/tegra-video/csi.c | 44 drivers/staging/media/tegra-video/vi.c | 54 ++--- 2 files changed, 48 insertions(+), 50 deletions(-) diff --git a/drivers/staging

[PATCH v3 13/21] staging: media: tegra-video: move tegra_channel_fmt_align to a per-soc op

2022-12-29 Thread Luca Ceresoli
to tegra210.c the T210-specific defines used in the moved code. No functional changes. Signed-off-by: Luca Ceresoli --- No changes in v3 No changes in v2 --- drivers/staging/media/tegra-video/tegra210.c | 36 ++ drivers/staging/media/tegra-video/vi.c | 40

[PATCH v3 07/21] staging: media: tegra-video: improve error messages

2022-12-29 Thread Luca Ceresoli
print two messages, and in case 1 we only print a generic message. Remove the generic message and add a specific message when case 1 happens, so that we always have one specific message without even increasing the number of dev_dbg*() calls. Signed-off-by: Luca Ceresoli --- No changes in

[PATCH v3 18/21] staging: media: tegra-video: add syncpts for Tegra20 to struct tegra_vi

2022-12-29 Thread Luca Ceresoli
In preparation to implement Tegra20 parallel video capture, add a variable to hold the required syncpt and document all the syncpt variables. Signed-off-by: Luca Ceresoli --- Changed in v3: - recycle mw_ack_sp[0] instead of adding out_sp No changes in v2 --- drivers/staging/media/tegra

[PATCH v3 10/21] staging: media: tegra-video: move tegra210_csi_soc to C file

2022-12-29 Thread Luca Ceresoli
This declaration is used only in csi.c, no need to export it elsewhere. Signed-off-by: Luca Ceresoli --- This patch was added in v3. --- drivers/staging/media/tegra-video/csi.c | 4 drivers/staging/media/tegra-video/csi.h | 4 2 files changed, 4 insertions(+), 4 deletions(-) diff

[PATCH v3 16/21] staging: media: tegra-video: add a per-soc enable/disable op

2022-12-29 Thread Luca Ceresoli
The Tegra20 VI needs an additional operation to enable the VI, add an operation for that. Signed-off-by: Luca Ceresoli --- No changes in v3 No changes in v2 --- drivers/staging/media/tegra-video/vi.c | 7 +++ drivers/staging/media/tegra-video/vi.h | 4 2 files changed, 11 insertions

[PATCH v3 11/21] staging: media: tegra-video: remove unneeded include

2022-12-29 Thread Luca Ceresoli
There is only a pointer reference to struct tegra_vi in video.h, thus vi.h is not needed. Signed-off-by: Luca Ceresoli --- No changes in v3 No changes in v2 --- drivers/staging/media/tegra-video/video.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/media/tegra-video

[PATCH v3 06/21] staging: media: tegra-video: fix typos in comment

2022-12-29 Thread Luca Ceresoli
Add "skip" in "so we can *skip* the current channel" or it doesn't make sense. Also add articles where appropriate to fix English grammar. Signed-off-by: Luca Ceresoli --- No changes in v3 No changes in v2 --- drivers/staging/media/tegra-video/vi.c | 6 +++--- 1 file c

[PATCH v3 12/21] staging: media: tegra-video: Kconfig: allow TPG only on Tegra210

2022-12-29 Thread Luca Ceresoli
We are about to add support for the Tegra20 parallel video capture, which has no TPG. In preparation for that, limit the VIDEO_TEGRA_TPG option to Tegra210 which is the only implementation currently provided by this driver. Signed-off-by: Luca Ceresoli --- No changes in v3 No changes in v2

[PATCH v3 09/21] staging: media: tegra-video: move private struct declaration to C file

2022-12-29 Thread Luca Ceresoli
struct tegra_vi_graph_entity is an internal implementation detail of the VI module. Move its declaration from vi.h to vi.c. Signed-off-by: Luca Ceresoli --- No changes in v3 No changes in v2 --- drivers/staging/media/tegra-video/vi.c | 13 + drivers/staging/media/tegra-video/vi.h

[PATCH v3 08/21] staging: media: tegra-video: slightly simplify cleanup on errors

2022-12-29 Thread Luca Ceresoli
of_node_put(node) does nothing if node == NULL, so it can be moved to the cleanup section at the bottom. Signed-off-by: Luca Ceresoli --- No changes in v3 No changes in v2 --- drivers/staging/media/tegra-video/vi.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git

[PATCH v3 05/21] staging: media: tegra-video: document tegra_channel_get_remote_source_subdev

2022-12-29 Thread Luca Ceresoli
Clarify what this function does. Signed-off-by: Luca Ceresoli --- No changes in v3 No changes in v2 --- drivers/staging/media/tegra-video/vi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/staging/media/tegra-video/vi.c b/drivers/staging/media/tegra-video/vi.c index

Re: [PATCH 00/23] Add Tegra20 parallel video input capture

2022-11-24 Thread Luca Ceresoli
HI Hans, On Thu, 24 Nov 2022 09:36:14 +0100 Hans Verkuil wrote: > Hi Luca, > > On 09/11/2022 15:18, luca.ceres...@bootlin.com wrote: > > From: Luca Ceresoli > > > > Tegra20 and other Tegra SoCs have a video input (VI) peripheral that can > > receive from ei

[PATCH v2 01/21] dt-bindings: display: tegra: add Tegra20 VIP

2022-11-28 Thread Luca Ceresoli
VIP is the parallel video capture component within the video input subsystem of Tegra20 (and other Tegra chips, apparently). Signed-off-by: Luca Ceresoli --- Changed in v2 (suggested by Krzysztof Kozlowski): - remove redundant "bindings" from subject line - remove $nodename - add

[PATCH v2 02/21] dt-bindings: display: tegra: vi: add 'vip' property and example

2022-11-28 Thread Luca Ceresoli
The Tegra20 VI peripheral can receive parallel input from the VIP parallel input module. Add it to the allowed properties and augment the existing nvidia,tegra20-vi example to show a 'vip' property. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Luca Ceresoli --- Changed in v2 (suggested

[PATCH v2 12/21] staging: media: tegra-video: move tegra_channel_fmt_align to a per-soc op

2022-11-28 Thread Luca Ceresoli
to tegra210.c the T210-specific defines used in the moved code. No functional changes. Signed-off-by: Luca Ceresoli --- No changes in v2 --- drivers/staging/media/tegra-video/tegra210.c | 36 ++ drivers/staging/media/tegra-video/vi.c | 40 +++- drivers/staging

[PATCH v2 06/21] staging: media: tegra-video: fix typos in comment

2022-11-28 Thread Luca Ceresoli
Add "skip" in "so we can *skip* the current channel" or it doesn't make sense. Also add articles where appropriate to fix English grammar. Signed-off-by: Luca Ceresoli --- No changes in v2 --- drivers/staging/media/tegra-video/vi.c | 6 +++--- 1 file changed, 3 insert

[PATCH v2 04/21] staging: media: tegra-video: improve documentation of tegra_video_format fields

2022-11-28 Thread Luca Ceresoli
Some fields are irrelevant for Tegra20/VIP. Add a note to clarify that. Signed-off-by: Luca Ceresoli --- No changes in v2 --- drivers/staging/media/tegra-video/vi.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/media/tegra-video/vi.h b/drivers

[PATCH v2 05/21] staging: media: tegra-video: document tegra_channel_get_remote_source_subdev

2022-11-28 Thread Luca Ceresoli
Clarify what this function does. Signed-off-by: Luca Ceresoli --- No changes in v2 --- drivers/staging/media/tegra-video/vi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/staging/media/tegra-video/vi.c b/drivers/staging/media/tegra-video/vi.c index 0fe3c7f6d234

[PATCH v2 19/21] staging: media: tegra-video: add H/V flip controls

2022-11-28 Thread Luca Ceresoli
implementation that simply sets two flags in the channel struct. The Tegra20 implementation will enable flipping at stream start based on those flags. Signed-off-by: Luca Ceresoli --- No changes in v2 --- drivers/staging/media/tegra-video/vi.c | 14 +- drivers/staging/media/tegra-video

[PATCH v2 13/21] staging: media: tegra-video: move default format to soc-specific data

2022-11-28 Thread Luca Ceresoli
. No functional changes. The format pointed to is the same that used to be in vi.c. Signed-off-by: Luca Ceresoli --- No changes in v2 --- drivers/staging/media/tegra-video/tegra210.c | 2 ++ drivers/staging/media/tegra-video/vi.c | 11 +-- drivers/staging/media/tegra-video/vi.h | 2

[PATCH v2 14/21] staging: media: tegra-video: move MIPI calibration calls from VI to CSI

2022-11-28 Thread Luca Ceresoli
it. Signed-off-by: Luca Ceresoli --- No changes in v2 --- drivers/staging/media/tegra-video/csi.c | 44 drivers/staging/media/tegra-video/vi.c | 54 ++--- 2 files changed, 48 insertions(+), 50 deletions(-) diff --git a/drivers/staging/media/tegra

[PATCH v2 21/21] staging: media: tegra-video: add tegra20 variant

2022-11-28 Thread Luca Ceresoli
is definitely non-optimal to say the least (especially tegra20_vi_enable() and the single-frame capture logic), but it was impossible to improve it. Signed-off-by: Luca Ceresoli --- Changed in v2: - fix tegra20_vi_enable() to clear bit when on==false - clamp width/height from set/try_fmt to avoid

[PATCH v2 17/21] staging: media: tegra-video: add syncpts for Tegra20 to struct tegra_vi

2022-11-28 Thread Luca Ceresoli
In preparation to implement Tegra20 parallel video capture, add variables to hold the required syncpt. Signed-off-by: Luca Ceresoli --- No changes in v2 --- drivers/staging/media/tegra-video/vi.h | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/staging/media

[PATCH v2 16/21] staging: media: tegra-video: move syncpt init/free to a per-soc op

2022-11-28 Thread Luca Ceresoli
`struct tegra_vi_ops` . No functional changes. Signed-off-by: Luca Ceresoli --- No changes in v2 --- drivers/staging/media/tegra-video/tegra210.c | 52 drivers/staging/media/tegra-video/vi.c | 52 ++-- drivers/staging/media/tegra-video/vi.h | 5

[PATCH v2 11/21] staging: media: tegra-video: Kconfig: allow TPG only on Tegra210

2022-11-28 Thread Luca Ceresoli
We are about to add support for the Tegra20 parallel video capture, which has no TPG. In preparation for that, limit the VIDEO_TEGRA_TPG option to Tegra210 which is the only implementation currently provided by this driver. Signed-off-by: Luca Ceresoli --- No changes in v2 --- drivers/staging

[PATCH v2 10/21] staging: media: tegra-video: remove unneeded include

2022-11-28 Thread Luca Ceresoli
There is only a pointer reference to struct tegra_vi in video.h, thus vi.h is not needed. Signed-off-by: Luca Ceresoli --- No changes in v2 --- drivers/staging/media/tegra-video/video.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/media/tegra-video/video.h b/drivers

[PATCH v2 00/21] Add Tegra20 parallel video input capture

2022-11-28 Thread Luca Ceresoli
ia: tegra-video: add tegra20 variant Enjoy! Changed in v2: - improved dt-bindings patches based on reviews - removed patches 3 and 4 adding DT labels without a mainline user - two small fixes to the last patch [v1] https://lore.kernel.org/linux-tegra/20221124155634.5bc2a423@booty/T/#t Luca Luca

[PATCH v2 15/21] staging: media: tegra-video: add a per-soc enable/disable op

2022-11-28 Thread Luca Ceresoli
The Tegra20 VI needs an additional operation to enable the VI, add an operation for that. Signed-off-by: Luca Ceresoli --- No changes in v2 --- drivers/staging/media/tegra-video/vi.c | 7 +++ drivers/staging/media/tegra-video/vi.h | 4 2 files changed, 11 insertions(+) diff --git

[PATCH v2 20/21] staging: media: tegra-video: add support for VIP (parallel video input)

2022-11-28 Thread Luca Ceresoli
The VI peripheral of Tegra supports capturing from MIPI CSI-2 or parallel video (called VIP in the docs). MIPI CSI-2 is already implemented. Add a VIP implementation. Signed-off-by: Luca Ceresoli --- No changes in v2 --- MAINTAINERS| 1 + drivers/staging

[PATCH v2 03/21] staging: media: tegra-video: fix .vidioc_enum_fmt_vid_cap to return all formats

2022-11-28 Thread Luca Ceresoli
("media: tegra-video: Add Tegra210 Video input driver") Signed-off-by: Luca Ceresoli --- No changes in v2 --- drivers/staging/media/tegra-video/tegra210.c | 7 +- drivers/staging/media/tegra-video/vi.c | 103 +-- drivers/staging/media/tegra-video/vi.h | 4

[PATCH v2 08/21] staging: media: tegra-video: slightly simplify cleanup on errors

2022-11-28 Thread Luca Ceresoli
of_node_put(node) does nothing if node == NULL, so it can be moved to the cleanup section at the bottom. Signed-off-by: Luca Ceresoli --- No changes in v2 --- drivers/staging/media/tegra-video/vi.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/staging

[PATCH v2 09/21] staging: media: tegra-video: move private struct declaration to C file

2022-11-28 Thread Luca Ceresoli
struct tegra_vi_graph_entity is an internal implementation detail of the VI module. Move its declaration from vi.h to vi.c. Signed-off-by: Luca Ceresoli --- No changes in v2 --- drivers/staging/media/tegra-video/vi.c | 13 + drivers/staging/media/tegra-video/vi.h | 13

[PATCH v2 18/21] staging: media: tegra-video: add hooks for planar YUV and H/V flip

2022-11-28 Thread Luca Ceresoli
rt offsets - an optional per-soc VI operation to compute those values on queue setup Signed-off-by: Luca Ceresoli --- No changes in v2 --- drivers/staging/media/tegra-video/vi.c | 4 drivers/staging/media/tegra-video/vi.h | 14 ++ 2 files changed, 18 insertions(+) diff --git

[PATCH v2 07/21] staging: media: tegra-video: improve error messages

2022-11-28 Thread Luca Ceresoli
print two messages, and in case 1 we only print a generic message. Remove the generic message and add a specific message when case 1 happens, so that we always have one specific message without even increasing the number of dev_dbg*() calls. Signed-off-by: Luca Ceresoli --- No changes in v2 --- dr

Re: [PATCH v2 01/21] dt-bindings: display: tegra: add Tegra20 VIP

2022-12-02 Thread Luca Ceresoli
Hello Rob, Thanks for your review. On Thu, 1 Dec 2022 17:19:36 -0600 Rob Herring wrote: > On Mon, Nov 28, 2022 at 04:23:16PM +0100, Luca Ceresoli wrote: > > VIP is the parallel video capture component within the video input > > subsystem of Tegra20 (and other Tegra ch

Re: [PATCH v2 02/21] dt-bindings: display: tegra: vi: add 'vip' property and example

2022-12-02 Thread Luca Ceresoli
Hello Rob, On Thu, 1 Dec 2022 17:16:36 -0600 Rob Herring wrote: > On Mon, Nov 28, 2022 at 04:23:17PM +0100, Luca Ceresoli wrote: > > The Tegra20 VI peripheral can receive parallel input from the VIP parallel > > input module. Add it to the allowed properties and augment the exis

Re: [PATCH 01/23] dt-bindings: display: tegra: add bindings for Tegra20 VIP

2022-11-19 Thread Luca Ceresoli
Hello Krzysztof, thanks for the review. I'm glad my error rate on bindings is lower than it used to be before I attended your ELCE talk! ;) On Tue, 15 Nov 2022 13:12:44 +0100 Krzysztof Kozlowski wrote: > On 09/11/2022 15:18, luca.ceres...@bootlin.com wrote: > > From: Luca

Re: [PATCH v3 02/21] dt-bindings: display: tegra: vi: add 'vip' property and example

2023-01-24 Thread Luca Ceresoli
Hi Dmitry, On Tue, 24 Jan 2023 20:02:39 +0300 Dmitry Osipenko wrote: > On 12/29/22 16:31, Luca Ceresoli wrote: > > +vip { > > +compatible = "nvidia,tegra20-vip"; > > +#address-cells = <1>; > > +#s

[PATCH v4 03/21] staging: media: tegra-video: fix .vidioc_enum_fmt_vid_cap to return all formats

2023-01-30 Thread Luca Ceresoli
("media: tegra-video: Add Tegra210 Video input driver") Signed-off-by: Luca Ceresoli Reviewed-by: Dmitry Osipenko --- Changed in v4: - Added review tags No changes in v3 No changes in v2 --- drivers/staging/media/tegra-video/tegra210.c | 7 +- drivers/staging/media/tegra-video/vi.c

[PATCH v4 04/21] staging: media: tegra-video: improve documentation of tegra_video_format fields

2023-01-30 Thread Luca Ceresoli
Some fields are irrelevant for Tegra20/VIP. Add a note to clarify that. Signed-off-by: Luca Ceresoli Reviewed-by: Dmitry Osipenko --- Changed in v4: - Added review tags No changes in v3 No changes in v2 --- drivers/staging/media/tegra-video/vi.h | 6 +++--- 1 file changed, 3 insertions

[PATCH v4 00/21] Add Tegra20 parallel video input capture

2023-01-30 Thread Luca Ceresoli
rnel.org/linux-tegra/20221222100328.6e341874@booty/T/#t [v1] https://lore.kernel.org/linux-tegra/20221124155634.5bc2a423@booty/T/#t Luca Luca Ceresoli (21): dt-bindings: display: tegra: add Tegra20 VIP dt-bindings: display: tegra: vi: add 'vip' property and example staging: media: tegra-video: fix .vid

[PATCH v4 01/21] dt-bindings: display: tegra: add Tegra20 VIP

2023-01-30 Thread Luca Ceresoli
VIP is the parallel video capture component within the video input subsystem of Tegra20 (and other Tegra chips, apparently). Signed-off-by: Luca Ceresoli Reviewed-by: Krzysztof Kozlowski Reviewed-by: Dmitry Osipenko --- Changed in v4: - Added review tags - remove leftover lines after

[PATCH v4 02/21] dt-bindings: display: tegra: vi: add 'vip' property and example

2023-01-30 Thread Luca Ceresoli
The Tegra20 VI peripheral can receive parallel input from the VIP parallel input module. Add it to the allowed properties and augment the existing nvidia,tegra20-vi example to show a 'vip' property. Signed-off-by: Luca Ceresoli --- Changed in v4: - complete the removal of 'channel@0' Changed

[PATCH v4 06/21] staging: media: tegra-video: fix typos in comment

2023-01-30 Thread Luca Ceresoli
Add "skip" in "so we can *skip* the current channel" or it doesn't make sense. Also add articles where appropriate to fix English grammar. Signed-off-by: Luca Ceresoli Reviewed-by: Dmitry Osipenko --- Changed in v4: - Added review tags No changes in v3 No changes in v2

[PATCH v4 05/21] staging: media: tegra-video: document tegra_channel_get_remote_source_subdev

2023-01-30 Thread Luca Ceresoli
Clarify what this function does. Signed-off-by: Luca Ceresoli Reviewed-by: Dmitry Osipenko --- Changed in v4: - Added review tags No changes in v3 No changes in v2 --- drivers/staging/media/tegra-video/vi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/staging/media/tegra

[PATCH v4 11/21] staging: media: tegra-video: remove unneeded include

2023-01-30 Thread Luca Ceresoli
There is only a pointer reference to struct tegra_vi in video.h, thus vi.h is not needed. Signed-off-by: Luca Ceresoli Reviewed-by: Dmitry Osipenko --- Changed in v4: - Added review tags No changes in v3 No changes in v2 --- drivers/staging/media/tegra-video/video.h | 1 - 1 file changed

[PATCH v4 13/21] staging: media: tegra-video: move tegra_channel_fmt_align to a per-soc op

2023-01-30 Thread Luca Ceresoli
to tegra210.c the T210-specific defines used in the moved code. No functional changes. Signed-off-by: Luca Ceresoli Reviewed-by: Dmitry Osipenko --- Changed in v4: - Added review tags No changes in v3 No changes in v2 --- drivers/staging/media/tegra-video/tegra210.c | 36

[PATCH v4 07/21] staging: media: tegra-video: improve error messages

2023-01-30 Thread Luca Ceresoli
print two messages, and in case 1 we only print a generic message. Remove the generic message and add a specific message when case 1 happens, so that we always have one specific message without even increasing the number of dev_dbg*() calls. Signed-off-by: Luca Ceresoli Reviewed-by: Dmitry Osipenko

[PATCH v4 14/21] staging: media: tegra-video: move default format to soc-specific data

2023-01-30 Thread Luca Ceresoli
. No functional changes. The format pointed to is the same that used to be in vi.c. Signed-off-by: Luca Ceresoli Reviewed-by: Dmitry Osipenko --- Changed in v4: - Added review tags No changes in v3 No changes in v2 --- drivers/staging/media/tegra-video/tegra210.c | 2 ++ drivers/staging/media/tegra

[PATCH v4 08/21] staging: media: tegra-video: slightly simplify cleanup on errors

2023-01-30 Thread Luca Ceresoli
of_node_put(node) does nothing if node == NULL, so it can be moved to the cleanup section at the bottom. Signed-off-by: Luca Ceresoli Reviewed-by: Dmitry Osipenko --- Changed in v4: - Added review tags No changes in v3 No changes in v2 --- drivers/staging/media/tegra-video/vi.c | 8

[PATCH v4 09/21] staging: media: tegra-video: move private struct declaration to C file

2023-01-30 Thread Luca Ceresoli
struct tegra_vi_graph_entity is an internal implementation detail of the VI module. Move its declaration from vi.h to vi.c. Signed-off-by: Luca Ceresoli Reviewed-by: Dmitry Osipenko --- Changed in v4: - Added review tags No changes in v3 No changes in v2 --- drivers/staging/media/tegra

[PATCH v4 10/21] staging: media: tegra-video: move tegra210_csi_soc to C file

2023-01-30 Thread Luca Ceresoli
This declaration is used only in csi.c, no need to export it elsewhere. Signed-off-by: Luca Ceresoli Reviewed-by: Dmitry Osipenko --- Changed in v4: - Added review tags This patch was added in v3. --- drivers/staging/media/tegra-video/csi.c | 4 drivers/staging/media/tegra-video/csi.h

Re: [PATCH v3 01/21] dt-bindings: display: tegra: add Tegra20 VIP

2023-01-30 Thread Luca Ceresoli
Hi Dmitry, On Wed, 25 Jan 2023 01:15:22 +0300 Dmitry Osipenko wrote: > On 12/29/22 16:31, Luca Ceresoli wrote: > > VIP is the parallel video capture component within the video input > > subsystem of Tegra20 (and other Tegra chips, apparently). > > > > S

[PATCH v4 12/21] staging: media: tegra-video: Kconfig: allow TPG only on Tegra210

2023-01-30 Thread Luca Ceresoli
We are about to add support for the Tegra20 parallel video capture, which has no TPG. In preparation for that, limit the VIDEO_TEGRA_TPG option to Tegra210 which is the only implementation currently provided by this driver. Signed-off-by: Luca Ceresoli Reviewed-by: Dmitry Osipenko --- Changed

[PATCH v4 21/21] staging: media: tegra-video: add support for Tegra20 parallel input

2023-01-30 Thread Luca Ceresoli
from a vendor kernel based on Linux 3.1 and massively adapted to fit into the tegra-video driver. Parts of this code is definitely non-optimal to say the least (especially tegra20_vi_enable() and the single-frame capture logic), but it was impossible to improve it. Signed-off-by: Luca Ceresoli

[PATCH v4 20/21] staging: media: tegra-video: add H/V flip controls

2023-01-30 Thread Luca Ceresoli
implementation that simply sets two flags in the channel struct. The Tegra20 implementation will enable flipping at stream start based on those flags. Signed-off-by: Luca Ceresoli Reviewed-by: Dmitry Osipenko --- Changed in v4: - Added review tags No changes in v3 No changes in v2 --- drivers

[PATCH v4 19/21] staging: media: tegra-video: add hooks for planar YUV and H/V flip

2023-01-30 Thread Luca Ceresoli
rt offsets - an optional per-soc VI operation to compute those values on queue setup Signed-off-by: Luca Ceresoli Reviewed-by: Dmitry Osipenko --- Changed in v4: - Added review tags No changes in v3 No changes in v2 --- drivers/staging/media/tegra-video/vi.c | 4 drivers/staging/media/tegra-

[PATCH v4 17/21] staging: media: tegra-video: move syncpt init/free to a per-soc op

2023-01-30 Thread Luca Ceresoli
`struct tegra_vi_ops` . No functional changes. Signed-off-by: Luca Ceresoli Reviewed-by: Dmitry Osipenko --- Changed in v4: - Added review tags No changes in v3 No changes in v2 --- drivers/staging/media/tegra-video/tegra210.c | 52 drivers/staging/media/tegra-video/vi.c

[PATCH v4 18/21] staging: media: tegra-video: add syncpts for Tegra20 to struct tegra_vi

2023-01-30 Thread Luca Ceresoli
In preparation to implement Tegra20 parallel video capture, add a variable to hold the required syncpt and document all the syncpt variables. Signed-off-by: Luca Ceresoli Reviewed-by: Dmitry Osipenko --- Changed in v4: - Added review tags Changed in v3: - recycle mw_ack_sp[0] instead

[PATCH v4 16/21] staging: media: tegra-video: add a per-soc enable/disable op

2023-01-30 Thread Luca Ceresoli
The Tegra20 VI needs an additional operation to enable the VI, add an operation for that. Signed-off-by: Luca Ceresoli Reviewed-by: Dmitry Osipenko --- Changed in v4: - Added review tags No changes in v3 No changes in v2 --- drivers/staging/media/tegra-video/vi.c | 7 +++ drivers

[PATCH v4 15/21] staging: media: tegra-video: move MIPI calibration calls from VI to CSI

2023-01-30 Thread Luca Ceresoli
it. Signed-off-by: Luca Ceresoli Reviewed-by: Dmitry Osipenko --- Changed in v4: - Added review tags No changes in v3 No changes in v2 --- drivers/staging/media/tegra-video/csi.c | 44 drivers/staging/media/tegra-video/vi.c | 54 ++--- 2 files

[PATCH 13/23] staging: media: tegra-video: Kconfig: allow TPG only on Tegra210

2022-11-10 Thread luca . ceresoli
From: Luca Ceresoli We are about to add support for the Tegra20 parallel video capture, which has no TPG. In preparation for that, limit the VIDEO_TEGRA_TPG option to Tegra210 which is the only implementation currently provided by this driver. Signed-off-by: Luca Ceresoli --- drivers/staging

[PATCH 02/23] dt-bindings: display: tegra: vi: add 'vip' property and example

2022-11-10 Thread luca . ceresoli
From: Luca Ceresoli The Tegra20 VI peripheral can receive parallel input from the VIP parallel input module. Add it to the allowed properties and augment the existing nvidia,tegra20-vi example to show a 'vip' property. Signed-off-by: Luca Ceresoli --- .../display/tegra/nvidia,tegra20-vi.yaml

[PATCH 09/23] staging: media: tegra-video: improve error messages

2022-11-10 Thread luca . ceresoli
From: Luca Ceresoli tegra_vi_channels_alloc() can primarily fail for two reasons: 1. "ports" node not found 2. port_num > vi->soc->vi_max_channels Case 1 prints nothing, case 2 has a dev_err(). The caller [tegra_vi_init()] has a generic dev_err() on any failure. This mea

[PATCH 15/23] staging: media: tegra-video: move default format to soc-specific data

2022-11-10 Thread luca . ceresoli
From: Luca Ceresoli The tegra_default_format in vi.c is specific to Tegra210 CSI. In preparation for adding Tegra20 VIP support, move the default format to a new field in the soc-specific `struct tegra_vi_soc`. Instead of an entire format struct, only store a pointer to an item in the existing

[PATCH 23/23] staging: media: tegra-video: add tegra20 variant

2022-11-10 Thread luca . ceresoli
From: Luca Ceresoli The staging tegra-video driver currently implements MIPI CSI-2 video capture for Tegra210. Add support for parallel video capture (VIP) on Tegra20. With the generalizations added to the VI driver in previous commits, this is only a matter of adding the tegra20.c

[PATCH 14/23] staging: media: tegra-video: move tegra_channel_fmt_align to a per-soc op

2022-11-10 Thread luca . ceresoli
From: Luca Ceresoli tegra_channel_fmt_align() takes care of the size constraints, alignment and rounding requirements of the Tegra210 VI peripheral. Tegra20 has different constraints. In preparation for adding Tegra20 support, move this function to a new op in the soc-specific `struct

[PATCH 22/23] staging: media: tegra-video: add support for VIP (parallel video input)

2022-11-10 Thread luca . ceresoli
From: Luca Ceresoli The VI peripheral of Tegra supports capturing from MIPI CSI-2 or parallel video (called VIP in the docs). MIPI CSI-2 is already implemented. Add a VIP implementation. Signed-off-by: Luca Ceresoli --- MAINTAINERS| 1 + drivers/staging/media

[PATCH 16/23] staging: media: tegra-video: move MIPI calibration calls from VI to CSI

2022-11-10 Thread luca . ceresoli
From: Luca Ceresoli The CSI module does not handle all the MIPI lane calibration procedure, leaving a small part of it to the VI module. In doing this, tegra_channel_enable_stream() (vi.c) manipulates the private data of the upstream subdev casting it to struct 'tegra_csi_channel', which

[PATCH 18/23] staging: media: tegra-video: move syncpt init/free to a per-soc op

2022-11-10 Thread luca . ceresoli
From: Luca Ceresoli tegra_channel_host1x_syncpt_init() gets the host1x syncpts needed for the Tegra210 implementation, and tegra_channel_host1x_syncpts_free() puts them. Tegra20 needs to get and put a different syncpt. In preparation for adding Tegra20 support, move these functions to new ops

[PATCH 21/23] staging: media: tegra-video: add H/V flip controls

2022-11-10 Thread luca . ceresoli
From: Luca Ceresoli Tegra20 can do horizontal and vertical image flip, but Tegra210 cannot (either the hardware, or this driver). In preparation to adding Tegra20 support, add a flag in struct tegra_vi_soc so the generic vi.c code knows whether the flip controls should be added or not. Also

[PATCH 11/23] staging: media: tegra-video: move private struct declaration to C file

2022-11-10 Thread luca . ceresoli
From: Luca Ceresoli struct tegra_vi_graph_entity is an internal implementation detail of the VI module. Move its declaration from vi.h to vi.c. Signed-off-by: Luca Ceresoli --- drivers/staging/media/tegra-video/vi.c | 13 + drivers/staging/media/tegra-video/vi.h | 13

[PATCH 03/23] ARM: dts: tegra20: add label to nvidia,tegra20-vi node

2022-11-10 Thread luca . ceresoli
From: Luca Ceresoli Useful to enable it from a board DTS. Signed-off-by: Luca Ceresoli --- arch/arm/boot/dts/tegra20.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/tegra20.dtsi b/arch/arm/boot/dts/tegra20.dtsi index ee757dc8c6a2..5e71dcbe8b12 100644

[PATCH 20/23] staging: media: tegra-video: add hooks for planar YUV and H/V flip

2022-11-10 Thread luca . ceresoli
From: Luca Ceresoli Tegra20 supports planar YUV422 capture, which can be implemented by writing U and V base address registers in addition to the "main" base buffer address register. It also supports H and V flip, which among others requires to write the start address (i.e. the

  1   2   3   >