From patchwork Wed Dec 3 21:33:22 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Belisko X-Patchwork-Id: 5433681 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 78823BEEA8 for ; Wed, 3 Dec 2014 21:35:04 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AAA3A20272 for ; Wed, 3 Dec 2014 21:35:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C97962025A for ; Wed, 3 Dec 2014 21:35:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751275AbaLCVed (ORCPT ); Wed, 3 Dec 2014 16:34:33 -0500 Received: from mail-wg0-f45.google.com ([74.125.82.45]:60991 "EHLO mail-wg0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752000AbaLCVdn (ORCPT ); Wed, 3 Dec 2014 16:33:43 -0500 Received: by mail-wg0-f45.google.com with SMTP id b13so21287886wgh.18 for ; Wed, 03 Dec 2014 13:33:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=MA/wGRntPSKIL1Kxkx4AA5+J/UMHfFLf6CC1FHtuUNw=; b=xJ8TKKIbeHBjZR5iKwD9Wgbpg9TBhpJZjdze4Zxl2F8Q2fcpJWu0X80RK+Fb2+x8y8 dZ30fyvu5c+u1OdFuu4lMKhfQ9B0TjrvUsbMmGuQKdXP5JcKA3pNlvwMoPe6QPG/hN8Q 64yHwjdkaQ+PorUgAq3Wv4LCPxsRGlNGL2Bz5YrR+O1QgRAHIJ6WUrGb3VKvCJbWIahU c+50eT9fadBWypf7RO02PfUyc7O4KE4xchjaUKv1uh3LF5oSNmUG/6mkzpf5YSEa8jXT d0TSDK3Y6Hq7B35r9lpDpm4f7HUv4og2iR0P76o/RDffnl4D7yKYU1gMAlTBmwHL4pM+ cqOQ== X-Received: by 10.194.175.69 with SMTP id by5mr10604167wjc.32.1417642421401; Wed, 03 Dec 2014 13:33:41 -0800 (PST) Received: from marek.lan (ip-85.163.84.226.o2inet.sk. [85.163.84.226]) by mx.google.com with ESMTPSA id q4sm31168392wjo.46.2014.12.03.13.33.39 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 03 Dec 2014 13:33:40 -0800 (PST) From: Marek Belisko To: tomi.valkeinen@ti.com Cc: plagnioj@jcrosoft.com, tony@atomide.com, bcousson@baylibre.com, hns@goldelico.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-fbdev@vger.kernel.org, Marek Belisko Subject: [PATCH v4 3/3] arm: dts: omap3-gta04: Add handling for tv output Date: Wed, 3 Dec 2014 22:33:22 +0100 Message-Id: <1417642402-20538-4-git-send-email-marek@goldelico.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1417642402-20538-1-git-send-email-marek@goldelico.com> References: <1417642402-20538-1-git-send-email-marek@goldelico.com> Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add handling for gta04 tv out chain: venc -> opa362 -> svideo Use invert-polarity in venc node because opa362 is doing polarity inversion also. Signed-off-by: Marek Belisko --- arch/arm/boot/dts/omap3-gta04.dtsi | 49 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi index fd34f91..a6e995b 100644 --- a/arch/arm/boot/dts/omap3-gta04.dtsi +++ b/arch/arm/boot/dts/omap3-gta04.dtsi @@ -83,6 +83,41 @@ compatible = "usb-nop-xceiv"; reset-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>; }; + + tv0: connector@1 { + compatible = "svideo-connector"; + label = "tv"; + + port { + tv_connector_in: endpoint { + remote-endpoint = <&opa_out>; + }; + }; + }; + + tv_amp: opa362 { + compatible = "ti,opa362"; + enable-gpios = <&gpio1 23 0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + opa_in: endpoint@0 { + remote-endpoint = <&venc_out>; + }; + }; + + port@1 { + reg = <1>; + opa_out: endpoint@0 { + remote-endpoint = <&tv_connector_in>; + }; + }; + }; + }; }; &omap3_pmx_core { @@ -396,6 +431,20 @@ }; }; +&venc { + status = "okay"; + + vdda-supply = <&vdac>; + + port { + venc_out: endpoint { + remote-endpoint = <&opa_in>; + ti,channels = <2>; + ti,invert-polarity; + }; + }; +}; + &gpmc { ranges = <0 0 0x30000000 0x04>; /* CS0: NAND */