From patchwork Tue Aug 12 20:18:26 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 4714971 Return-Path: X-Original-To: patchwork-linux-arm@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 976559F375 for ; Tue, 12 Aug 2014 20:20:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BFC6220160 for ; Tue, 12 Aug 2014 20:20:47 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C45A42011B for ; Tue, 12 Aug 2014 20:20:46 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XHIX0-0000cX-MB; Tue, 12 Aug 2014 20:18:54 +0000 Received: from mail-lb0-f179.google.com ([209.85.217.179]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XHIWy-0000QC-Sq for linux-arm-kernel@lists.infradead.org; Tue, 12 Aug 2014 20:18:53 +0000 Received: by mail-lb0-f179.google.com with SMTP id v6so7457665lbi.10 for ; Tue, 12 Aug 2014 13:18:28 -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:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=P0H1D2VG9JYv168Ka+7zeMuknbr9YOPvsKnf08kyqNI=; b=lQhn1D/LYk3NAM6Xx1lqEXE0I0c4kpoKUUcuHXQgVrkxp4tkAKKLWPZIdVxl9ybp3b Ye3uJ4bdjIYOojNppw8y6uvNn/6SOy3JgTCsvFYiKUonkK2zu3oxfM4ivjpFtI1oFp4k qShqTLgtxTz+DBUU7DNINubHyNZLlXNISfu9LgSA2qJF2QEGa4t8u36z00SiU9ZpZ9Br iHJ1I5WA0hT1jYrunzZ51QmReOzsLtNEKQfFWBAl0Sw202Cug8oddtQX+IZbVGExRfRV QfkZlwelbrK6YURVl/+CZN63rC0QAcWnByC4FkYvV1dtWB9bMRsdMS6cxCcpSmTUKFpj Hu/w== X-Gm-Message-State: ALoCoQm/cm0jDOapS7kOT0TYfow8SLpf5h/l9oXYxrwngwacTGFhjjxjYtXu02B/4wAnRfawx3MQ X-Received: by 10.112.50.230 with SMTP id f6mr82147lbo.56.1407874708876; Tue, 12 Aug 2014 13:18:28 -0700 (PDT) Received: from wasted.cogentembedded.com (ppp27-19.pppoe.mtu-net.ru. [81.195.27.19]) by mx.google.com with ESMTPSA id a1sm1118200lak.45.2014.08.12.13.18.27 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Aug 2014 13:18:28 -0700 (PDT) From: Sergei Shtylyov To: horms@verge.net.au, linux-sh@vger.kernel.org, robh+dt@kernel.org, pawel.moll@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, devicetree@vger.kernel.org Subject: [PATCH v5 2/2] ARM: shmobile: lager: add VIN1/ADV7180 device nodes Date: Wed, 13 Aug 2014 00:18:26 +0400 Message-ID: <703960137.fSsccWupA3@wasted.cogentembedded.com> Organization: Cohent Embedded Inc. User-Agent: KMail/4.13.3 (Linux/3.11.10-301.fc20.x86_64; KDE/4.13.3; x86_64; ; ) In-Reply-To: <1793694.Z8xUpkGDQx@wasted.cogentembedded.com> References: <1793694.Z8xUpkGDQx@wasted.cogentembedded.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140812_131853_113823_54E14529 X-CRM114-Status: UNSURE ( 8.89 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: mark.rutland@arm.com, linux@arm.linux.org.uk, ben.dooks@codethink.co.uk, magnus.damm@gmail.com, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 From: Ben Dooks Add the Lager board specific device node part for VIN1 (composite video in); add the device node for Analog Devices ADV7180 video decoder to IIC2 bus. Add the necessary subnodes to interconnect VIN1 and ADV7180 devices. Signed-off-by: Ben Dooks [Sergei: rebased, edited changelog and summary] Signed-off-by: Sergei Shtylyov --- Changes in version 5: - edited changelog and summary; - resolved reject, refreshed patch. arch/arm/boot/dts/r8a7790-lager.dts | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) Index: renesas/arch/arm/boot/dts/r8a7790-lager.dts =================================================================== --- renesas.orig/arch/arm/boot/dts/r8a7790-lager.dts +++ renesas/arch/arm/boot/dts/r8a7790-lager.dts @@ -234,6 +234,11 @@ renesas,groups = "usb2"; renesas,function = "usb2"; }; + + vin1_pins: vin { + renesas,groups = "vin1_data8", "vin1_clk"; + renesas,function = "vin1"; + }; }; ðer { @@ -370,6 +375,19 @@ status = "ok"; pinctrl-0 = <&iic2_pins>; pinctrl-names = "default"; + + composite-in@20 { + compatible = "adi,adv7180"; + reg = <0x20>; + remote = <&vin1>; + + port { + adv7180: endpoint { + bus-width = <8>; + remote-endpoint = <&vin1ep0>; + }; + }; + }; }; &iic3 { @@ -405,3 +423,21 @@ pinctrl-0 = <&usb2_pins>; pinctrl-names = "default"; }; + +/* composite video input */ +&vin1 { + pinctrl-0 = <&vin1_pins>; + pinctrl-names = "default"; + + status = "ok"; + + port { + #address-cells = <1>; + #size-cells = <0>; + + vin1ep0: endpoint { + remote-endpoint = <&adv7180>; + bus-width = <8>; + }; + }; +};