From patchwork Wed Aug 6 18:38:22 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 4687991 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 1A4439F37E for ; Wed, 6 Aug 2014 18:38:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 27B0C20160 for ; Wed, 6 Aug 2014 18:38:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3C7A120145 for ; Wed, 6 Aug 2014 18:38:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756613AbaHFSi2 (ORCPT ); Wed, 6 Aug 2014 14:38:28 -0400 Received: from mail-la0-f50.google.com ([209.85.215.50]:33378 "EHLO mail-la0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756413AbaHFSi1 (ORCPT ); Wed, 6 Aug 2014 14:38:27 -0400 Received: by mail-la0-f50.google.com with SMTP id gf5so2640190lab.9 for ; Wed, 06 Aug 2014 11:38:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding :content-type; bh=GVoMed7euC7MKtRVoH5yBfzf7QlqWg8sygHEdG7i2Zc=; b=dyJffWj1PtBfza31wSfYaDD1vAobR0A1XBqDo36kvwJAeQ5DpV90RCp41VkfOO3aCs DFLzvBwpWpxEwnYOTkcV5aDIkQqdmw7/t91jbyMD0ub5dzF2b2bf9eWE/tdc93tV2i6T lpzIpaHIKltCvY8KdovV21TMjU1jc7vY58qGFOn4gCHaZTGL+YwpafO73nL7OalzYoVX fqgVWBh6H7K2T6b55/s02a3Ca5UpHMpMxjGjvWBwdTGDzdnAAXSJknX7nTN9Q1HGZZ8e nfc0yqXDeiXt4S8Qab8J2y7INfHFB6nlX9phs9th+54EKVqcAq9r+ZyxdS/S4F+N1uw+ NEYw== X-Gm-Message-State: ALoCoQnzXTF4RqBNNK4v9hvweh75sp3jU81D+W20HrYRKJEYspwWJBhOppl6ZU0LrEFzL6EPJ2sZ X-Received: by 10.152.5.102 with SMTP id r6mr12574520lar.81.1407350306030; Wed, 06 Aug 2014 11:38:26 -0700 (PDT) Received: from wasted.cogentembedded.com (ppp83-237-254-65.pppoe.mtu-net.ru. [83.237.254.65]) by mx.google.com with ESMTPSA id j20sm2461700lbo.3.2014.08.06.11.38.24 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Aug 2014 11:38:25 -0700 (PDT) From: sergei.shtylyov@cogentembedded.com X-Google-Original-From: SergeiShtylyov@wasted.cogentembedded.com To: horms@verge.net.au, linux-sh@vger.kernel.org, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, devicetree@vger.kernel.org Cc: magnus.damm@gmail.com, linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: shmobile: koelsch: add VIN1/ADV7180 DT support Date: Wed, 06 Aug 2014 22:38:22 +0400 Message-ID: <2131152.vMTPsJUYLQ@wasted.cogentembedded.com> User-Agent: KMail/4.13.3 (Linux/3.11.10-301.fc20.x86_64; KDE/4.13.3; x86_64; ; ) In-Reply-To: <201408020402.14560.sergei.shtylyov@cogentembedded.com> References: <201408020402.14560.sergei.shtylyov@cogentembedded.com> MIME-Version: 1.0 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Define the Koelsch board dependent part of the VIN1 device node. Add the device node for Analog Devices ADV7180 video decoder to I2C2 bus. Add the necessary subnodes to interconnect VIN1 and ADV7180 devices. Signed-off-by: Sergei Shtylyov --- This patch is against the 'renesas-devel-v3.16-20140804' tag of Simon Horman's 'renesas.git' repo. It requires the 'soc_camera' and 'rcar_vin' device tree support patches (already merged to the 'media_tree.git' repo) in order to work. arch/arm/boot/dts/r8a7791-koelsch.dts | 35 ++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: renesas/arch/arm/boot/dts/r8a7791-koelsch.dts =================================================================== --- renesas.orig/arch/arm/boot/dts/r8a7791-koelsch.dts +++ renesas/arch/arm/boot/dts/r8a7791-koelsch.dts @@ -289,6 +289,11 @@ renesas,groups = "usb1"; renesas,function = "usb1"; }; + + vin1_pins: vin1 { + renesas,groups = "vin1_data8", "vin1_clk"; + renesas,function = "vin1"; + }; }; ðer { @@ -416,6 +421,19 @@ status = "okay"; clock-frequency = <400000>; + composite-in@20 { + compatible = "adi,adv7180"; + reg = <0x20>; + remote = <&vin1>; + + port { + adv7180: endpoint { + bus-width = <8>; + remote-endpoint = <&vin1ep>; + }; + }; + }; + eeprom@50 { compatible = "renesas,24c02"; reg = <0x50>; @@ -463,3 +481,20 @@ &cpu0 { cpu0-supply = <&vdd_dvfs>; }; + +/* composite video input */ +&vin1 { + status = "ok"; + pinctrl-0 = <&vin1_pins>; + pinctrl-names = "default"; + + port { + #address-cells = <1>; + #size-cells = <0>; + + vin1ep: endpoint { + remote-endpoint = <&adv7180>; + bus-width = <8>; + }; + }; +};