From patchwork Tue Oct 18 15:01: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: 9382295 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 40C40600CA for ; Tue, 18 Oct 2016 15:01:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2FB8329643 for ; Tue, 18 Oct 2016 15:01:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 242D929648; Tue, 18 Oct 2016 15:01:57 +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 4367D29640 for ; Tue, 18 Oct 2016 15:01:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934993AbcJRPBs (ORCPT ); Tue, 18 Oct 2016 11:01:48 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:34187 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932186AbcJRPBq (ORCPT ); Tue, 18 Oct 2016 11:01:46 -0400 Received: by mail-lf0-f68.google.com with SMTP id x23so27333899lfi.1; Tue, 18 Oct 2016 08:01:45 -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=2PVJ/3wf8VsH3/JkvdOuCwtQYEyTMxBwBASwzskxUdA=; b=B3AxW5l2Tarnvu8ckAXAg7qiA28BefUUNWev8Y5rzUTFSwf2yUg1JeDN1eZLnn+v+8 MRmS4rUM5uFGu/BI9LOoIFb1ZusuqfRXdrY2ovj059j4R9ufxrVqKzx32tEBFwRbmxoH Gn1x4Rk2jxQDALr7EcEgeQmJhjlj2m0Yd/kb1z45TDcmt2QDTCjax8CjM8ZzdjUJyWcV uNOsAZfkivLfoD2PQoiHu1Lga4FwPDdRM9nfeWFuvDx6WKwtHwo6X07bYEvu8tDD3CB7 HnLwIz0wTBUh2PrxsWRwiVkzl0gUKQYQgs3u0LT+Rm8cseGBxffKtCqmVniIvaFdxuRl 5oEA== 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=2PVJ/3wf8VsH3/JkvdOuCwtQYEyTMxBwBASwzskxUdA=; b=jwOB7NDv9Y8XFWde+X/irOvwHOPbGC2rmU19kcWYQhhFwxYA9kXShGLyb7g7Ff2nPd dQ841bWjW2jmnrsm46te1ZBpxzLLMXQdMpJuzp4bsMRxxKxdYFpI88hlP6eHRoxffao7 ErFCXuzdKD+G29qWCz4vIXLHgb8blQMfwEoR5xYgWOM3bi3/D3sIJugwkioXzQ4QsIU3 G0AWSb2RWSw8i3S0mBMqnIsPik2fB4KHERKZMPQupX5jItxuOsg8mfo/nt/5EtldaiW+ CZf+ItArF+7EB89WxSuopGdLtyF7eBlud6585G0oJ0FyCxe0gSYcayaxOMSiu5Jz7Bck ngfA== X-Gm-Message-State: AA6/9RkfG+0LNy1g9sfLwMS12XWhmG4yaOsJqWyiXOzRim1PoL/qUpoUwQd7DiK3jjXbcQ== X-Received: by 10.28.159.208 with SMTP id i199mr996969wme.2.1476802904816; Tue, 18 Oct 2016 08:01:44 -0700 (PDT) Received: from groucho.site (ip9234fd2a.dynamic.kabel-deutschland.de. [146.52.253.42]) by smtp.gmail.com with ESMTPSA id us3sm63466362wjb.32.2016.10.18.08.01.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Oct 2016 08:01:44 -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, william.towle@codethink.co.uk, niklas.soderlund@ragnatech.se, geert@linux-m68k.org, sergei.shtylyov@cogentembedded.com, Hans Verkuil , Ulrich Hecht Subject: [PATCH v2 2/2] ARM: dts: koelsch: add HDMI input Date: Tue, 18 Oct 2016 17:01:34 +0200 Message-Id: <1476802894-5105-3-git-send-email-ulrich.hecht+renesas@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1476802894-5105-1-git-send-email-ulrich.hecht+renesas@gmail.com> References: <1476802894-5105-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: Hans Verkuil Add support in the dts for the HDMI input. Based on the Lager dts patch from Ultich Hecht. Signed-off-by: Hans Verkuil [uli: removed "renesas," prefixes from pfc nodes] Signed-off-by: Ulrich Hecht --- arch/arm/boot/dts/r8a7791-koelsch.dts | 68 +++++++++++++++++++++++++++++++++-- 1 file changed, 66 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts b/arch/arm/boot/dts/r8a7791-koelsch.dts index f17bfa0..c457b43 100644 --- a/arch/arm/boot/dts/r8a7791-koelsch.dts +++ b/arch/arm/boot/dts/r8a7791-koelsch.dts @@ -265,12 +265,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>; }; }; @@ -414,6 +425,11 @@ function = "usb1"; }; + vin0_pins: vin0 { + groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk"; + function = "vin0"; + }; + vin1_pins: vin1 { groups = "vin1_data8", "vin1_clk"; function = "vin1"; @@ -617,7 +633,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>; + + ports { + #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>; }; }; }; @@ -699,6 +742,27 @@ cpu0-supply = <&vdd_dvfs>; }; +/* 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>; + }; + }; +}; + /* composite video input */ &vin1 { status = "okay";