devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 0/2] Add VIN and ADV7180 device tree support for R8A7790/Lager board
@ 2014-08-12 20:10 sergei.shtylyov
  2014-08-12 20:16 ` [PATCH v5 1/2] ARM: shmobile: r8a7790: add VIN device nodes Sergei Shtylyov
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: sergei.shtylyov @ 2014-08-12 20:10 UTC (permalink / raw)
  To: horms, linux-sh, robh+dt, pawel.moll, mark.rutland,
	ijc+devicetree, galak, devicetree
  Cc: magnus.damm, linux, linux-arm-kernel

Hello.

   Here's the set of 2 patches against Simon Horman's 'renesas.git' repo,
'renesas-devel-v3.16-20140811' tag. Here Ben Dooks adds the VIN and ADV7180
video decoder device tree support on the R8A7790/Lager board. The patchset
requires Ben Dooks' 'rcar_vin' and 'soc_camera' DT support patches (already
merged to the 'media_tree.git' repo) in order to work.

[1/2] ARM: shmobile: r8a7790: add VIN device nodes
[2/2] ARM: shmobile: lager: add VIN1/ADV7180 device nodes

WBR, Sergei


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

* [PATCH v5 1/2] ARM: shmobile: r8a7790: add VIN device nodes
  2014-08-12 20:10 [PATCH v5 0/2] Add VIN and ADV7180 device tree support for R8A7790/Lager board sergei.shtylyov
@ 2014-08-12 20:16 ` Sergei Shtylyov
  2014-08-12 20:18 ` [PATCH v5 2/2] ARM: shmobile: lager: add VIN1/ADV7180 " Sergei Shtylyov
  2014-08-14  5:32 ` [PATCH v5 0/2] Add VIN and ADV7180 device tree support for R8A7790/Lager board Simon Horman
  2 siblings, 0 replies; 4+ messages in thread
From: Sergei Shtylyov @ 2014-08-12 20:16 UTC (permalink / raw)
  To: horms, linux-sh, robh+dt, pawel.moll, mark.rutland,
	ijc+devicetree, galak, devicetree
  Cc: magnus.damm, linux, linux-arm-kernel

From: Ben Dooks <ben.dooks@codethink.co.uk>

Add device nodes for the four video input controllers on the R8A7790.

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
[Sergei: renamed VIN device nodes, edited changelog]
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

---
Changes in version 5:
- renamed VIN device nodes;
- edited changelog and summary;
- refreshed patch.

 arch/arm/boot/dts/r8a7790.dtsi |   36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

Index: renesas/arch/arm/boot/dts/r8a7790.dtsi
===================================================================
--- renesas.orig/arch/arm/boot/dts/r8a7790.dtsi
+++ renesas/arch/arm/boot/dts/r8a7790.dtsi
@@ -33,6 +33,10 @@
 		spi2 = &msiof1;
 		spi3 = &msiof2;
 		spi4 = &msiof3;
+		vin0 = &vin0;
+		vin1 = &vin1;
+		vin2 = &vin2;
+		vin3 = &vin3;
 	};
 
 	cpus {
@@ -564,6 +568,38 @@
 		status = "disabled";
 	};
 
+	vin0: video@e6ef0000 {
+		compatible = "renesas,vin-r8a7790";
+		clocks = <&mstp8_clks R8A7790_CLK_VIN0>;
+		reg = <0 0xe6ef0000 0 0x1000>;
+		interrupts = <0 188 IRQ_TYPE_LEVEL_HIGH>;
+		status = "disabled";
+	};
+
+	vin1: video@e6ef1000 {
+		compatible = "renesas,vin-r8a7790";
+		clocks = <&mstp8_clks R8A7790_CLK_VIN1>;
+		reg = <0 0xe6ef1000 0 0x1000>;
+		interrupts = <0 189 IRQ_TYPE_LEVEL_HIGH>;
+		status = "disabled";
+	};
+
+	vin2: video@e6ef2000 {
+		compatible = "renesas,vin-r8a7790";
+		clocks = <&mstp8_clks R8A7790_CLK_VIN2>;
+		reg = <0 0xe6ef2000 0 0x1000>;
+		interrupts = <0 190 IRQ_TYPE_LEVEL_HIGH>;
+		status = "disabled";
+	};
+
+	vin3: video@e6ef3000 {
+		compatible = "renesas,vin-r8a7790";
+		clocks = <&mstp8_clks R8A7790_CLK_VIN3>;
+		reg = <0 0xe6ef3000 0 0x1000>;
+		interrupts = <0 191 IRQ_TYPE_LEVEL_HIGH>;
+		status = "disabled";
+	};
+
 	clocks {
 		#address-cells = <2>;
 		#size-cells = <2>;


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

* [PATCH v5 2/2] ARM: shmobile: lager: add VIN1/ADV7180 device nodes
  2014-08-12 20:10 [PATCH v5 0/2] Add VIN and ADV7180 device tree support for R8A7790/Lager board sergei.shtylyov
  2014-08-12 20:16 ` [PATCH v5 1/2] ARM: shmobile: r8a7790: add VIN device nodes Sergei Shtylyov
@ 2014-08-12 20:18 ` Sergei Shtylyov
  2014-08-14  5:32 ` [PATCH v5 0/2] Add VIN and ADV7180 device tree support for R8A7790/Lager board Simon Horman
  2 siblings, 0 replies; 4+ messages in thread
From: Sergei Shtylyov @ 2014-08-12 20:18 UTC (permalink / raw)
  To: horms, linux-sh, robh+dt, pawel.moll, ijc+devicetree, galak,
	devicetree
  Cc: mark.rutland, magnus.damm, linux, linux-arm-kernel, ben.dooks

From: Ben Dooks <ben.dooks@codethink.co.uk>

Add the Lager board specific device node part for VIN1 (composite video in);
add the device node for Analog Devices ADV7180 video decoder to IIC2 bus.
Add the necessary subnodes to interconnect VIN1 and ADV7180 devices.

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
[Sergei: rebased, edited changelog and summary]
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

---
Changes in version 5:
- edited changelog and summary;
- resolved reject, refreshed patch.

 arch/arm/boot/dts/r8a7790-lager.dts |   36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

Index: renesas/arch/arm/boot/dts/r8a7790-lager.dts
===================================================================
--- renesas.orig/arch/arm/boot/dts/r8a7790-lager.dts
+++ renesas/arch/arm/boot/dts/r8a7790-lager.dts
@@ -234,6 +234,11 @@
 		renesas,groups = "usb2";
 		renesas,function = "usb2";
 	};
+
+	vin1_pins: vin {
+		renesas,groups = "vin1_data8", "vin1_clk";
+		renesas,function = "vin1";
+	};
 };
 
 &ether {
@@ -370,6 +375,19 @@
 	status = "ok";
 	pinctrl-0 = <&iic2_pins>;
 	pinctrl-names = "default";
+
+	composite-in@20 {
+		compatible = "adi,adv7180";
+		reg = <0x20>;
+		remote = <&vin1>;
+
+		port {
+			adv7180: endpoint {
+				bus-width = <8>;
+				remote-endpoint = <&vin1ep0>;
+			};
+		};
+	};
 };
 
 &iic3 {
@@ -405,3 +423,21 @@
 	pinctrl-0 = <&usb2_pins>;
 	pinctrl-names = "default";
 };
+
+/* composite video input */
+&vin1 {
+	pinctrl-0 = <&vin1_pins>;
+	pinctrl-names = "default";
+
+	status = "ok";
+
+	port {
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		vin1ep0: endpoint {
+			remote-endpoint = <&adv7180>;
+			bus-width = <8>;
+		};
+	};
+};


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

* Re: [PATCH v5 0/2] Add VIN and ADV7180 device tree support for R8A7790/Lager board
  2014-08-12 20:10 [PATCH v5 0/2] Add VIN and ADV7180 device tree support for R8A7790/Lager board sergei.shtylyov
  2014-08-12 20:16 ` [PATCH v5 1/2] ARM: shmobile: r8a7790: add VIN device nodes Sergei Shtylyov
  2014-08-12 20:18 ` [PATCH v5 2/2] ARM: shmobile: lager: add VIN1/ADV7180 " Sergei Shtylyov
@ 2014-08-14  5:32 ` Simon Horman
  2 siblings, 0 replies; 4+ messages in thread
From: Simon Horman @ 2014-08-14  5:32 UTC (permalink / raw)
  To: sergei.shtylyov
  Cc: linux-sh, robh+dt, pawel.moll, mark.rutland, ijc+devicetree,
	galak, devicetree, magnus.damm, linux, linux-arm-kernel

On Wed, Aug 13, 2014 at 12:10:19AM +0400, sergei.shtylyov@cogentembedded.com wrote:
> Hello.
> 
>    Here's the set of 2 patches against Simon Horman's 'renesas.git' repo,
> 'renesas-devel-v3.16-20140811' tag. Here Ben Dooks adds the VIN and ADV7180
> video decoder device tree support on the R8A7790/Lager board. The patchset
> requires Ben Dooks' 'rcar_vin' and 'soc_camera' DT support patches (already
> merged to the 'media_tree.git' repo) in order to work.
> 
> [1/2] ARM: shmobile: r8a7790: add VIN device nodes
> [2/2] ARM: shmobile: lager: add VIN1/ADV7180 device nodes

Thanks, I have queued these up for v3.18.

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

end of thread, other threads:[~2014-08-14  5:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-12 20:10 [PATCH v5 0/2] Add VIN and ADV7180 device tree support for R8A7790/Lager board sergei.shtylyov
2014-08-12 20:16 ` [PATCH v5 1/2] ARM: shmobile: r8a7790: add VIN device nodes Sergei Shtylyov
2014-08-12 20:18 ` [PATCH v5 2/2] ARM: shmobile: lager: add VIN1/ADV7180 " Sergei Shtylyov
2014-08-14  5:32 ` [PATCH v5 0/2] Add VIN and ADV7180 device tree support for R8A7790/Lager board Simon Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).