Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1632321

[PATCH 4/5] arm64: dts: r8a7795: salvator-x: enable VIN, CSI and ADV7482

From Kieran Bingham <kbingham@kernel.org>
Newsgroups linux.kernel
Subject [PATCH 4/5] arm64: dts: r8a7795: salvator-x: enable VIN, CSI and ADV7482
Date 2017-04-27 20:30 +0200
Message-ID <tAWkX-4nM-41@gated-at.bofh.it> (permalink)
References <tAWkW-4nM-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>

Provide bindings between the VIN, CSI and the ADV7482 on the r8a7795.

Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
---
 arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts | 129 +++++++++++++++++++++
 1 file changed, 129 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts
index 27b9bae60dc0..a20623faa9d2 100644
--- a/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts
+++ b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts
@@ -196,6 +196,22 @@
 			};
 		};
 	};
+
+	hdmi {
+		port {
+			hdmi_in: endpoint {
+				remote-endpoint = <&adv7482_hdmi>;
+			};
+		};
+	};
+
+	cvbs {
+		port {
+			cvbs_in: endpoint {
+				remote-endpoint = <&adv7482_ain8>;
+			};
+		};
+	};
 };
 
 &du {
@@ -387,6 +403,50 @@
 	};
 };
 
+&i2c4 {
+	status = "okay";
+
+	clock-frequency = <100000>;
+
+	video_receiver@70 {
+		compatible = "adi,adv7482";
+		reg = <0x70>;
+
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		port@8 {
+			adv7482_ain8: endpoint@1 {
+				remote-endpoint = <&cvbs_in>;
+			};
+		};
+
+		port@9 {
+			adv7482_hdmi: endpoint@1 {
+				remote-endpoint = <&hdmi_in>;
+			};
+		};
+
+		port@11 {
+			reg = <11>;
+			adv7482_txa: endpoint@1 {
+				clock-lanes = <0>;
+				data-lanes = <1 2 3 4>;
+				remote-endpoint = <&csi40_in>;
+			};
+		};
+
+		port@12 {
+			reg = <12>;
+			adv7482_txb: endpoint@1 {
+				clock-lanes = <0>;
+				data-lanes = <1>;
+				remote-endpoint = <&csi20_in>;
+			};
+		};
+	};
+};
+
 &rcar_sound {
 	pinctrl-0 = <&sound_pins &sound_clk_pins>;
 	pinctrl-names = "default";
@@ -577,3 +637,72 @@
 &pciec1 {
 	status = "okay";
 };
+
+&vin0 {
+	status = "okay";
+};
+
+&vin1 {
+	status = "okay";
+};
+
+&vin2 {
+	status = "okay";
+};
+
+&vin3 {
+	status = "okay";
+};
+
+&vin4 {
+	status = "okay";
+};
+
+&vin5 {
+	status = "okay";
+};
+
+&vin6 {
+	status = "okay";
+};
+
+&vin7 {
+	status = "okay";
+};
+
+&csi20 {
+	status = "okay";
+
+	ports {
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		port@0 {
+			reg = <0>;
+			csi20_in: endpoint@0 {
+				clock-lanes = <0>;
+				data-lanes = <1>;
+				remote-endpoint = <&adv7482_txb>;
+			};
+		};
+	};
+};
+
+&csi40 {
+	status = "okay";
+
+	ports {
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		port@0 {
+			reg = <0>;
+
+			csi40_in: endpoint@0 {
+				clock-lanes = <0>;
+				data-lanes = <1 2 3 4>;
+				remote-endpoint = <&adv7482_txa>;
+			};
+		};
+	};
+};
-- 
2.7.4

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/5] RFC: ADV748x HDMI/Analog video receiver Kieran Bingham <kbingham@kernel.org> - 2017-04-27 20:30 +0200
  [PATCH 4/5] arm64: dts: r8a7795: salvator-x: enable VIN, CSI and ADV7482 Kieran Bingham <kbingham@kernel.org> - 2017-04-27 20:30 +0200
    Re: [PATCH 4/5] arm64: dts: r8a7795: salvator-x: enable VIN, CSI and  ADV7482 Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> - 2017-04-28 11:00 +0200
      Re: [PATCH 4/5] arm64: dts: r8a7795: salvator-x: enable VIN, CSI and ADV7482 Geert Uytterhoeven <geert@linux-m68k.org> - 2017-04-28 12:10 +0200
        Re: [PATCH 4/5] arm64: dts: r8a7795: salvator-x: enable VIN, CSI and  ADV7482 Kieran Bingham <kieran.bingham+renesas@ideasonboard.com> - 2017-04-28 12:10 +0200
  [PATCH 1/5] v4l2-subdev: Provide a port mapping for asynchronous subdevs Kieran Bingham <kbingham@kernel.org> - 2017-04-27 20:30 +0200
    Re: [PATCH 1/5] v4l2-subdev: Provide a port mapping for asynchronous  subdevs Sakari Ailus <sakari.ailus@iki.fi> - 2017-04-27 23:50 +0200
      Re: [PATCH 1/5] v4l2-subdev: Provide a port mapping for asynchronous  subdevs Kieran Bingham <kieran.bingham@ideasonboard.com> - 2017-04-28 00:20 +0200
        Re: [PATCH 1/5] v4l2-subdev: Provide a port mapping for asynchronous  subdevs Sakari Ailus <sakari.ailus@iki.fi> - 2017-04-28 01:00 +0200
          Re: [PATCH 1/5] v4l2-subdev: Provide a port mapping for asynchronous  subdevs Kieran Bingham <kieran.bingham@ideasonboard.com> - 2017-04-28 02:10 +0200
  Re: [PATCH 0/5] RFC: ADV748x HDMI/Analog video receiver Simon Horman <horms@verge.net.au> - 2017-04-28 09:20 +0200
    Re: [PATCH 0/5] RFC: ADV748x HDMI/Analog video receiver Kieran Bingham <kieran.bingham+renesas@ideasonboard.com> - 2017-04-28 10:50 +0200
      Re: [PATCH 0/5] RFC: ADV748x HDMI/Analog video receiver Simon Horman <horms@verge.net.au> - 2017-05-01 10:40 +0200

csiph-web