linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: bgolaszewski@baylibre.com (Bartosz Golaszewski)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v7 4/5] ARM: dts: da850-lcdk: add the vga-bridge node
Date: Tue, 13 Dec 2016 11:09:18 +0100	[thread overview]
Message-ID: <1481623759-12786-5-git-send-email-bgolaszewski@baylibre.com> (raw)
In-Reply-To: <1481623759-12786-1-git-send-email-bgolaszewski@baylibre.com>

Add the vga-bridge node to the board DT together with corresponding
ports and vga connector. This allows to retrieve the edid info from
the display automatically.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 arch/arm/boot/dts/da850-lcdk.dts | 51 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

diff --git a/arch/arm/boot/dts/da850-lcdk.dts b/arch/arm/boot/dts/da850-lcdk.dts
index afcb482..1ae2260 100644
--- a/arch/arm/boot/dts/da850-lcdk.dts
+++ b/arch/arm/boot/dts/da850-lcdk.dts
@@ -51,6 +51,45 @@
 			system-clock-frequency = <24576000>;
 		};
 	};
+
+	vga-bridge {
+		compatible = "ti,ths8135";
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		ports {
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			port at 0 {
+				reg = <0>;
+
+				vga_bridge_in: endpoint {
+					remote-endpoint = <&lcdc_out_vga>;
+				};
+			};
+
+			port at 1 {
+				reg = <1>;
+
+				vga_bridge_out: endpoint {
+					remote-endpoint = <&vga_con_in>;
+				};
+			};
+		};
+	};
+
+	vga {
+		compatible = "vga-connector";
+
+		ddc-i2c-bus = <&i2c0>;
+
+		port {
+			vga_con_in: endpoint {
+				remote-endpoint = <&vga_bridge_out>;
+			};
+		};
+	};
 };
 
 &pmx_core {
@@ -236,3 +275,15 @@
 &memctrl {
 	status = "okay";
 };
+
+&lcdc {
+	status = "okay";
+	pinctrl-names = "default";
+	pinctrl-0 = <&lcd_pins>;
+
+	port {
+		lcdc_out_vga: endpoint {
+			remote-endpoint = <&vga_bridge_in>;
+		};
+	};
+};
-- 
2.9.3

  parent reply	other threads:[~2016-12-13 10:09 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-13 10:09 [PATCH v7 0/5] ARM: dts: da850: tilcdc related DT changes Bartosz Golaszewski
2016-12-13 10:09 ` [PATCH v7 1/5] ARM: dts: da850: rename the display node label Bartosz Golaszewski
2016-12-14  9:57   ` Tomi Valkeinen
2017-01-02 11:04     ` Sekhar Nori
2016-12-13 10:09 ` [PATCH v7 2/5] drm: bridge: add DT bindings for TI ths8135 Bartosz Golaszewski
2016-12-14  5:04   ` Archit Taneja
2016-12-13 10:09 ` [PATCH v7 3/5] drm: bridge: add support " Bartosz Golaszewski
2016-12-14  5:05   ` Archit Taneja
2017-01-02 11:08     ` Sekhar Nori
2017-01-03  5:26       ` Archit Taneja
2017-01-03  5:38         ` Sekhar Nori
2016-12-13 10:09 ` Bartosz Golaszewski [this message]
2016-12-14  9:54   ` [PATCH v7 4/5] ARM: dts: da850-lcdk: add the vga-bridge node Tomi Valkeinen
2017-01-02 11:16     ` Sekhar Nori
2016-12-13 10:09 ` [PATCH v7 5/5] ARM: dts: da850: specify the maximum pixel clock rate for tilcdc Bartosz Golaszewski
2017-01-02 11:29   ` Sekhar Nori

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1481623759-12786-5-git-send-email-bgolaszewski@baylibre.com \
    --to=bgolaszewski@baylibre.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).