From patchwork Wed Mar 2 17:16:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 8484181 X-Patchwork-Delegate: horms@verge.net.au Return-Path: X-Original-To: patchwork-linux-renesas-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 88516C0553 for ; Wed, 2 Mar 2016 17:17:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 129D820114 for ; Wed, 2 Mar 2016 17:17:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6009B2017E for ; Wed, 2 Mar 2016 17:17:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754776AbcCBRRO (ORCPT ); Wed, 2 Mar 2016 12:17:14 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:33359 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754606AbcCBRRM (ORCPT ); Wed, 2 Mar 2016 12:17:12 -0500 Received: by mail-wm0-f67.google.com with SMTP id n186so10775186wmn.0; Wed, 02 Mar 2016 09:17:11 -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=hW63o1nFo34khKUH9teQlhBYibMyPDytxvQ4WOfXFwM=; b=nesJO+2QERvYloBOkza4sG/CSQ1jwTugIfZo1UdXdYa1w4LwsfbMtfa/ELqF1ZjpKa Lfzd9DbXX9X4Ic7l2XcDtoLU4bwH1NBOsHC+UeK1jn6FpMRDkGeZ1pRbhGjTo4rZpycI JVlj8Uw4aSdRVf5KNoINgS+xT7oQoICUcvtXRHm0BjqZwqM4h1OKAmjEDE3ciRUxqaJM mjW7Cd4XCXLYdytsgVC/vBdvO+7WlDaCe0r9WAuyiFO+MxtFvoEBBR6Gg0P0KzomP9b5 IQbGEPvvcT+8O1QRWe7COcPULrQiv8hx76c4uQWrUod+O3YwRaEkvqIhXoreHmud0EcD p4LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=hW63o1nFo34khKUH9teQlhBYibMyPDytxvQ4WOfXFwM=; b=Qe0YwKS4uPDZzBpBTPdjKupkh5daz5UCSGxtng9Z4El0xQLSuCybuOSl3se0j8dRcA rFGggXUl/Oj9vLuPubJfWlAHFtvK95v690ViMcVjQUBrKjoQW/G6kfilia7Mkc6qLKCq KRSBPzaoCFlbnE186sUTIbdiORgxdfsth8UUwf33tHQfXgwkHBTgjPcg/hWjqEJIl5lH iaT0n8i907CnE2M5bUhPO75CzW77z85FGVrKFQ/UWxaqM0g4Uvp8Eq3g2ixbUa6Du17L jyru9/kXsD1fZRqQ5+5vgnkoZdzJeADRIFADhtX2YLe1mq/TIns+Tlqfx4Xyoz75SOmO rMqQ== X-Gm-Message-State: AD7BkJKgWUIGS22zRevYMn7ujt08n/VblOFs2uOwW+rJ8QEeVg0nozTtmlqW+SkY7jbCjw== X-Received: by 10.194.216.99 with SMTP id op3mr27791864wjc.26.1456939030658; Wed, 02 Mar 2016 09:17:10 -0800 (PST) Received: from groucho.site (ip9234e209.dynamic.kabel-deutschland.de. [146.52.226.9]) by smtp.gmail.com with ESMTPSA id ka7sm36741410wjb.8.2016.03.02.09.17.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 02 Mar 2016 09:17:09 -0800 (PST) From: Ulrich Hecht To: linux-renesas-soc@vger.kernel.org, laurent.pinchart@ideasonboard.com, niklas.soderlund@ragnatech.se Cc: linux-media@vger.kernel.org, magnus.damm@gmail.com, hans.verkuil@cisco.com, ian.molton@codethink.co.uk, lars@metafoo.de, william.towle@codethink.co.uk, Rob Taylor , Ulrich Hecht Subject: [PATCH v2 8/9] ARM: shmobile: lager dts: Add entries for VIN HDMI input support Date: Wed, 2 Mar 2016 18:16:36 +0100 Message-Id: <1456938997-29971-9-git-send-email-ulrich.hecht+renesas@gmail.com> X-Mailer: git-send-email 2.6.4 In-Reply-To: <1456938997-29971-1-git-send-email-ulrich.hecht+renesas@gmail.com> References: <1456938997-29971-1-git-send-email-ulrich.hecht+renesas@gmail.com> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 From: William Towle Add DT entries for vin0, vin0_pins, and adv7612. Signed-off-by: William Towle Signed-off-by: Rob Taylor [uli: added interrupt, renamed endpoint] Signed-off-by: Ulrich Hecht --- arch/arm/boot/dts/r8a7790-lager.dts | 40 ++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index aa6ca92..a5f727c 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts @@ -414,7 +414,12 @@ renesas,function = "usb2"; }; - vin1_pins: vin { + 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"; }; @@ -590,6 +595,20 @@ reg = <0x12>; }; + hdmi-in@4c { + compatible = "adi,adv7612"; + reg = <0x4c>; + interrupt-parent = <&gpio1>; + interrupts = <20 IRQ_TYPE_LEVEL_LOW>; + remote = <&vin0>; + + port { + adv7612: endpoint { + remote-endpoint = <&vin0ep0>; + }; + }; + }; + composite-in@20 { compatible = "adi,adv7180"; reg = <0x20>; @@ -705,6 +724,25 @@ status = "okay"; }; +/* HDMI video input */ +&vin0 { + pinctrl-0 = <&vin0_pins>; + pinctrl-names = "default"; + + status = "ok"; + + port { + vin0ep0: endpoint { + remote-endpoint = <&adv7612>; + bus-width = <24>; + hsync-active = <0>; + vsync-active = <0>; + pclk-sample = <1>; + data-active = <1>; + }; + }; +}; + /* composite video input */ &vin1 { pinctrl-0 = <&vin1_pins>;