From patchwork Sun Nov 30 13:07:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Belisko X-Patchwork-Id: 5407971 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7551F9F443 for ; Sun, 30 Nov 2014 13:08:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8FD28200FE for ; Sun, 30 Nov 2014 13:08:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BB83A20172 for ; Sun, 30 Nov 2014 13:08:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752384AbaK3NIs (ORCPT ); Sun, 30 Nov 2014 08:08:48 -0500 Received: from mail-wi0-f176.google.com ([209.85.212.176]:65439 "EHLO mail-wi0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752051AbaK3NIc (ORCPT ); Sun, 30 Nov 2014 08:08:32 -0500 Received: by mail-wi0-f176.google.com with SMTP id ex7so22135310wid.3 for ; Sun, 30 Nov 2014 05:08:31 -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=yhnMxunCbfhHFrVt4CZQHMmtIF1LUh9YQ5ppKvcEqJY=; b=awMTFERqCVEHRRAhbHpSBFatS/Voqlff0ELjz6FtKs+1PW+kQ8FhQ6slOx2h1ocvKK cTB5Hs2ElFiecQkOn/emdY4KmXuuNfkXP8VynMgHXdiJZPIWMV4A+wKx8KG26e+8Yvaa FRQPtF0/XZQgOFoWBNsU1GCB1B2c+t+64pi8afv604M0Oh/NTQMHoXfk5Lx/7HxoPAFw DTyYiLk7DnTJE3qt7paYof30MgTcuF3acLoJSri/gaEZvrLkDA2q1xIBtJd1nnU1TzJm Wwrh6hU11IFlWQPtrTK/feP+AbCCeBaJcMrdTYxF0iOq6UUD577AUO6xBqoEra4oEJzB EgMg== X-Received: by 10.180.95.37 with SMTP id dh5mr76445235wib.64.1417352911031; Sun, 30 Nov 2014 05:08:31 -0800 (PST) Received: from marek.kongress.mwn.de ([138.246.9.167]) by mx.google.com with ESMTPSA id ec2sm24070399wib.23.2014.11.30.05.08.29 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 30 Nov 2014 05:08:30 -0800 (PST) From: Marek Belisko To: robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, bcousson@baylibre.com, tony@atomide.com, linux@arm.linux.org.uk, tomi.valkeinen@ti.com, plagnioj@jcrosoft.com, grant.likely@linaro.org Cc: 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, hns@goldelico.com, Marek Belisko Subject: [PATCH v3 3/3] arm: dts: omap3-gta04: Add handling for tv output Date: Sun, 30 Nov 2014 14:07:47 +0100 Message-Id: <1417352867-7436-4-git-send-email-marek@goldelico.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1417352867-7436-1-git-send-email-marek@goldelico.com> References: <1417352867-7436-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=ham 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..e9f221d 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"; + 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 */