From patchwork Fri May 19 13:07:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 9737171 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 208FD601C2 for ; Fri, 19 May 2017 13:07:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1B2AA28731 for ; Fri, 19 May 2017 13:07:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0FD7D28804; Fri, 19 May 2017 13:07:20 +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=unavailable 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 BF50F28731 for ; Fri, 19 May 2017 13:07:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755336AbdESNHQ (ORCPT ); Fri, 19 May 2017 09:07:16 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:34202 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755217AbdESNHO (ORCPT ); Fri, 19 May 2017 09:07:14 -0400 Received: by mail-wm0-f66.google.com with SMTP id d127so18196878wmf.1; Fri, 19 May 2017 06:07:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=WPTBUxtTopLwDo6fjJWBt3y3Tol/pd1s+IhoqJAd4l4=; b=YPbadSmiBzWhDxV12v8BXrkED8rZu+RxPez2bltaZDrlK8QMdF1ONAyZbiLVlcs4Zs TQnTGnEIMY7jXp9Eiat6c4RNdOfGcC7jnnsfvho8Qo0iOExlSv+NWmO/76y8HT8m4+nw crNvkajqtkxBbEIKHPg4DiYOV4DRf08ztGxoYs8NNjMFiCGsmrwd5yLags9ctJLMUW8q S/ujSmmGuI7GUmvZHauKRxnvEfWsqe4ALXZuZxClfCJ/rYfVqKU0Pu8nklDJRtoaWDhm DdDO13WWQotI/qWjmz3UV2axU7ZIyGOHQizkNNYYoSeF6/crjF+b63nscF92fy6j0CPn eVAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=WPTBUxtTopLwDo6fjJWBt3y3Tol/pd1s+IhoqJAd4l4=; b=K74r/FzTyUuaRb8YpD6z+HPVyH3fCvBWOJvMcHG0RENfArNEG+GsdYfnOxL2U7Cf3e iOav2IAHOHJeNIaaMh+Vqj3dZ/J5Sxdc6Vb8gq2LT7+SwXC9miJNepMSlZ9FkTmPr4pa IzVy6SI/pN2fLoDNUS/+8C1awqAMf8mQ/Jp+qqm6BsUmDT2ciLoaPm54qK3XN5651FZX T7XC1yqM/RsjeyC5GxBxWJ6rzKl5/603muKMig2d9JLwHRizXP9nyFDPKpkFnAZbU26u z+/I1OZasNQ3nmXd82yle1cqGY/3v4Ti0PuXe1LLYPQJgjuk3MzzrdUh+iJpNxMjgMhP +qaA== X-Gm-Message-State: AODbwcBX5LAw51NK+uft1sSOrnDdea/24NUl5MKEeeOiPx0WAMS1Mxko cDJqNqQdGoPcrRn/I08= X-Received: by 10.28.84.14 with SMTP id i14mr7060056wmb.81.1495199231929; Fri, 19 May 2017 06:07:11 -0700 (PDT) Received: from groucho.site (ipbcc0294b.dynamic.kabel-deutschland.de. [188.192.41.75]) by smtp.gmail.com with ESMTPSA id v27sm2158300wra.19.2017.05.19.06.07.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 19 May 2017 06:07:11 -0700 (PDT) From: Ulrich Hecht To: linux-renesas-soc@vger.kernel.org, laurent.pinchart@ideasonboard.com Cc: linux-media@vger.kernel.org, geert@linux-m68k.org, magnus.damm@gmail.com, hans.verkuil@cisco.com, niklas.soderlund@ragnatech.se, sergei.shtylyov@cogentembedded.com, horms@verge.net.au, devicetree@vger.kernel.org, Ulrich Hecht Subject: [PATCH v3 1/4] ARM: dts: gose: add HDMI input Date: Fri, 19 May 2017 15:07:01 +0200 Message-Id: <1495199224-16337-2-git-send-email-ulrich.hecht+renesas@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1495199224-16337-1-git-send-email-ulrich.hecht+renesas@gmail.com> References: <1495199224-16337-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 Koelsch. Signed-off-by: Ulrich Hecht Reviewed-by: Laurent Pinchart --- arch/arm/boot/dts/r8a7793-gose.dts | 68 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 66 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/r8a7793-gose.dts b/arch/arm/boot/dts/r8a7793-gose.dts index 95e51b7..30f0835 100644 --- a/arch/arm/boot/dts/r8a7793-gose.dts +++ b/arch/arm/boot/dts/r8a7793-gose.dts @@ -253,12 +253,23 @@ }; }; + hdmi-in { + compatible = "hdmi-connector"; + type = "a"; + + port { + hdmi_con_in: endpoint { + remote-endpoint = <&adv7612_in>; + }; + }; + }; + hdmi-out { compatible = "hdmi-connector"; type = "a"; port { - hdmi_con: endpoint { + hdmi_con_out: endpoint { remote-endpoint = <&adv7511_out>; }; }; @@ -395,6 +406,11 @@ groups = "audio_clk_a"; function = "audio_clk"; }; + + vin0_pins: vin0 { + groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk"; + function = "vin0"; + }; }; ðer { @@ -552,7 +568,34 @@ port@1 { reg = <1>; adv7511_out: endpoint { - remote-endpoint = <&hdmi_con>; + remote-endpoint = <&hdmi_con_out>; + }; + }; + }; + }; + + 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>; }; }; }; @@ -606,3 +649,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>; + }; + }; +};