public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Renesas Lager/Koelsch HDMI input
@ 2016-10-18 15:01 Ulrich Hecht
  2016-10-18 15:01 ` [PATCH v2 1/2] ARM: dts: lager: Add entries for VIN HDMI input support Ulrich Hecht
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Ulrich Hecht @ 2016-10-18 15:01 UTC (permalink / raw)
  To: horms
  Cc: linux-media, linux-renesas-soc, magnus.damm, laurent.pinchart,
	hans.verkuil, william.towle, niklas.soderlund, geert,
	sergei.shtylyov, 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 unnecessary "remote" nodes
- r8a7790-lager.dts: "ok" -> "okay"
- r8a7791-koelsch.dts: set ADV7612 interrupt to GP4_2


Hans Verkuil (1):
  ARM: dts: koelsch: add HDMI input

William Towle (1):
  ARM: dts: lager: Add entries for VIN HDMI input support

 arch/arm/boot/dts/r8a7790-lager.dts   | 66 ++++++++++++++++++++++++++++++++--
 arch/arm/boot/dts/r8a7791-koelsch.dts | 68 +++++++++++++++++++++++++++++++++--
 2 files changed, 130 insertions(+), 4 deletions(-)

-- 
2.7.4


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH v2 1/2] ARM: dts: lager: Add entries for VIN HDMI input support
  2016-10-18 15:01 [PATCH v2 0/2] Renesas Lager/Koelsch HDMI input Ulrich Hecht
@ 2016-10-18 15:01 ` Ulrich Hecht
  2016-10-18 15:01 ` [PATCH v2 2/2] ARM: dts: koelsch: add HDMI input Ulrich Hecht
  2016-10-18 15:17 ` [PATCH v2 0/2] Renesas Lager/Koelsch " Laurent Pinchart
  2 siblings, 0 replies; 7+ messages in thread
From: Ulrich Hecht @ 2016-10-18 15:01 UTC (permalink / raw)
  To: horms
  Cc: linux-media, linux-renesas-soc, magnus.damm, laurent.pinchart,
	hans.verkuil, william.towle, niklas.soderlund, geert,
	sergei.shtylyov, Rob Taylor, Ulrich Hecht

From: William Towle <william.towle@codethink.co.uk>

Add DT entries for vin0, vin0_pins, and adv7612.

Sets the 'default-input' property for ADV7612, enabling image and video
capture without the need to have userspace specifying routing.

Signed-off-by: William Towle <william.towle@codethink.co.uk>
Signed-off-by: Rob Taylor <rob.taylor@codethink.co.uk>
[uli: added interrupt, renamed endpoint, merged default-input]
Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
---
 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
index 52b56fc..4342682 100644
--- a/arch/arm/boot/dts/r8a7790-lager.dts
+++ b/arch/arm/boot/dts/r8a7790-lager.dts
@@ -231,12 +231,23 @@
 		};
 	};
 
+	hdmi-in {
+		compatible = "hdmi-connector";
+		type = "a";
+
+		port {
+			hdmi_con_in: endpoint {
+				remote-endpoint = <&adv7612_in>;
+			};
+		};
+	};
+
 	hdmi-out {
 		compatible = "hdmi-connector";
 		type = "a";
 
 		port {
-			hdmi_con: endpoint {
+			hdmi_con_out: endpoint {
 				remote-endpoint = <&adv7511_out>;
 			};
 		};
@@ -427,6 +438,11 @@
 		function = "usb2";
 	};
 
+	vin0_pins: vin0 {
+		groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk";
+		function = "vin0";
+	};
+
 	vin1_pins: vin1 {
 		groups = "vin1_data8", "vin1_clk";
 		function = "vin1";
@@ -646,7 +662,34 @@
 			port@1 {
 				reg = <1>;
 				adv7511_out: endpoint {
-					remote-endpoint = <&hdmi_con>;
+					remote-endpoint = <&hdmi_con_out>;
+				};
+			};
+		};
+	};
+
+	hdmi-in@4c {
+		compatible = "adi,adv7612";
+		reg = <0x4c>;
+		interrupt-parent = <&gpio1>;
+		interrupts = <20 IRQ_TYPE_LEVEL_LOW>;
+		default-input = <0>;
+
+		ports {
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			port@0 {
+				reg = <0>;
+				adv7612_in: endpoint {
+					remote-endpoint = <&hdmi_con_in>;
+				};
+			};
+
+			port@2 {
+				reg = <2>;
+				adv7612_out: endpoint {
+					remote-endpoint = <&vin0ep2>;
 				};
 			};
 		};
@@ -722,6 +765,25 @@
 	status = "okay";
 };
 
+/* HDMI video input */
+&vin0 {
+	pinctrl-0 = <&vin0_pins>;
+	pinctrl-names = "default";
+
+	status = "okay";
+
+	port {
+		vin0ep2: endpoint {
+			remote-endpoint = <&adv7612_out>;
+			bus-width = <24>;
+			hsync-active = <0>;
+			vsync-active = <0>;
+			pclk-sample = <1>;
+			data-active = <1>;
+		};
+	};
+};
+
 /* composite video input */
 &vin1 {
 	pinctrl-0 = <&vin1_pins>;
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH v2 2/2] ARM: dts: koelsch: add HDMI input
  2016-10-18 15:01 [PATCH v2 0/2] Renesas Lager/Koelsch HDMI input Ulrich Hecht
  2016-10-18 15:01 ` [PATCH v2 1/2] ARM: dts: lager: Add entries for VIN HDMI input support Ulrich Hecht
@ 2016-10-18 15:01 ` Ulrich Hecht
  2016-10-19  7:33   ` Geert Uytterhoeven
  2016-10-18 15:17 ` [PATCH v2 0/2] Renesas Lager/Koelsch " Laurent Pinchart
  2 siblings, 1 reply; 7+ messages in thread
From: Ulrich Hecht @ 2016-10-18 15:01 UTC (permalink / raw)
  To: horms
  Cc: linux-media, linux-renesas-soc, magnus.damm, laurent.pinchart,
	hans.verkuil, william.towle, niklas.soderlund, geert,
	sergei.shtylyov, Hans Verkuil, Ulrich Hecht

From: Hans Verkuil <hverkuil@xs4all.nl>

Add support in the dts for the HDMI input. Based on the Lager dts
patch from Ultich Hecht.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
[uli: removed "renesas," prefixes from pfc nodes]
Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
---
 arch/arm/boot/dts/r8a7791-koelsch.dts | 68 +++++++++++++++++++++++++++++++++--
 1 file changed, 66 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts b/arch/arm/boot/dts/r8a7791-koelsch.dts
index f17bfa0..c457b43 100644
--- a/arch/arm/boot/dts/r8a7791-koelsch.dts
+++ b/arch/arm/boot/dts/r8a7791-koelsch.dts
@@ -265,12 +265,23 @@
 		};
 	};
 
+	hdmi-in {
+		compatible = "hdmi-connector";
+		type = "a";
+
+		port {
+			hdmi_con_in: endpoint {
+				remote-endpoint = <&adv7612_in>;
+			};
+		};
+	};
+
 	hdmi-out {
 		compatible = "hdmi-connector";
 		type = "a";
 
 		port {
-			hdmi_con: endpoint {
+			hdmi_con_out: endpoint {
 				remote-endpoint = <&adv7511_out>;
 			};
 		};
@@ -414,6 +425,11 @@
 		function = "usb1";
 	};
 
+	vin0_pins: vin0 {
+		groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk";
+		function = "vin0";
+	};
+
 	vin1_pins: vin1 {
 		groups = "vin1_data8", "vin1_clk";
 		function = "vin1";
@@ -617,7 +633,34 @@
 			port@1 {
 				reg = <1>;
 				adv7511_out: endpoint {
-					remote-endpoint = <&hdmi_con>;
+					remote-endpoint = <&hdmi_con_out>;
+				};
+			};
+		};
+	};
+
+	hdmi-in@4c {
+		compatible = "adi,adv7612";
+		reg = <0x4c>;
+		interrupt-parent = <&gpio4>;
+		interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
+		default-input = <0>;
+
+		ports {
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			port@0 {
+				reg = <0>;
+				adv7612_in: endpoint {
+					remote-endpoint = <&hdmi_con_in>;
+				};
+			};
+
+			port@2 {
+				reg = <2>;
+				adv7612_out: endpoint {
+					remote-endpoint = <&vin0ep2>;
 				};
 			};
 		};
@@ -699,6 +742,27 @@
 	cpu0-supply = <&vdd_dvfs>;
 };
 
+/* HDMI video input */
+&vin0 {
+	status = "okay";
+	pinctrl-0 = <&vin0_pins>;
+	pinctrl-names = "default";
+
+	port {
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		vin0ep2: endpoint {
+			remote-endpoint = <&adv7612_out>;
+			bus-width = <24>;
+			hsync-active = <0>;
+			vsync-active = <0>;
+			pclk-sample = <1>;
+			data-active = <1>;
+		};
+	};
+};
+
 /* composite video input */
 &vin1 {
 	status = "okay";
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH v2 0/2] Renesas Lager/Koelsch HDMI input
  2016-10-18 15:01 [PATCH v2 0/2] Renesas Lager/Koelsch HDMI input Ulrich Hecht
  2016-10-18 15:01 ` [PATCH v2 1/2] ARM: dts: lager: Add entries for VIN HDMI input support Ulrich Hecht
  2016-10-18 15:01 ` [PATCH v2 2/2] ARM: dts: koelsch: add HDMI input Ulrich Hecht
@ 2016-10-18 15:17 ` Laurent Pinchart
  2016-10-20  8:46   ` Simon Horman
  2 siblings, 1 reply; 7+ messages in thread
From: Laurent Pinchart @ 2016-10-18 15:17 UTC (permalink / raw)
  To: Ulrich Hecht
  Cc: horms, linux-media, linux-renesas-soc, magnus.damm, hans.verkuil,
	william.towle, niklas.soderlund, geert, sergei.shtylyov

Hi Ulrich,

Thank you for the patches.

For the whole series,

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

On Tuesday 18 Oct 2016 17:01:32 Ulrich Hecht wrote:
> 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 unnecessary "remote" nodes
> - r8a7790-lager.dts: "ok" -> "okay"
> - r8a7791-koelsch.dts: set ADV7612 interrupt to GP4_2 
> 
> Hans Verkuil (1):
>   ARM: dts: koelsch: add HDMI input
> 
> William Towle (1):
>   ARM: dts: lager: Add entries for VIN HDMI input support
> 
> arch/arm/boot/dts/r8a7790-lager.dts   | 66 ++++++++++++++++++++++++++++++--
> arch/arm/boot/dts/r8a7791-koelsch.dts | 68 ++++++++++++++++++++++++++++++--
> 2 files changed, 130 insertions(+), 4 deletions(-)

-- 
Regards,

Laurent Pinchart


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v2 2/2] ARM: dts: koelsch: add HDMI input
  2016-10-18 15:01 ` [PATCH v2 2/2] ARM: dts: koelsch: add HDMI input Ulrich Hecht
@ 2016-10-19  7:33   ` Geert Uytterhoeven
  2016-10-20  8:46     ` Simon Horman
  0 siblings, 1 reply; 7+ messages in thread
From: Geert Uytterhoeven @ 2016-10-19  7:33 UTC (permalink / raw)
  To: Ulrich Hecht
  Cc: Simon Horman, Linux Media Mailing List, Linux-Renesas,
	Magnus Damm, Laurent Pinchart, Hans Verkuil, william.towle,
	Niklas Söderlund, Sergei Shtylyov, Hans Verkuil

On Tue, Oct 18, 2016 at 5:01 PM, Ulrich Hecht
<ulrich.hecht+renesas@gmail.com> wrote:
> From: Hans Verkuil <hverkuil@xs4all.nl>
>
> Add support in the dts for the HDMI input. Based on the Lager dts
> patch from Ultich Hecht.

Ulrich ;-)

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v2 2/2] ARM: dts: koelsch: add HDMI input
  2016-10-19  7:33   ` Geert Uytterhoeven
@ 2016-10-20  8:46     ` Simon Horman
  0 siblings, 0 replies; 7+ messages in thread
From: Simon Horman @ 2016-10-20  8:46 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Ulrich Hecht, Linux Media Mailing List, Linux-Renesas,
	Magnus Damm, Laurent Pinchart, Hans Verkuil, william.towle,
	Niklas Söderlund, Sergei Shtylyov, Hans Verkuil

On Wed, Oct 19, 2016 at 09:33:11AM +0200, Geert Uytterhoeven wrote:
> On Tue, Oct 18, 2016 at 5:01 PM, Ulrich Hecht
> <ulrich.hecht+renesas@gmail.com> wrote:
> > From: Hans Verkuil <hverkuil@xs4all.nl>
> >
> > Add support in the dts for the HDMI input. Based on the Lager dts
> > patch from Ultich Hecht.
> 
> Ulrich ;-)

I have queued up this patch with Ulrich's name corrected.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v2 0/2] Renesas Lager/Koelsch HDMI input
  2016-10-18 15:17 ` [PATCH v2 0/2] Renesas Lager/Koelsch " Laurent Pinchart
@ 2016-10-20  8:46   ` Simon Horman
  0 siblings, 0 replies; 7+ messages in thread
From: Simon Horman @ 2016-10-20  8:46 UTC (permalink / raw)
  To: Laurent Pinchart
  Cc: Ulrich Hecht, linux-media, linux-renesas-soc, magnus.damm,
	hans.verkuil, william.towle, niklas.soderlund, geert,
	sergei.shtylyov

On Tue, Oct 18, 2016 at 06:17:25PM +0300, Laurent Pinchart wrote:
> Hi Ulrich,
> 
> Thank you for the patches.
> 
> For the whole series,
> 
> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

Thanks, series applied with Laurent's tag.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-10-20  9:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-18 15:01 [PATCH v2 0/2] Renesas Lager/Koelsch HDMI input Ulrich Hecht
2016-10-18 15:01 ` [PATCH v2 1/2] ARM: dts: lager: Add entries for VIN HDMI input support Ulrich Hecht
2016-10-18 15:01 ` [PATCH v2 2/2] ARM: dts: koelsch: add HDMI input Ulrich Hecht
2016-10-19  7:33   ` Geert Uytterhoeven
2016-10-20  8:46     ` Simon Horman
2016-10-18 15:17 ` [PATCH v2 0/2] Renesas Lager/Koelsch " Laurent Pinchart
2016-10-20  8:46   ` Simon Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox