Skip to contentSkip to conversation

r8a7791-koelsch.dts: add HDMI input

PATCH In review Hans Verkuil 2 participants 2 messages Apr 18, 2016 – Apr 20, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 r8a7791-koelsch.dts: add HDMI input

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

---
Ulrich, can you add this patch to your r-car HDMI patch series?

Thanks!

Hans

---
 arch/arm/boot/dts/r8a7791-koelsch.dts | 41 +++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)
arch/arm/boot/dts/r8a7791-koelsch.dts +41 -0
index 0ad71b8..e4c2ec83 100644
@@ -394,6 +394,11 @@
 		renesas,function = "usb1";
 	};
 
+	vin0_pins: vin0 {
+		renesas,groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk";
+		renesas,function = "vin0";
+	};
+
 	vin1_pins: vin1 {
 		renesas,groups = "vin1_data8", "vin1_clk";
 		renesas,function = "vin1";
@@ -552,6 +557,21 @@
 		reg = <0x12>;
 	};
 
+	hdmi-in@4c {
+		compatible = "adi,adv7612";
+		reg = <0x4c>;
+		interrupt-parent = <&gpio1>;
+		interrupts = <20 IRQ_TYPE_LEVEL_LOW>;
+		remote = <&vin0>;
+		default-input = <0>;
+
+		port {
+			adv7612: endpoint {
+				remote-endpoint = <&vin0ep>;
+			};
+		};
+	};
+
 	composite-in@20 {
 		compatible = "adi,adv7180";
 		reg = <0x20>;
@@ -672,6 +692,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>;
+
+		vin0ep: endpoint {
+			remote-endpoint = <&adv7612>;
+			bus-width = <24>;
+			hsync-active = <0>;
+			vsync-active = <0>;
+			pclk-sample = <1>;
+			data-active = <1>;
+		};
+	};
+};
+
 /* composite video input */
 &vin1 {
 	status = "okay";
Signature · 1 line
2.8.0.rc3
#1 lore raw
Quoted 6 lines · Hans Verkuil

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

---
Ulrich, can you add this patch to your r-car HDMI patch series?

Can do.

CU
Uli