From patchwork Thu Oct 8 21:45:49 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 7355941 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id EDE77BEEA4 for ; Thu, 8 Oct 2015 21:46:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0F6CB20522 for ; Thu, 8 Oct 2015 21:46:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 265BC2053A for ; Thu, 8 Oct 2015 21:46:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754189AbbJHVqX (ORCPT ); Thu, 8 Oct 2015 17:46:23 -0400 Received: from mail-lb0-f172.google.com ([209.85.217.172]:34681 "EHLO mail-lb0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754689AbbJHVp4 (ORCPT ); Thu, 8 Oct 2015 17:45:56 -0400 Received: by lbbwt4 with SMTP id wt4so61794009lbb.1 for ; Thu, 08 Oct 2015 14:45:54 -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=pXG/6QFTsP1wFhdM1YjsBIGGfsojMZc4koUymigQUCo=; b=mJfMrJNErydRX2/fCqwDMZukek4/S29226YCKy8Qbo1qtmfBmi3CBHsa01AGk1ndn+ SJZNt4lOve4DgZpDmeAgcAKgMFP+IjAfx0bfN3ONngyW1iFtUOIuhO8TH00zWN8BH2sF sZ7jC/cZIOzJcBunKdFh/EIK21DsvT4esJm/6ctdCdo39Z3XiOtooAZn0W6qNPuMESqQ FHIXARbWb5kI1osY8sGT7b3gq5c+UcGOfSrESB/qEd9HwSw+lavUj23fJnosCjqqoBkS 3bG0n7Olm9E3X6N7y9+tcFsxtFm4IcKlA3zSrsqXYwx1QrBlrGh+58LNtYol+zhA3qn1 VyyQ== X-Gm-Message-State: ALoCoQkKX3vGvdu0mgWAZJuPelIwQqpH9bvWYjE4ZKsvKXGRPga0wg+JbWGjZEBVFYBHalysFD6P X-Received: by 10.112.148.38 with SMTP id tp6mr4819886lbb.110.1444340754495; Thu, 08 Oct 2015 14:45:54 -0700 (PDT) Received: from wasted.cogentembedded.com (ppp83-237-252-73.pppoe.mtu-net.ru. [83.237.252.73]) by smtp.gmail.com with ESMTPSA id h5sm7519504lfh.35.2015.10.08.14.45.50 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Oct 2015 14:45:50 -0700 (PDT) From: Sergei Shtylyov 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: porter: add VIN0/ADV7180 DT support Date: Fri, 09 Oct 2015 00:45:49 +0300 Message-ID: <2169211.txWv7mmrno@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.9 (Linux/4.1.8-100.fc21.x86_64; KDE/4.14.9; x86_64; ; ) In-Reply-To: <1750082.WpWf34HsI6@wasted.cogentembedded.com> References: <1750082.WpWf34HsI6@wasted.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=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_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 Porter board dependent part of the VIN0 device node. Add the device node for Analog Devices ADV7180 video decoder to I2C2 bus. Add the necessary subnodes to interconnect VIN0 and ADV7180 devices. This patch is analogous to the commit 8d62f4f75320 ("ARM: shmobile: henninger: add VIN0/ADV7180 DT support") as there are no differences between the boards in this respect. Signed-off-by: Sergei Shtylyov --- This patch is against 'renesas-devel-20151008-v4.3-rc4' tag of Simon Horman's 'renesas.git' repo plus the Porter I2C2 support patch just posted. arch/arm/boot/dts/r8a7791-porter.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-porter.dts =================================================================== --- renesas.orig/arch/arm/boot/dts/r8a7791-porter.dts +++ renesas/arch/arm/boot/dts/r8a7791-porter.dts @@ -114,6 +114,11 @@ renesas,groups = "i2c2"; renesas,function = "i2c2"; }; + + vin0_pins: vin0 { + renesas,groups = "vin0_data8", "vin0_clk"; + renesas,function = "vin0"; + }; }; &scif0 { @@ -166,8 +171,38 @@ status = "okay"; clock-frequency = <400000>; + + composite-in@20 { + compatible = "adi,adv7180"; + reg = <0x20>; + remote = <&vin0>; + + port { + adv7180: endpoint { + bus-width = <8>; + remote-endpoint = <&vin0ep>; + }; + }; + }; }; &sata0 { status = "okay"; }; + +/* composite video input */ +&vin0 { + status = "ok"; + pinctrl-0 = <&vin0_pins>; + pinctrl-names = "default"; + + port { + #address-cells = <1>; + #size-cells = <0>; + + vin0ep: endpoint { + remote-endpoint = <&adv7180>; + bus-width = <8>; + }; + }; +};