Skip to contentSkip to conversation

ARM: lager: add vin1 node

PATCH In review Ben Dooks 3 participants 4 messages Apr 14, 2014 – Jun 6, 2014

Subsystems (2)
lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

PATCH v3 4/7 ARM: lager: add vin1 node

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

---
 arch/arm/boot/dts/r8a7790-lager.dts | 38 +++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)
arch/arm/boot/dts/r8a7790-lager.dts +38 -0
index a087421..6888866 100644
@@ -158,6 +158,11 @@
 		renesas,groups = "i2c2";
 		renesas,function = "i2c2";
 	};
+
+	vin1_pins: vin {
+		renesas,groups = "vin1_data8", "vin1_clk";
+		renesas,function = "vin1";
+	};
 };
 
 &mmcif1 {
@@ -239,8 +244,41 @@
 	status = "ok";
 	pinctrl-0 = <&i2c2_pins>;
 	pinctrl-names = "default";
+
+	adv7180: composite-in@0x20 {
+		compatible = "adi,adv7180";
+		reg = <0x20>;
+		remote = <&vin1>;
+
+		port {
+			adv7180_1: 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_1>;
+			bus-width = <8>;
+		};
+	};
+};
+
Signature · 1 line
1.9.1
#1 lore raw
Quoted 2 lines · Ben Dooks

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

I think this patch should be the last. The rest isn't so important, but also for them I would go from more generic to device / platform / board specific ones.

Thanks
Guennadi

Quoted 67 lines
---
 arch/arm/boot/dts/r8a7790-lager.dts | 38 +++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)
arch/arm/boot/dts/r8a7790-lager.dts +38 -0
index a087421..6888866 100644
@@ -158,6 +158,11 @@
 		renesas,groups = "i2c2";
 		renesas,function = "i2c2";
 	};
+
+	vin1_pins: vin {
+		renesas,groups = "vin1_data8", "vin1_clk";
+		renesas,function = "vin1";
+	};
 };
 
 &mmcif1 {
@@ -239,8 +244,41 @@
 	status = "ok";
 	pinctrl-0 = <&i2c2_pins>;
 	pinctrl-names = "default";
+
+	adv7180: composite-in@0x20 {
+		compatible = "adi,adv7180";
+		reg = <0x20>;
+		remote = <&vin1>;
+
+		port {
+			adv7180_1: 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_1>;
+			bus-width = <8>;
+		};
+	};
+};
+
Signature · 1 line
1.9.1

---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/

#2 lore raw
In reply to Ben Dooks

Hello.

Quoted 12 lines · Ben Dooks

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

---
  arch/arm/boot/dts/r8a7790-lager.dts | 38 +++++++++++++++++++++++++++++++++++++
  1 file changed, 38 insertions(+)
arch/arm/boot/dts/r8a7790-lager.dts +0 -0
index a087421..6888866 100644

[...]

arch/arm/boot/dts/r8a7790-lager.dts line 248

Quoted 6 lines
arch/arm/boot/dts/r8a7790-lager.dts +2 -0
@@ -239,8 +244,41 @@
  	status = "ok";
  	pinctrl-0 = <&i2c2_pins>;
  	pinctrl-names = "default";
+
+	adv7180: composite-in@0x20 {

You're not using that label, as far as I could see.

arch/arm/boot/dts/r8a7790-lager.dts line 254

Quoted 6 lines
arch/arm/boot/dts/r8a7790-lager.dts +6 -0
+		compatible = "adi,adv7180";
+		reg = <0x20>;
+		remote = <&vin1>;
+
+		port {
+			adv7180_1: endpoint {

So, you could use 'adv7180:' here instead...

arch/arm/boot/dts/r8a7790-lager.dts line 260

Quoted 6 lines
arch/arm/boot/dts/r8a7790-lager.dts +6 -0
+				bus-width = <8>;
+				remote-endpoint = <&vin1ep0>;
+			};
+		};
+	};
+

WBR, Sergei

#3 lore raw
In reply to Ben Dooks

Hello.

Quoted 12 lines · Ben Dooks

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

---
  arch/arm/boot/dts/r8a7790-lager.dts | 38 +++++++++++++++++++++++++++++++++++++
  1 file changed, 38 insertions(+)
arch/arm/boot/dts/r8a7790-lager.dts +0 -0
index a087421..6888866 100644

[...]

arch/arm/boot/dts/r8a7790-lager.dts line 248

Quoted 6 lines
arch/arm/boot/dts/r8a7790-lager.dts +2 -0
@@ -239,8 +244,41 @@
  	status = "ok";
  	pinctrl-0 = <&i2c2_pins>;
  	pinctrl-names = "default";
+
+	adv7180: composite-in@0x20 {
    Please drop "0x" from the unit-addresspart of the node name.

WBR, Sergei