[PATCH v7 1/2] media: adv7604: automatic "default-input" selection

2016-09-15 Thread Ulrich Hecht
or adv7612. Hence, also adjust the parsing to make the implementation consistent with this. Based on patch by William Towle . Signed-off-by: Ulrich Hecht --- drivers/media/i2c/adv7604.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/media/i2c/adv7604.c b/drivers/med

[PATCH v7 0/2] rcar-vin EDID control ioctls

2016-09-15 Thread Ulrich Hecht
): use vin->src_pad_idx - rvin_dv_timings_cap(): likewise - rvin_s_dv_timings(): update vin->format - add Koelsch support Changes since v2: - rebased on top of rcar-vin driver v4 - removed "adv7604: fix SPA register location for ADV7612" (picked up) - changed prefix of dts patch to "ARM:

[PATCH v7 2/2] rcar-vin: implement EDID control ioctls

2016-09-15 Thread Ulrich Hecht
Adds G_EDID and S_EDID. Signed-off-by: Ulrich Hecht --- drivers/media/platform/rcar-vin/rcar-v4l2.c | 44 + drivers/media/platform/rcar-vin/rcar-vin.h | 1 + 2 files changed, 45 insertions(+) diff --git a/drivers/media/platform/rcar-vin/rcar-v4l2.c b/drivers

[PATCH v8 0/2] rcar-vin EDID control ioctls

2016-09-15 Thread Ulrich Hecht
ebased on top of rcar-vin driver v4 - removed "adv7604: fix SPA register location for ADV7612" (picked up) - changed prefix of dts patch to "ARM: dts: lager: " Ulrich Hecht (2): media: adv7604: automatic "default-input" selection rcar-vin: implement EDI

[PATCH v8 2/2] rcar-vin: implement EDID control ioctls

2016-09-15 Thread Ulrich Hecht
Adds G_EDID and S_EDID. Signed-off-by: Ulrich Hecht --- drivers/media/platform/rcar-vin/rcar-v4l2.c | 42 + drivers/media/platform/rcar-vin/rcar-vin.h | 1 + 2 files changed, 43 insertions(+) diff --git a/drivers/media/platform/rcar-vin/rcar-v4l2.c b/drivers

[PATCH v8 1/2] media: adv7604: automatic "default-input" selection

2016-09-15 Thread Ulrich Hecht
or adv7612. Hence, also adjust the parsing to make the implementation consistent with this. Based on patch by William Towle . Signed-off-by: Ulrich Hecht --- drivers/media/i2c/adv7604.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/media/i2c/adv7604.c b/drivers/med

Re: [PATCH v8 0/2] rcar-vin EDID control ioctls

2016-09-15 Thread Ulrich Hecht
On Thu, Sep 15, 2016 at 3:25 PM, Hans Verkuil wrote: > On 09/15/2016 03:24 PM, Ulrich Hecht wrote: >> >> Hi! >> >> This is a spinoff of "Lager/Koelsch board HDMI input support" that >> excludes >> the DT portions, and that works without the unmer

[PATCH v9 0/2] rcar-vin EDID control ioctls

2016-09-15 Thread Ulrich Hecht
likewise - rvin_s_dv_timings(): update vin->format - add Koelsch support Changes since v2: - rebased on top of rcar-vin driver v4 - removed "adv7604: fix SPA register location for ADV7612" (picked up) - changed prefix of dts patch to "ARM: dts: lager: " Ulrich Hecht (2): rcar-vin: implem

[PATCH v9 1/2] rcar-vin: implement EDID control ioctls

2016-09-15 Thread Ulrich Hecht
Adds G_EDID and S_EDID. Signed-off-by: Ulrich Hecht Acked-by: Niklas Söderlund --- drivers/media/platform/rcar-vin/rcar-v4l2.c | 48 + drivers/media/platform/rcar-vin/rcar-vin.h | 2 ++ 2 files changed, 50 insertions(+) diff --git a/drivers/media/platform/rcar

[PATCH v9 2/2] media: rcar-vin: use sink pad index for DV timings

2016-09-15 Thread Ulrich Hecht
Signed-off-by: Ulrich Hecht --- drivers/media/platform/rcar-vin/rcar-v4l2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/rcar-vin/rcar-v4l2.c b/drivers/media/platform/rcar-vin/rcar-v4l2.c index f35005c..2bbe6d4 100644 --- a/drivers/media

[PATCH 0/2] media: adv7604: fix default-input property inconsistencies

2016-09-16 Thread Ulrich Hecht
Hi! This is a fix for the inconsistency in the adv7604 bindings regarding the default-input property, clarifying that it should be a property of the device, not the endpoint, and a patch to implement it. CU Uli Ulrich Hecht (2): media: adv7604: fix bindings inconsistency for default-input

[PATCH 1/2] media: adv7604: fix bindings inconsistency for default-input

2016-09-16 Thread Ulrich Hecht
The text states that default-input is an endpoint property, but in the example it is a device property. The example makes more sense. Signed-off-by: Ulrich Hecht --- Documentation/devicetree/bindings/media/i2c/adv7604.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a

[PATCH 2/2] media: adv7604: automatic "default-input" selection

2016-09-16 Thread Ulrich Hecht
Towle . Signed-off-by: Ulrich Hecht Signed-off-by: Hans Verkuil --- drivers/media/i2c/adv7604.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/media/i2c/adv7604.c b/drivers/media/i2c/adv7604.c index 4003831..055c9df 100644 --- a/drivers/media/i2c/adv7604.c +++

[PATCH 2/2] ARM: dts: koelsch: add HDMI input

2016-09-16 Thread Ulrich Hecht
From: Hans Verkuil Add support in the dts for the HDMI input. Based on the Lager dts patch from Ulrich Hecht. Signed-off-by: Hans Verkuil [uli: removed "renesas," prefixes from pfc nodes] Signed-off-by: Ulrich Hecht --- arch/arm/boot/dts/r8a7791-koelsc

[PATCH 1/3] ARM: dts: r8a7793: Enable VIN0, VIN1

2016-09-16 Thread Ulrich Hecht
Signed-off-by: Ulrich Hecht --- arch/arm/boot/dts/r8a7793.dtsi | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/r8a7793.dtsi b/arch/arm/boot/dts/r8a7793.dtsi index 8d02aac..0898668 100644 --- a/arch/arm/boot/dts/r8a7793.dtsi +++ b/arch/arm/boot/dts

[PATCH 0/3] r8a7793 Gose video input support

2016-09-16 Thread Ulrich Hecht
git/log/?h=rcar) plus the "media: adv7604: automatic "default-input" selection" patch. CU Uli Ulrich Hecht (3): ARM: dts: r8a7793: Enable VIN0, VIN1 ARM: dts: gose: add HDMI input ARM: dts: gose: add composite video input arch/arm/

[PATCH 1/2] ARM: dts: lager: Add entries for VIN HDMI input support

2016-09-16 Thread Ulrich Hecht
t, renamed endpoint, merged default-input] Signed-off-by: Ulrich Hecht --- arch/arm/boot/dts/r8a7790-lager.dts | 39 + 1 file changed, 39 insertions(+) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index 52b56fc..fc9d

[PATCH 0/2] Renesas Lager/Koelsch HDMI input

2016-09-16 Thread Ulrich Hecht
Hi! This series enables HDMI input on the Lager and Koelsch boards. It sits on renesas-devel-20160913-v4.8-rc6 and also applies to the media tree. Testing this on a Lager board with v4l2-compliance on top of Hans's R-Car branch (https://git.linuxtv.org/hverkuil/media_tree.git/log/?h=rcar) with "m

[PATCH 3/3] ARM: dts: gose: add composite video input

2016-09-16 Thread Ulrich Hecht
Signed-off-by: Ulrich Hecht --- arch/arm/boot/dts/r8a7793-gose.dts | 36 1 file changed, 36 insertions(+) diff --git a/arch/arm/boot/dts/r8a7793-gose.dts b/arch/arm/boot/dts/r8a7793-gose.dts index e22d63c..981f0fe 100644 --- a/arch/arm/boot/dts/r8a7793

[PATCH 2/3] ARM: dts: gose: add HDMI input

2016-09-16 Thread Ulrich Hecht
Identical to the setup on Lager. Signed-off-by: Ulrich Hecht --- arch/arm/boot/dts/r8a7793-gose.dts | 41 ++ 1 file changed, 41 insertions(+) diff --git a/arch/arm/boot/dts/r8a7793-gose.dts b/arch/arm/boot/dts/r8a7793-gose.dts index 90af186..e22d63c 100644

Re: [PATCH 2/2] media: adv7604: automatic "default-input" selection

2016-09-22 Thread Ulrich Hecht
On Fri, Sep 16, 2016 at 11:57 AM, Laurent Pinchart wrote: > Hi Ulrich, > > Thank you for the patch. Thanks for your review. > > On Friday 16 Sep 2016 11:39:42 Ulrich Hecht wrote: >> Fall back to input 0 if "default-input" property is not present. >> >

[PATCH v2 1/2] media: adv7604: fix bindings inconsistency for default-input

2016-09-22 Thread Ulrich Hecht
The text states that default-input is an endpoint property, but in the example it is a device property. The default input is a property of the chip, not of a particular port, so the example makes more sense. Signed-off-by: Ulrich Hecht Reviewed-by: Laurent Pinchart --- Documentation

[PATCH v2 2/2] media: adv7604: automatic "default-input" selection

2016-09-22 Thread Ulrich Hecht
Documentation states that the "default-input" property should reside directly in the node of the device. This adjusts the parsing to make the implementation consistent with the documentation. Based on patch by William Towle . Signed-off-by: Ulrich Hecht Signed-off-by: Ha

[PATCH v2 0/2] media: adv7604: fix default-input property inconsistencies

2016-09-22 Thread Ulrich Hecht
et if the default-input property is missing. - The old code for parsing the property in the endpoint node can be removed. - The rationale for the change should go in the commit message. CU Uli Ulrich Hecht (2): media: adv7604: fix bindings inconsistency for default-input media: adv7604: auto

[PATCH v2 0/2] Renesas Lager/Koelsch HDMI input

2016-10-18 Thread Ulrich Hecht
Hi! This series enables HDMI input on the Lager and Koelsch boards. It sits on renesas-next-20161017-v4.9-rc1. I have tried to address all concerns raised by reviewers (correctly, I hope), see below for details. CU Uli Changes since v1: - modeled decoder inputs/outputs and connectors - removed

[PATCH v2 1/2] ARM: dts: lager: Add entries for VIN HDMI input support

2016-10-18 Thread Ulrich Hecht
t, renamed endpoint, merged default-input] Signed-off-by: Ulrich Hecht --- arch/arm/boot/dts/r8a7790-lager.dts | 66 +++-- 1 file changed, 64 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts ind

[PATCH v2 2/2] ARM: dts: koelsch: add HDMI input

2016-10-18 Thread Ulrich Hecht
From: Hans Verkuil Add support in the dts for the HDMI input. Based on the Lager dts patch from Ultich Hecht. Signed-off-by: Hans Verkuil [uli: removed "renesas," prefixes from pfc nodes] Signed-off-by: Ulrich Hecht --- arch/arm/boot/dts/r8a7791-koelsc

[PATCH v2 3/3] ARM: dts: gose: add composite video input

2016-10-18 Thread Ulrich Hecht
Signed-off-by: Ulrich Hecht --- arch/arm/boot/dts/r8a7793-gose.dts | 36 1 file changed, 36 insertions(+) diff --git a/arch/arm/boot/dts/r8a7793-gose.dts b/arch/arm/boot/dts/r8a7793-gose.dts index a47ea4b..2606021 100644 --- a/arch/arm/boot/dts/r8a7793

[PATCH v2 2/3] ARM: dts: gose: add HDMI input

2016-10-18 Thread Ulrich Hecht
Identical to the setup on Lager. Signed-off-by: Ulrich Hecht --- arch/arm/boot/dts/r8a7793-gose.dts | 64 ++ 1 file changed, 64 insertions(+) diff --git a/arch/arm/boot/dts/r8a7793-gose.dts b/arch/arm/boot/dts/r8a7793-gose.dts index dc311eb..a47ea4b 100644

[PATCH v2 1/3] ARM: dts: r8a7793: Enable VIN0-VIN2

2016-10-18 Thread Ulrich Hecht
Signed-off-by: Ulrich Hecht --- arch/arm/boot/dts/r8a7793.dtsi | 27 +++ 1 file changed, 27 insertions(+) diff --git a/arch/arm/boot/dts/r8a7793.dtsi b/arch/arm/boot/dts/r8a7793.dtsi index a7d11b9..629d3d6 100644 --- a/arch/arm/boot/dts/r8a7793.dtsi +++ b/arch/arm/boot

[PATCH v2 0/3] r8a7793 Gose video input support

2016-10-18 Thread Ulrich Hecht
- modeled HDMI decoder input/output and connector - added "renesas,rcar-gen2-vin" compat strings - removed unnecessary "remote" node and aliases - set ADV7612 interrupt to GP4_2 Ulrich Hecht (3): ARM: dts: r8a7793: Enable VIN0-VIN2 ARM: dts: gose: add HDMI input ARM: dts:

Re: [PATCH v2 6/8] rcar-vin: Merge helpers dealing with powering the parallel subdevice

2019-05-16 Thread Ulrich Hecht
rvdata(file); > int ret; > > - ret = rvin_power_on(vin); > + ret = rvin_power_parallel(vin, true); > if (ret < 0) > return ret; > > @@ -844,7 +834,7 @@ static int rvin_release(struct file *file) >* Then de-initialize hw m

Re: [PATCH] dt-bindings: rcar-{csi2,vin}: Rename bindings documentation files

2019-05-16 Thread Ulrich Hecht
,rcar-csi2.txt > -F: Documentation/devicetree/bindings/media/rcar_vin.txt > +F: Documentation/devicetree/bindings/media/renesas,csi2.txt > +F: Documentation/devicetree/bindings/media/renesas,vin.txt > F: drivers/media/platform/rcar-vin/ > > MEDIA DRIVERS FOR RENESAS - VSP1 > -- > 2.21.0 > Reviewed-by: Ulrich Hecht CU Uli

Re: [PATCH] rcar-csi2: Fix coccinelle warning for PTR_ERR_OR_ZERO()

2019-05-16 Thread Ulrich Hecht
return ret; > > priv->rstc = devm_reset_control_get(&pdev->dev, NULL); > - if (IS_ERR(priv->rstc)) > - return PTR_ERR(priv->rstc); > > - return 0; > + return PTR_ERR_OR_ZERO(priv->rstc); > } > > static const struct rcar_csi2_info rcar_csi2_info_r8a7795 = { > -- > 2.21.0 > Reviewed-by: Ulrich Hecht CU Uli

Re: [PATCH 1/3] rcar-vin: Rename VNDMR_DTMD_ARGB1555 to VNDMR_DTMD_ARGB

2019-05-16 Thread Ulrich Hecht
e; > break; > case V4L2_PIX_FMT_XRGB555: > - dmr = VNDMR_DTMD_ARGB1555; > + dmr = VNDMR_DTMD_ARGB; > break; > case V4L2_PIX_FMT_RGB565: > dmr = 0; > -- > 2.21.0 > Reviewed-by: Ulrich Hecht CU Uli

Re: [PATCH 3/3] rcar-csi2: Move setting of Field Detection Control Register

2019-02-18 Thread Ulrich Hecht
INKCNT_ICLK_NONSTOP); > + rcsi2_write(priv, FLD_REG, fld); > rcsi2_write(priv, PHYCNT_REG, phycnt | PHYCNT_SHUTDOWNZ); > rcsi2_write(priv, PHYCNT_REG, phycnt | PHYCNT_SHUTDOWNZ | PHYCNT_RSTZ); Reviewed-by: Ulrich Hecht CU Uli

Re: [PATCH 1/3] rcar-csi2: Update V3M and E3 start procedure

2019-02-18 Thread Ulrich Hecht
{ .data = 0xee, .code = 0x34 }, > + { .data = 0xee, .code = 0x44 }, > + { .data = 0xee, .code = 0x54 }, > + { .data = 0xee, .code = 0x84 }, > + { .data = 0xee, .code = 0x94 }, > { /* sentinel */ }, > }; Reviewed-by: Ulrich Hecht CU Uli

Re: [PATCH 2/3] rcar-csi2: Update start procedure for H3 ES2

2019-02-18 Thread Ulrich Hecht
nk it would be better if that were stated explicitly somewhere. With that fixed: Reviewed-by: Ulrich Hecht CU Uli

[PATCH v2] adv7604: add direct interrupt handling

2015-12-22 Thread Ulrich Hecht
When probed from device tree, the i2c client driver can handle the interrupt on its own. Signed-off-by: Ulrich Hecht Reviewed-by: Laurent Pinchart --- This revision implements the suggested style changes and drops the IRQF_TRIGGER_LOW flag, which is handled in the device tree. CU Uli

[PATCH v2 0/2] adv7604: .get_selection support

2015-12-22 Thread Ulrich Hecht
with the rcar_vin driver together with Hans Verkuil's "v4l2: remove g/s_crop and cropcap from video ops" patch: https://git.linuxtv.org/hverkuil/media_tree.git/commit/?h=rmcrop&id=9ff32166c29d1323db090d638da27ea652d1d4d8 CU Uli Ulrich Hecht (2): media: adv7604: implement ge

[PATCH v2 1/2] media: adv7604: implement get_selection

2015-12-22 Thread Ulrich Hecht
The rcar_vin driver relies on this. Signed-off-by: Ulrich Hecht --- drivers/media/i2c/adv7604.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/media/i2c/adv7604.c b/drivers/media/i2c/adv7604.c index be5980c..8ad5c28 100644 --- a/drivers/media/i2c/adv7604.c

[PATCH v2 2/2] media: adv7604: update timings on change of input signal

2015-12-22 Thread Ulrich Hecht
Without this, .get_selection will always return the boot-time state. Signed-off-by: Ulrich Hecht --- drivers/media/i2c/adv7604.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/media/i2c/adv7604.c b/drivers/media/i2c/adv7604.c index 8ad5c28..dcd659b 100644 --- a/drivers

[PATCH v2 0/9] Lager board HDMI input support

2016-03-02 Thread Ulrich Hecht
i Ian Molton (1): ARM: shmobile: lager dts: specify default-input for ADV7612 Laurent Pinchart (1): v4l: subdev: Add pad config allocator and init Ulrich Hecht (5): adv7604: fix SPA register location for ADV7612 media: rcar_vin: Use correct pad number in try_fmt media: rcar-vin: pad-aw

[PATCH v2 1/9] v4l: subdev: Add pad config allocator and init

2016-03-02 Thread Ulrich Hecht
From: Laurent Pinchart Add a new subdev operation to initialize a subdev pad config array, and a helper function to allocate and initialize the array. This can be used by bridge drivers to implement try format based on subdev pad operations. Signed-off-by: Laurent Pinchart Acked-by: Vaibhav Hir

[PATCH v2 4/9] media: rcar_vin: Use correct pad number in try_fmt

2016-03-02 Thread Ulrich Hecht
Fix rcar_vin_try_fmt's use of an inappropriate pad number when calling the subdev set_fmt function - for the ADV7612, IDs should be non-zero. Signed-off-by: William Towle Reviewed-by: Rob Taylor Acked-by: Hans Verkuil [uli: adapted to rcar-vin rewrite] Signed-off-by: Ulrich Hecht --- dr

[PATCH v2 6/9] media: rcar-vin: add DV timings support

2016-03-02 Thread Ulrich Hecht
Adds ioctls DV_TIMINGS_CAP, ENUM_DV_TIMINGS, G_DV_TIMINGS, S_DV_TIMINGS, and QUERY_DV_TIMINGS. Signed-off-by: Ulrich Hecht --- drivers/media/platform/rcar-vin/rcar-dma.c | 69 ++ 1 file changed, 69 insertions(+) diff --git a/drivers/media/platform/rcar-vin/rcar

[PATCH v2 3/9] adv7604: fix SPA register location for ADV7612

2016-03-02 Thread Ulrich Hecht
SPA location LSB register is at 0x70. Signed-off-by: Ulrich Hecht --- drivers/media/i2c/adv7604.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/media/i2c/adv7604.c b/drivers/media/i2c/adv7604.c index 2097c48..1680c0e 100644 --- a/drivers/media/i2c/adv7604.c +++ b

[PATCH v2 2/9] media: adv7604: automatic "default-input" selection

2016-03-02 Thread Ulrich Hecht
Signed-off-by: William Towle Signed-off-by: Ulrich Hecht --- drivers/media/i2c/adv7604.c | 24 +--- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/drivers/media/i2c/adv7604.c b/drivers/media/i2c/adv7604.c index f8dd750..2097c48 100644 --- a/drivers/media/i2

[PATCH v2 5/9] media: rcar-vin: pad-aware driver initialisation

2016-03-02 Thread Ulrich Hecht
CONFIG_MEDIA_CONTROLLER, in line with requirements for building the drivers associated with it. Signed-off-by: William Towle Signed-off-by: Rob Taylor [uli: adapted to rcar-vin rewrite] Signed-off-by: Ulrich Hecht --- drivers/media/platform/rcar-vin/rcar-dma.c | 16 drivers/media/platform

[PATCH v2 7/9] media: rcar-vin: initialize EDID data

2016-03-02 Thread Ulrich Hecht
Initializes the decoder subdevice with a fixed EDID blob. Signed-off-by: Ulrich Hecht --- drivers/media/platform/rcar-vin/rcar-dma.c | 46 ++ 1 file changed, 46 insertions(+) diff --git a/drivers/media/platform/rcar-vin/rcar-dma.c b/drivers/media/platform/rcar-vin

[PATCH v2 8/9] ARM: shmobile: lager dts: Add entries for VIN HDMI input support

2016-03-02 Thread Ulrich Hecht
From: William Towle Add DT entries for vin0, vin0_pins, and adv7612. Signed-off-by: William Towle Signed-off-by: Rob Taylor [uli: added interrupt, renamed endpoint] Signed-off-by: Ulrich Hecht --- arch/arm/boot/dts/r8a7790-lager.dts | 40 - 1 file changed

[PATCH v2 9/9] ARM: shmobile: lager dts: specify default-input for ADV7612

2016-03-02 Thread Ulrich Hecht
off-by: William Towle Signed-off-by: Ulrich Hecht --- arch/arm/boot/dts/r8a7790-lager.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index a5f727c..eed0974 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/ar

[PATCH v3 0/7] Lager board HDMI input support

2016-04-14 Thread Ulrich Hecht
o one patch and adjusts its subject line slightly. CU Uli Changes since v2: - rebased on top of rcar-vin driver v4 - removed "adv7604: fix SPA register location for ADV7612" (picked up) - changed prefix of dts patch to "ARM: dts: lager: " Laurent Pinchart (1): v4l: subdev: Add pa

[PATCH v3 2/7] media: adv7604: automatic "default-input" selection

2016-04-14 Thread Ulrich Hecht
h this. Signed-off-by: William Towle Signed-off-by: Ulrich Hecht --- drivers/media/i2c/adv7604.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/media/i2c/adv7604.c b/drivers/media/i2c/adv7604.c index 41a1bfc..d722c16 100644 --- a/drivers/media/i2

[PATCH v3 1/7] v4l: subdev: Add pad config allocator and init

2016-04-14 Thread Ulrich Hecht
From: Laurent Pinchart Add a new subdev operation to initialize a subdev pad config array, and a helper function to allocate and initialize the array. This can be used by bridge drivers to implement try format based on subdev pad operations. Signed-off-by: Laurent Pinchart Acked-by: Vaibhav Hir

[PATCH v3 7/7] ARM: dts: lager: Add entries for VIN HDMI input support

2016-04-14 Thread Ulrich Hecht
t, renamed endpoint, merged default-input] Signed-off-by: Ulrich Hecht --- arch/arm/boot/dts/r8a7790-lager.dts | 41 - 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts ind

[PATCH v3 6/7] media: rcar-vin: initialize EDID data

2016-04-14 Thread Ulrich Hecht
Initializes the decoder subdevice with a fixed EDID blob. Signed-off-by: Ulrich Hecht --- drivers/media/platform/rcar-vin/rcar-v4l2.c | 46 + 1 file changed, 46 insertions(+) diff --git a/drivers/media/platform/rcar-vin/rcar-v4l2.c b/drivers/media/platform/rcar-vin

[PATCH v3 4/7] media: rcar-vin: pad-aware driver initialisation

2016-04-14 Thread Ulrich Hecht
CONFIG_MEDIA_CONTROLLER, in line with requirements for building the drivers associated with it. Signed-off-by: William Towle Signed-off-by: Rob Taylor [uli: adapted to rcar-vin rewrite] Signed-off-by: Ulrich Hecht --- drivers/media/platform/rcar-vin/rcar-v4l2.c | 16 drivers/media/platform

[PATCH v3 5/7] media: rcar-vin: add DV timings support

2016-04-14 Thread Ulrich Hecht
Adds ioctls DV_TIMINGS_CAP, ENUM_DV_TIMINGS, G_DV_TIMINGS, S_DV_TIMINGS, and QUERY_DV_TIMINGS. Signed-off-by: Ulrich Hecht --- drivers/media/platform/rcar-vin/rcar-v4l2.c | 69 + 1 file changed, 69 insertions(+) diff --git a/drivers/media/platform/rcar-vin/rcar-v4l2

[PATCH v3 3/7] media: rcar_vin: Use correct pad number in try_fmt

2016-04-14 Thread Ulrich Hecht
Fix rcar_vin_try_fmt's use of an inappropriate pad number when calling the subdev set_fmt function - for the ADV7612, IDs should be non-zero. Signed-off-by: William Towle Reviewed-by: Rob Taylor Acked-by: Hans Verkuil [uli: adapted to rcar-vin rewrite] Signed-off-by: Ulrich Hecht --- dr

Re: [PATCH] r8a7791-koelsch.dts: add HDMI input

2016-04-20 Thread Ulrich Hecht
On Mon, Apr 18, 2016 at 11:38 AM, Hans Verkuil wrote: > Add support in the dts for the HDMI input. Based on the Lager dts > patch from Ultich Hecht. > > Signed-off-by: Hans Verkuil > --- > Ulrich, can you add this patch to your r-car HDMI patch series? Can do. CU Uli -- To unsubscribe from this

Re: [PATCH v3 5/7] media: rcar-vin: add DV timings support

2016-04-20 Thread Ulrich Hecht
On Mon, Apr 18, 2016 at 12:04 PM, Hans Verkuil wrote: > Hi Ulrich, > > This isn't right: this just overwrites the adv7180 input with an HDMI input. > > I assume the intention is to have support for both adv7180 and HDMI input and > to use VIDIOC_S_INPUT to select between the two. I'm not quite su

Re: [PATCH v3 6/7] media: rcar-vin: initialize EDID data

2016-04-20 Thread Ulrich Hecht
On Mon, Apr 18, 2016 at 12:13 PM, Hans Verkuil wrote: > Where does this EDID come from? I'm just wondering if it has been > adjusted for the capabilities of the adv. It's from the cobalt driver, with only the vendor ID changed. CU Uli -- To unsubscribe from this list: send the line "unsubscribe

[PATCH] media: adv7180: add missing adv7180cp, adv7180st i2c device IDs

2017-07-03 Thread Ulrich Hecht
Fixes a crash on Renesas R8A7793 Gose board that uses these "compatible" entries. Signed-off-by: Ulrich Hecht --- drivers/media/i2c/adv7180.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/i2c/adv7180.c b/drivers/media/i2c/adv7180.c index 78de7dd..3df28f2 10

Re: [PATCH v3 2/4] media: adv7180: add adv7180cp, adv7180st compatible strings

2017-07-03 Thread Ulrich Hecht
On Fri, Jun 30, 2017 at 11:19 AM, Geert Uytterhoeven wrote: > Hi Ulrich, > > On Fri, May 19, 2017 at 3:07 PM, Ulrich Hecht > wrote: >> Used to differentiate between models with 3 and 6 inputs. >> >> Signed-off-by: Ulrich Hecht >> --- >> drivers/media/

[PATCH v3 0/4] r8a7793 Gose video input support

2017-05-19 Thread Ulrich Hecht
- modeled HDMI decoder input/output and connector - added "renesas,rcar-gen2-vin" compat strings - removed unnecessary "remote" node and aliases - set ADV7612 interrupt to GP4_2 Ulrich Hecht (4): ARM: dts: gose: add HDMI input media: adv7180: add adv7180cp, adv7180st c

[PATCH v3 4/4] ARM: dts: gose: add composite video input

2017-05-19 Thread Ulrich Hecht
Adds VIN, decoder and connector. Signed-off-by: Ulrich Hecht --- arch/arm/boot/dts/r8a7793-gose.dts | 59 ++ 1 file changed, 59 insertions(+) diff --git a/arch/arm/boot/dts/r8a7793-gose.dts b/arch/arm/boot/dts/r8a7793-gose.dts index 30f0835..76e3aca 100644

[PATCH v3 2/4] media: adv7180: add adv7180cp, adv7180st compatible strings

2017-05-19 Thread Ulrich Hecht
Used to differentiate between models with 3 and 6 inputs. Signed-off-by: Ulrich Hecht --- drivers/media/i2c/adv7180.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/i2c/adv7180.c b/drivers/media/i2c/adv7180.c index bdbbf8c..78de7dd 100644 --- a/drivers/media/i2c/adv7180.c

[PATCH v3 3/4] media: adv7180: Add adv7180cp, adv7180st bindings

2017-05-19 Thread Ulrich Hecht
To differentiate between two classes of chip packages that have different numbers of input ports. Signed-off-by: Ulrich Hecht --- Documentation/devicetree/bindings/media/i2c/adv7180.txt | 15 +++ 1 file changed, 15 insertions(+) diff --git a/Documentation/devicetree/bindings/media

[PATCH v3 1/4] ARM: dts: gose: add HDMI input

2017-05-19 Thread Ulrich Hecht
Identical to the setup on Koelsch. Signed-off-by: Ulrich Hecht Reviewed-by: Laurent Pinchart --- arch/arm/boot/dts/r8a7793-gose.dts | 68 -- 1 file changed, 66 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/r8a7793-gose.dts b/arch/arm/boot

[PATCH v4 0/8] Lager/Koelsch board HDMI input support

2016-05-11 Thread Ulrich Hecht
iver v4 - removed "adv7604: fix SPA register location for ADV7612" (picked up) - changed prefix of dts patch to "ARM: dts: lager: " Hans Verkuil (1): r8a7791-koelsch.dts: add HDMI input Laurent Pinchart (1): v4l: subdev: Add pad config allocator and init Ulrich Hecht (4)

[PATCH v4 4/8] media: rcar-vin: pad-aware driver initialisation

2016-05-11 Thread Ulrich Hecht
CONFIG_MEDIA_CONTROLLER, in line with requirements for building the drivers associated with it. Signed-off-by: William Towle Signed-off-by: Rob Taylor [uli: adapted to rcar-vin rewrite] Signed-off-by: Ulrich Hecht --- drivers/media/platform/rcar-vin/rcar-v4l2.c | 16 drivers/media/platform

[PATCH v4 6/8] media: rcar-vin: initialize EDID data

2016-05-11 Thread Ulrich Hecht
Initializes the decoder subdevice with a fixed EDID blob. Signed-off-by: Ulrich Hecht --- drivers/media/platform/rcar-vin/rcar-v4l2.c | 46 + 1 file changed, 46 insertions(+) diff --git a/drivers/media/platform/rcar-vin/rcar-v4l2.c b/drivers/media/platform/rcar-vin

[PATCH v4 3/8] media: rcar_vin: Use correct pad number in try_fmt

2016-05-11 Thread Ulrich Hecht
Fix rcar_vin_try_fmt's use of an inappropriate pad number when calling the subdev set_fmt function - for the ADV7612, IDs should be non-zero. Signed-off-by: William Towle Reviewed-by: Rob Taylor Acked-by: Hans Verkuil [uli: adapted to rcar-vin rewrite] Signed-off-by: Ulrich Hecht --- dr

[PATCH v4 1/8] v4l: subdev: Add pad config allocator and init

2016-05-11 Thread Ulrich Hecht
From: Laurent Pinchart Add a new subdev operation to initialize a subdev pad config array, and a helper function to allocate and initialize the array. This can be used by bridge drivers to implement try format based on subdev pad operations. Signed-off-by: Laurent Pinchart Acked-by: Vaibhav Hir

[PATCH v4 8/8] r8a7791-koelsch.dts: add HDMI input

2016-05-11 Thread Ulrich Hecht
From: Hans Verkuil Add support in the dts for the HDMI input. Based on the Lager dts patch from Ultich Hecht. Signed-off-by: Hans Verkuil [uli: removed "renesas," prefixes from pfc nodes] Signed-off-by: Ulrich Hecht --- arch/arm/boot/dts/r8a7791-koelsc

[PATCH v4 2/8] media: adv7604: automatic "default-input" selection

2016-05-11 Thread Ulrich Hecht
h this. Signed-off-by: William Towle Signed-off-by: Ulrich Hecht --- drivers/media/i2c/adv7604.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/media/i2c/adv7604.c b/drivers/media/i2c/adv7604.c index 41a1bfc..d722c16 100644 --- a/drivers/media/i2

[PATCH v4 5/8] media: rcar-vin: add DV timings support

2016-05-11 Thread Ulrich Hecht
Adds ioctls DV_TIMINGS_CAP, ENUM_DV_TIMINGS, G_DV_TIMINGS, S_DV_TIMINGS, and QUERY_DV_TIMINGS. Signed-off-by: Ulrich Hecht --- drivers/media/platform/rcar-vin/rcar-v4l2.c | 82 + 1 file changed, 82 insertions(+) diff --git a/drivers/media/platform/rcar-vin/rcar-v4l2

[PATCH v4 7/8] ARM: dts: lager: Add entries for VIN HDMI input support

2016-05-11 Thread Ulrich Hecht
t, renamed endpoint, merged default-input] Signed-off-by: Ulrich Hecht --- arch/arm/boot/dts/r8a7790-lager.dts | 39 + 1 file changed, 39 insertions(+) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index 749ba02..7e53

[PATCH v5 4/4] rcar-vin: implement EDID control ioctls

2016-07-06 Thread Ulrich Hecht
Adds G_EDID and S_EDID. Signed-off-by: Ulrich Hecht --- drivers/media/platform/rcar-vin/rcar-v4l2.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/media/platform/rcar-vin/rcar-v4l2.c b/drivers/media/platform/rcar-vin/rcar-v4l2.c index 396eabc..bd8f14c 100644

[PATCH v5 1/4] media: adv7604: automatic "default-input" selection

2016-07-06 Thread Ulrich Hecht
or adv7612. Hence, also adjust the parsing to make the implementation consistent with this. Based on patch by William Towle . Signed-off-by: Ulrich Hecht --- drivers/media/i2c/adv7604.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/media/i2c/adv7604.c b/drivers/med

[PATCH v5 2/4] ARM: dts: lager: Add entries for VIN HDMI input support

2016-07-06 Thread Ulrich Hecht
t, renamed endpoint, merged default-input] Signed-off-by: Ulrich Hecht --- arch/arm/boot/dts/r8a7790-lager.dts | 41 - 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts ind

[PATCH v5 3/4] ARM: dts: koelsch: add HDMI input

2016-07-06 Thread Ulrich Hecht
From: Hans Verkuil Add support in the dts for the HDMI input. Based on the Lager dts patch from Ultich Hecht. Signed-off-by: Hans Verkuil [uli: removed "renesas," prefixes from pfc nodes] Signed-off-by: Ulrich Hecht --- arch/arm/boot/dts/r8a7791-koelsc

[PATCH v5 0/4] Lager/Koelsch board HDMI input support

2016-07-06 Thread Ulrich Hecht
ngs(): update vin->format - add Koelsch support Changes since v2: - rebased on top of rcar-vin driver v4 - removed "adv7604: fix SPA register location for ADV7612" (picked up) - changed prefix of dts patch to "ARM: dts: lager: " Hans Verkuil (1): ARM: dts: koelsch: add HDMI input

[PATCH v1.5 5/6] v4l: vsp1: Provide display list and VB2 queue with FCP device

2016-12-09 Thread Ulrich Hecht
Prevents IPMMU trap during boot on r8a7795/6 Salvator-X boards: ipmmu-vmsa febd.mmu: Unhandled faut: status 0x0101 iova 0x7f09a000 Code by Magnus Damm. Signed-off-by: Ulrich Hecht --- drivers/media/platform/vsp1/vsp1_dl.c| 12 +--- drivers/media/platform/vsp1/vsp1_video.c

[PATCH v1.5 4/6] drm: rcar-du: Map memory through the VSP device

2016-12-09 Thread Ulrich Hecht
From: Laurent Pinchart For planes handled by a VSP instance, map the framebuffer memory through the VSP to ensure proper IOMMU handling. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/rcar-du/rcar_du_vsp.c | 74 --- drivers/gpu/drm/rcar-du/rcar_du_vsp.h |

[PATCH v1.5 3/6] v4l: vsp1: Add API to map and unmap DRM buffers through the VSP

2016-12-09 Thread Ulrich Hecht
From: Laurent Pinchart The display buffers must be mapped for DMA through the device that performs memory access. Expose an API to map and unmap memory through the VSP device to be used by the DU. Signed-off-by: Laurent Pinchart --- drivers/media/platform/vsp1/vsp1_drm.c | 24 +

[PATCH v1.5 6/6] arm64: dts: r8a7796: Connect FCP devices to IPMMU

2016-12-09 Thread Ulrich Hecht
Signed-off-by: Ulrich Hecht --- arch/arm64/boot/dts/renesas/r8a7796.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a7796.dtsi b/arch/arm64/boot/dts/renesas/r8a7796.dtsi index 52e81bb..f5496d4 100644 --- a/arch/arm64/boot/dts/renesas/r8a7796.dtsi +++ b

[PATCH v1.5 2/6] v4l: rcar-fcp: Add an API to retrieve the FCP device

2016-12-09 Thread Ulrich Hecht
From: Laurent Pinchart The new rcar_fcp_get_device() function retrieves the struct device related to the FCP device. This is useful to handle DMA mapping through the right device. Signed-off-by: Laurent Pinchart --- drivers/media/platform/rcar-fcp.c | 6 ++ include/media/rcar-fcp.h

[PATCH v1.5 1/6] v4l: rcar-fcp: Don't get/put module reference

2016-12-09 Thread Ulrich Hecht
From: Laurent Pinchart Direct callers of the FCP API hold a reference to the FCP module due to module linkage, there's no need to take another one manually. Take a reference to the device instead to ensure that it won't disappear behind the caller's back. Signed-off-by: Laurent Pinchart --- dr

[PATCH v1.5 0/6] R-Car DU: Fix IOMMU operation when connected to VSP

2016-12-09 Thread Ulrich Hecht
ve the FCP device v4l: vsp1: Add API to map and unmap DRM buffers through the VSP drm: rcar-du: Map memory through the VSP device Ulrich Hecht (2): v4l: vsp1: Provide display list and VB2 queue with FCP device arm64: dts: r8a7796: Connect FCP devices to IPMMU arch/arm64/boot/dts/renesas/r8

[PATCH v6 1/4] media: adv7604: automatic "default-input" selection

2016-07-22 Thread Ulrich Hecht
or adv7612. Hence, also adjust the parsing to make the implementation consistent with this. Based on patch by William Towle . Signed-off-by: Ulrich Hecht --- drivers/media/i2c/adv7604.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/media/i2c/adv7604.c b/drivers/med

[PATCH v6 4/4] rcar-vin: implement EDID control ioctls

2016-07-22 Thread Ulrich Hecht
Adds G_EDID and S_EDID. Signed-off-by: Ulrich Hecht --- drivers/media/platform/rcar-vin/rcar-v4l2.c | 33 + 1 file changed, 33 insertions(+) diff --git a/drivers/media/platform/rcar-vin/rcar-v4l2.c b/drivers/media/platform/rcar-vin/rcar-v4l2.c index 396eabc

[PATCH v6 0/4] Lager/Koelsch board HDMI input support

2016-07-22 Thread Ulrich Hecht
: " Hans Verkuil (1): ARM: dts: koelsch: add HDMI input Ulrich Hecht (2): media: adv7604: automatic "default-input" selection rcar-vin: implement EDID control ioctls William Towle (1): ARM: dts: lager: Add entries for VIN HDMI input support arch/arm/boo

[PATCH v6 3/4] ARM: dts: koelsch: add HDMI input

2016-07-22 Thread Ulrich Hecht
From: Hans Verkuil Add support in the dts for the HDMI input. Based on the Lager dts patch from Ulrich Hecht. Signed-off-by: Hans Verkuil [uli: removed "renesas," prefixes from pfc nodes] Signed-off-by: Ulrich Hecht --- arch/arm/boot/dts/r8a7791-koelsc

[PATCH v6 2/4] ARM: dts: lager: Add entries for VIN HDMI input support

2016-07-22 Thread Ulrich Hecht
t, renamed endpoint, merged default-input] Signed-off-by: Ulrich Hecht --- arch/arm/boot/dts/r8a7790-lager.dts | 39 + 1 file changed, 39 insertions(+) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index ffc2f4e..16e8

Re: [PATCH v6 4/4] rcar-vin: implement EDID control ioctls

2016-08-15 Thread Ulrich Hecht
On Sat, Aug 13, 2016 at 3:30 PM, Hans Verkuil wrote: > On 07/22/2016 11:09 AM, Ulrich Hecht wrote: >> Adds G_EDID and S_EDID. >> >> Signed-off-by: Ulrich Hecht >> --- >> drivers/media/platform/rcar-vin/rcar-v4l2.c | 33 >>

Re: [PATCH v6 4/4] rcar-vin: implement EDID control ioctls

2016-08-15 Thread Ulrich Hecht
On Mon, Aug 15, 2016 at 10:48 AM, Hans Verkuil wrote: > On 08/15/2016 10:37 AM, Ulrich Hecht wrote: >> On Sat, Aug 13, 2016 at 3:30 PM, Hans Verkuil wrote: >>> On 07/22/2016 11:09 AM, Ulrich Hecht wrote: >>>> Adds G_EDID and S_EDID. >>>> >>>&g

Re: [PATCH/RFT 0/7] HDMI capture on Lager

2015-10-27 Thread Ulrich Hecht
On Mon, Oct 19, 2015 at 4:54 PM, Hans Verkuil wrote: > On 10/19/2015 04:07 PM, Ulrich Hecht wrote: >> This series is supposed to serve as a basis for testing the HDMI input on >> the Lager board. It is based on the series by William Towle, dropping the >> patches that have s

[PATCH] media: adv7180: increase delay after reset to 5ms

2015-11-10 Thread Ulrich Hecht
takes approximately 2 ms. However, it is recommended to wait 5 ms before any further I2C writes are performed." Signed-off-by: Ulrich Hecht --- drivers/media/i2c/adv7180.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c/adv7180.c b/drivers/media/i2c/adv7180.c ind

  1   2   >