linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* resend: device tree updates for r8a7790 vin
@ 2014-06-23 21:10 Ben Dooks
  2014-06-23 21:10 ` [PATCH 1/2] r8a7790.dtsi: add vin[0-3] nodes Ben Dooks
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Ben Dooks @ 2014-06-23 21:10 UTC (permalink / raw)
  To: linux-media, linux-sh; +Cc: magnus.damm, horms, linux-kernel

I've gone through and hopefully cleaned up Sergei's issues.

Is there any chance Simon could queue these in his tree?


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

* [PATCH 1/2] r8a7790.dtsi: add vin[0-3] nodes
  2014-06-23 21:10 resend: device tree updates for r8a7790 vin Ben Dooks
@ 2014-06-23 21:10 ` Ben Dooks
  2014-06-23 21:10 ` [PATCH 2/2] [PATCH v2] ARM: lager: add vin1 node Ben Dooks
  2014-06-24  2:17 ` resend: device tree updates for r8a7790 vin Simon Horman
  2 siblings, 0 replies; 4+ messages in thread
From: Ben Dooks @ 2014-06-23 21:10 UTC (permalink / raw)
  To: linux-media, linux-sh; +Cc: magnus.damm, horms, linux-kernel, Ben Dooks

Add nodes for the four video input channels on the R8A7790.

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
---
 arch/arm/boot/dts/r8a7790.dtsi | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi
index 7ff2960..a6f083d 100644
--- a/arch/arm/boot/dts/r8a7790.dtsi
+++ b/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 {
@@ -462,6 +466,38 @@
 		status = "disabled";
 	};
 
+	vin0: vin@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: vin@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: vin@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: vin@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>;
-- 
2.0.0


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

* [PATCH 2/2] [PATCH v2] ARM: lager: add vin1 node
  2014-06-23 21:10 resend: device tree updates for r8a7790 vin Ben Dooks
  2014-06-23 21:10 ` [PATCH 1/2] r8a7790.dtsi: add vin[0-3] nodes Ben Dooks
@ 2014-06-23 21:10 ` Ben Dooks
  2014-06-24  2:17 ` resend: device tree updates for r8a7790 vin Simon Horman
  2 siblings, 0 replies; 4+ messages in thread
From: Ben Dooks @ 2014-06-23 21:10 UTC (permalink / raw)
  To: linux-media, linux-sh; +Cc: magnus.damm, horms, linux-kernel, Ben Dooks

Add device-tree for vin1 (composite video in) on the
lager board.

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
---

Fixes since v1:
	- Whitespace fixes as suggested by Sergei
---
 arch/arm/boot/dts/r8a7790-lager.dts | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts
index 4805c9f..e00543b 100644
--- a/arch/arm/boot/dts/r8a7790-lager.dts
+++ b/arch/arm/boot/dts/r8a7790-lager.dts
@@ -214,6 +214,11 @@
 		renesas,groups = "i2c2";
 		renesas,function = "i2c2";
 	};
+
+	vin1_pins: vin {
+		renesas,groups = "vin1_data8", "vin1_clk";
+		renesas,function = "vin1";
+	};
 };
 
 &ether {
@@ -342,8 +347,39 @@
 	status = "ok";
 	pinctrl-0 = <&i2c2_pins>;
 	pinctrl-names = "default";
+
+	composite-in@20 {
+		compatible = "adi,adv7180";
+		reg = <0x20>;
+		remote = <&vin1>;
+
+		port {
+			adv7180: endpoint {
+				bus-width = <8>;
+				remote-endpoint = <&vin1ep0>;
+			};
+		};
+	};
 };
 
 &i2c3	{
 	status = "ok";
 };
+
+/* 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>;
+		};
+	};
+};
-- 
2.0.0


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

* Re: resend: device tree updates for r8a7790 vin
  2014-06-23 21:10 resend: device tree updates for r8a7790 vin Ben Dooks
  2014-06-23 21:10 ` [PATCH 1/2] r8a7790.dtsi: add vin[0-3] nodes Ben Dooks
  2014-06-23 21:10 ` [PATCH 2/2] [PATCH v2] ARM: lager: add vin1 node Ben Dooks
@ 2014-06-24  2:17 ` Simon Horman
  2 siblings, 0 replies; 4+ messages in thread
From: Simon Horman @ 2014-06-24  2:17 UTC (permalink / raw)
  To: Ben Dooks; +Cc: linux-media, linux-sh, magnus.damm, linux-kernel

On Mon, Jun 23, 2014 at 10:10:30PM +0100, Ben Dooks wrote:
> I've gone through and hopefully cleaned up Sergei's issues.
> 
> Is there any chance Simon could queue these in his tree?

At this stage my main question is about the status of the driver
and more specifically the binding(s).

I don't seem to be able to find renesas,vin-r8a7790 in
next-20140623. Have the driver changes been queued up elsewhere?

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

end of thread, other threads:[~2014-06-24  2:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-23 21:10 resend: device tree updates for r8a7790 vin Ben Dooks
2014-06-23 21:10 ` [PATCH 1/2] r8a7790.dtsi: add vin[0-3] nodes Ben Dooks
2014-06-23 21:10 ` [PATCH 2/2] [PATCH v2] ARM: lager: add vin1 node Ben Dooks
2014-06-24  2:17 ` resend: device tree updates for r8a7790 vin 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).