From patchwork Wed Jul 6 15:39:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 9216563 X-Patchwork-Delegate: horms@verge.net.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A122F60B16 for ; Wed, 6 Jul 2016 15:41:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 92A6326CF9 for ; Wed, 6 Jul 2016 15:41:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 878A326CFB; Wed, 6 Jul 2016 15:41:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 328F626E1A for ; Wed, 6 Jul 2016 15:41:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755253AbcGFPk4 (ORCPT ); Wed, 6 Jul 2016 11:40:56 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:35437 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754922AbcGFPkv (ORCPT ); Wed, 6 Jul 2016 11:40:51 -0400 Received: by mail-wm0-f65.google.com with SMTP id a66so36502933wme.2; Wed, 06 Jul 2016 08:39:59 -0700 (PDT) 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=2n5BmnpWP5MVPW54VVGcD1sTHAou2SMBu4w6445dw2M=; b=LjrQje8kyLJemacucBmDoIra7ul+jGekg16idpKigl7beBMk9lLsG5v0HO9iz4EOBj cicKNooUfNaHfkCrOItR7kHtwdTvl30haJ56qKE4eCYxSAvb3grFr1vGv4liWd0Dxumh bb9iTT66g3wxcs1hIbTNQsgKXJIv59+e6ZiR1KZSw4ZuVWSpu95kZbylwGmx2QGctPm2 ifvZ3Q3SfFSYiugHRZQD4QnPZWEENfUY/L0bYibjXB5mQRBwrmhfJXK4qpknoHeBqAcS fR7aPIfRSRUNpNlgMNub7u4i8R59ZqQL9Oxxa+MlsB55gP/E2mdMdVBUSOlBclWFwWu7 5g5g== 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=2n5BmnpWP5MVPW54VVGcD1sTHAou2SMBu4w6445dw2M=; b=BYo7ssQ1oQETwa185KQyW2wOzQtAJa2xt94PkLD1Z1ydOW6CkokZE3fjl8MrzPM9Vd TPB7meon8HXmF5XxzNq2LsS4fYA4oW9bFJV6SVbvWgBVSp3Y2Ts64rCVvuwaGs9yDvOx AySJAElnLHNMoOk8zkgFCPqqEC66oKSKOuEhlDUQuCaONXrwVgbmgDaOeLLIz2TdmZ1t QDHiJ3cpvJT79dcmytlouvbMWbHoWAFdz+gbo1F0NWz/Y3Dzr11rk71RznO9fMzUptJN 4OLo3dAy2JaRF6Wt1BnMo7piluPuLojFA5hXCfooIYd5LSPbWYBLJrImK3MvaUAvdmnW cjgg== X-Gm-Message-State: ALyK8tL1lGm871cuw5zjTwqVidNiL8o6R4fU3zbVXI8go+Nu5zinAUF+H8796kPx2C3S+w== X-Received: by 10.28.199.139 with SMTP id x133mr20497323wmf.45.1467819598571; Wed, 06 Jul 2016 08:39:58 -0700 (PDT) Received: from groucho.site (ip9234f10a.dynamic.kabel-deutschland.de. [146.52.241.10]) by smtp.gmail.com with ESMTPSA id v70sm1842627wmf.18.2016.07.06.08.39.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 06 Jul 2016 08:39:58 -0700 (PDT) From: Ulrich Hecht To: hans.verkuil@cisco.com Cc: niklas.soderlund@ragnatech.se, linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org, magnus.damm@gmail.com, laurent.pinchart@ideasonboard.com, william.towle@codethink.co.uk, Rob Taylor , Ulrich Hecht Subject: [PATCH v5 2/4] ARM: dts: lager: Add entries for VIN HDMI input support Date: Wed, 6 Jul 2016 17:39:34 +0200 Message-Id: <1467819576-17743-3-git-send-email-ulrich.hecht+renesas@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1467819576-17743-1-git-send-email-ulrich.hecht+renesas@gmail.com> References: <1467819576-17743-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-Virus-Scanned: ClamAV using ClamSMTP From: William Towle Add DT entries for vin0, vin0_pins, and adv7612. Sets the 'default-input' property for ADV7612, enabling image and video capture without the need to have userspace specifying routing. Signed-off-by: William Towle Signed-off-by: Rob Taylor [uli: added interrupt, renamed endpoint, merged default-input] Signed-off-by: Ulrich Hecht --- arch/arm/boot/dts/r8a7790-lager.dts | 41 ++++++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index 5e43763..263c7b9 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts @@ -427,7 +427,12 @@ function = "usb2"; }; - vin1_pins: vin1 { + vin0_pins: vin0 { + groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk"; + function = "vin0"; + }; + + vin1_pins: vin { groups = "vin1_data8", "vin1_clk"; function = "vin1"; }; @@ -608,6 +613,21 @@ reg = <0x12>; }; + hdmi-in@4c { + compatible = "adi,adv7612"; + reg = <0x4c>; + interrupt-parent = <&gpio1>; + interrupts = <20 IRQ_TYPE_LEVEL_LOW>; + remote = <&vin0>; + default-input = <0>; + + port { + adv7612: endpoint { + remote-endpoint = <&vin0ep0>; + }; + }; + }; + composite-in@20 { compatible = "adi,adv7180"; reg = <0x20>; @@ -723,6 +743,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>;