From patchwork Tue Oct 18 15:01:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 9382299 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 C698D600CA 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 B6BDE2963A for ; Tue, 18 Oct 2016 15:01:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AB1AB29640; 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=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 01BDE2963E for ; Tue, 18 Oct 2016 15:01:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934860AbcJRPBq (ORCPT ); Tue, 18 Oct 2016 11:01:46 -0400 Received: from mail-qk0-f194.google.com ([209.85.220.194]:34462 "EHLO mail-qk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935006AbcJRPBn (ORCPT ); Tue, 18 Oct 2016 11:01:43 -0400 Received: by mail-qk0-f194.google.com with SMTP id n189so17069365qke.1; Tue, 18 Oct 2016 08:01:43 -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=HAzherFHb63kYvicpywEwD2GyzO3iARLl6GkARz/ujk=; b=Djvw9JfBzWWodiLzxpXkNil2c9huG4DZ/RjhhQg0liFRTDOPO6sW7losb6Oj5Ucd11 i1NrUyPekoPXS2zmawEXVpTaKtV1hA4fyyHAUhDEmBmm/iDqCsew7+21Vaaw5OOp1Hdt Iljxf7v65sapzOlqz3ua1T6iFalCPF8RFzOqNhTdMp64R90vlSONUuTaH2kSWrOdWW5U gygdszxxSqENaZWdFJLLnScg8Rum8G78V9SnsBYSTQ24IoOMCbsOfWUXMjsOGalVlJzY R8OTSBNZVW3f9Hvv8XUlcR4EqwtdCYtr5dOO6dAz5V1qibhznWHy2KUppWCNCglAEx3M qnug== 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=HAzherFHb63kYvicpywEwD2GyzO3iARLl6GkARz/ujk=; b=j+oIXshLNJrUaak1fvlm2c8E/SNqdilGSPj7tEuBgkS6MJNox3J8srmRCkWygM+h9B vCPf4sQVWoafqd5VNq484Kz3GxhLcfI2Qj7IWAm3rnRlARRN0G8/AGNvZrOXtCH9yX9x 3yU2QVvSE7CWhLlsSRuqn4X/858gaNvdCkJAsX5nruAa0FHN5bNW2HR48UVNQCkn2dwp 6yB9VYAcSC/AJTzzn//QPbrkIg5UmKAz9g1fE4/TCiwhT70UdKbHaPuzZWhPtCrKB9cp v4krLt+yPolkstanBkr/4fayc8PQk8RbUoD0nF8x03+Vr8eS0IvJAmtQgsKTjMBbpJ21 GHoA== X-Gm-Message-State: AA6/9RmyNrGxpca7MzO7lGdzsrqsjEikzYR67Zo3xdlKp9XXacanY1kmCXW2Ryf0IpnQWQ== X-Received: by 10.194.176.162 with SMTP id cj2mr495546wjc.25.1476802902529; Tue, 18 Oct 2016 08:01:42 -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.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Oct 2016 08:01:41 -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, Rob Taylor , Ulrich Hecht Subject: [PATCH v2 1/2] ARM: dts: lager: Add entries for VIN HDMI input support Date: Tue, 18 Oct 2016 17:01:33 +0200 Message-Id: <1476802894-5105-2-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: 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 | 66 +++++++++++++++++++++++++++++++++++-- 1 file changed, 64 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index 52b56fc..4342682 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts @@ -231,12 +231,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>; }; }; @@ -427,6 +438,11 @@ function = "usb2"; }; + vin0_pins: vin0 { + groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk"; + function = "vin0"; + }; + vin1_pins: vin1 { groups = "vin1_data8", "vin1_clk"; function = "vin1"; @@ -646,7 +662,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 = <&gpio1>; + interrupts = <20 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>; }; }; }; @@ -722,6 +765,25 @@ status = "okay"; }; +/* HDMI video input */ +&vin0 { + pinctrl-0 = <&vin0_pins>; + pinctrl-names = "default"; + + status = "okay"; + + port { + 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 { pinctrl-0 = <&vin1_pins>;