From patchwork Wed Feb 17 15:48:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 8340581 X-Patchwork-Delegate: horms@verge.net.au Return-Path: X-Original-To: patchwork-linux-renesas-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id DDD219F372 for ; Wed, 17 Feb 2016 15:49:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3E98320376 for ; Wed, 17 Feb 2016 15:49:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3C3F5203F3 for ; Wed, 17 Feb 2016 15:49:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161726AbcBQPtW (ORCPT ); Wed, 17 Feb 2016 10:49:22 -0500 Received: from mail-wm0-f41.google.com ([74.125.82.41]:37560 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161718AbcBQPtT (ORCPT ); Wed, 17 Feb 2016 10:49:19 -0500 Received: by mail-wm0-f41.google.com with SMTP id g62so34221402wme.0; Wed, 17 Feb 2016 07:49:19 -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=zqe4IsYmAMkkyUFZfXMyr67GPphPFu6dDk1s7fyujTs=; b=ittn8ROjZl6wpovgIdxrBzwmiSk28YlhYyoeie0vx0kEimNIVeNX9UEo9uWrpwTxlc yPy6a01OnhPxk3k8egwCAdiIATiXgR1TG1BEjpOLvEmEzMrDpf0BKC2wXzL2gdCPE2vv AOJltdVGflUPiikG9rIStpTqsNjMWbS9ut1SjukHyuYQZWDVbMMXlwCMPV2EbKineuAB riZgpFIQlnbKRjiYHY+GPUoQWYQuPirusipFr0AXQrI9gmU+vDknOijGPM6Hj1kODI+3 BzNG24E1kf6uzMHL9hgzvgO2d2UT1JCHZSVGjfzuEf9KOW00evwrgMptWMgRH8v7cwZ7 9Ztw== 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=zqe4IsYmAMkkyUFZfXMyr67GPphPFu6dDk1s7fyujTs=; b=DGnbSB3oW8FKg+Oh1Bp1AYPCq1aJdC0KIQ/sZo8x3Tpe7/FBi95PqSw7lY59vkTRAH q1xuoPHFdty5xUPbiIUfoKJqt7269axbd3R6JBeawvwajwQzQQXmLxMlSTGNkVBBcFUs sYnngg7EpXadPM2YKHAjU4zwtgZRiiCibKhCVBlooplbqBire92NwqJG9wyeWq90IWmP WnwSdRUH2WjRUgVxOLhcFPOvW/05wfGcyhY0ijDc/1y02hQkNqdCqTnLDKpyuNe2lPWs IlC8DIbKbH2tyEJVMSnSPJ4FvqdRYwS3rIfB39O73tlbPG2IRhr4YeSlhUMc/p9sU6tT 1gtg== X-Gm-Message-State: AG10YOSIvIaDLFx+K4//IYCCgvEBNlelFS/lJGd5ImqBkPWmdCXVfMYxxXG7HaoaFIFDAA== X-Received: by 10.28.144.10 with SMTP id s10mr4242365wmd.97.1455724158346; Wed, 17 Feb 2016 07:49:18 -0800 (PST) Received: from groucho.site (ip9234e209.dynamic.kabel-deutschland.de. [146.52.226.9]) by smtp.gmail.com with ESMTPSA id u4sm2136725wjz.4.2016.02.17.07.49.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 17 Feb 2016 07:49:17 -0800 (PST) From: Ulrich Hecht To: linux-renesas-soc@vger.kernel.org, niklas.soderlund@ragnatech.se Cc: linux-media@vger.kernel.org, magnus.damm@gmail.com, laurent.pinchart@ideasonboard.com, hans.verkuil@cisco.com, ian.molton@codethink.co.uk, lars@metafoo.de, william.towle@codethink.co.uk, Rob Taylor , Ulrich Hecht Subject: [PATCH/RFC 8/9] ARM: shmobile: lager dts: Add entries for VIN HDMI input support Date: Wed, 17 Feb 2016 16:48:44 +0100 Message-Id: <1455724125-13004-9-git-send-email-ulrich.hecht+renesas@gmail.com> X-Mailer: git-send-email 2.6.4 In-Reply-To: <1455724125-13004-1-git-send-email-ulrich.hecht+renesas@gmail.com> References: <1455724125-13004-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 cdc0414..920205e 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts @@ -390,7 +390,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"; }; @@ -562,6 +567,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>; @@ -677,6 +696,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>;