From patchwork Tue Oct 18 15:02:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 9382309 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 9D4536086B for ; Tue, 18 Oct 2016 15:02:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8E04F2963B for ; Tue, 18 Oct 2016 15:02:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 828F12963A; Tue, 18 Oct 2016 15:02: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.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, 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 33E4C2963B for ; Tue, 18 Oct 2016 15:02:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935070AbcJRPCe (ORCPT ); Tue, 18 Oct 2016 11:02:34 -0400 Received: from mail-qk0-f195.google.com ([209.85.220.195]:33669 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935048AbcJRPCc (ORCPT ); Tue, 18 Oct 2016 11:02:32 -0400 Received: by mail-qk0-f195.google.com with SMTP id f128so16329836qkb.0; Tue, 18 Oct 2016 08:02:32 -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=7u+koY19zQ99mI7ZNibiftyTUoYMCpe9ftWvXh5TrKA=; b=Xa7eicdwvZ38rs3t8QtZkhY0vlM0h1+kmczzl7kSDnFHsPoR8U/IWqDppC7UYHF6C7 xW2IRAll8WH7mPum+KTRihGN1pxapzF06gFjzl4Idik0by1jSn/6f1sfucYC9msAox93 To41J5c1YVic7F9ntuiNgAUKFR1oRmmII8fonSADGVeEN6vsrV5nlU+kFe8t3cWfm/ze Mcv8pgqgwQ3NcvPcPsa2YhFYSjTsAuf+ocYSZScdUxVpNzh9WWuQbiOhbXWwoxkWZFiu ocirvgVWAK0k+Wp5E4o5NIMUwsSRTZmSrFR2P5Ikn/19xXF2VdFq9PcKbUB/gJqAbHFa KknQ== 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=7u+koY19zQ99mI7ZNibiftyTUoYMCpe9ftWvXh5TrKA=; b=ECrdNMJBzBTNKkYKWU3XJ3s+daw1UPiaxaHPfOBAPqRNBYMj50nrJIb1KLGZE033CS 45kEBIMl8mVeHrlzvyjPdqoKzbQg3Ed1nZ+IeNjPf0JjwL96Q7IHO47dLjDYv72e4JQP HEEPO9PPthcAicTyKC/kk8FHEyMXadfsrkLR1YHIKeUmQXfhyteu9t8r7L5zy032YLdO dyM1Y5RrBUYtJDP2JuVwpil3vGFiJBOnMNPcRu7oY1hPXUomGFRP7sGrHZEPNnhqVNKr 131f2X51SC/9uKc9jUPaZ0YpmNBrx63CuL2TW4MKBM5AxeWMOK/OIpsS8+tTugc9JjHL KBzw== X-Gm-Message-State: AA6/9RnVGyGfjUx8rAOxt42qeyGxWBdJx8ePhVXQ/mBqX2hZMCc8Ls8f8JAma9zauofYAg== X-Received: by 10.194.87.7 with SMTP id t7mr515014wjz.196.1476802951697; Tue, 18 Oct 2016 08:02:31 -0700 (PDT) Received: from groucho.site (ip9234fd2a.dynamic.kabel-deutschland.de. [146.52.253.42]) by smtp.gmail.com with ESMTPSA id af4sm53969544wjc.17.2016.10.18.08.02.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Oct 2016 08:02:31 -0700 (PDT) From: Ulrich Hecht To: horms@verge.net.au Cc: linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org, magnus.damm@gmail.com, laurent.pinchart@ideasonboard.com, hans.verkuil@cisco.com, niklas.soderlund@ragnatech.se, geert@linux-m68k.org, sergei.shtylyov@cogentembedded.com, Ulrich Hecht Subject: [PATCH v2 2/3] ARM: dts: gose: add HDMI input Date: Tue, 18 Oct 2016 17:02:22 +0200 Message-Id: <1476802943-5189-3-git-send-email-ulrich.hecht+renesas@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1476802943-5189-1-git-send-email-ulrich.hecht+renesas@gmail.com> References: <1476802943-5189-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 Identical to the setup on Lager. Signed-off-by: Ulrich Hecht Reviewed-by: Laurent Pinchart --- arch/arm/boot/dts/r8a7793-gose.dts | 64 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/arch/arm/boot/dts/r8a7793-gose.dts b/arch/arm/boot/dts/r8a7793-gose.dts index dc311eb..a47ea4b 100644 --- a/arch/arm/boot/dts/r8a7793-gose.dts +++ b/arch/arm/boot/dts/r8a7793-gose.dts @@ -253,6 +253,17 @@ }; }; + hdmi-in { + compatible = "hdmi-connector"; + type = "a"; + + port { + hdmi_con_in: endpoint { + remote-endpoint = <&adv7612_in>; + }; + }; + }; + hdmi-out { compatible = "hdmi-connector"; type = "a"; @@ -374,6 +385,11 @@ groups = "audio_clk_a"; function = "audio_clk"; }; + + vin0_pins: vin0 { + groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk"; + function = "vin0"; + }; }; ðer { @@ -531,6 +547,33 @@ }; }; + hdmi-in@4c { + compatible = "adi,adv7612"; + reg = <0x4c>; + interrupt-parent = <&gpio4>; + interrupts = <2 IRQ_TYPE_LEVEL_LOW>; + default-input = <0>; + + port { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + adv7612_in: endpoint { + remote-endpoint = <&hdmi_con_in>; + }; + }; + + port@2 { + reg = <2>; + adv7612_out: endpoint { + remote-endpoint = <&vin0ep2>; + }; + }; + }; + }; + eeprom@50 { compatible = "renesas,r1ex24002", "atmel,24c02"; reg = <0x50>; @@ -558,3 +601,24 @@ &ssi1 { shared-pin; }; + +/* HDMI video input */ +&vin0 { + status = "okay"; + pinctrl-0 = <&vin0_pins>; + pinctrl-names = "default"; + + port { + #address-cells = <1>; + #size-cells = <0>; + + vin0ep2: endpoint { + remote-endpoint = <&adv7612_out>; + bus-width = <24>; + hsync-active = <0>; + vsync-active = <0>; + pclk-sample = <1>; + data-active = <1>; + }; + }; +};