From patchwork Thu Dec 24 22:45:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 7920121 Return-Path: X-Original-To: patchwork-linux-arm@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 2306EBEEE5 for ; Thu, 24 Dec 2015 22:48:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0AAAC2047C for ; Thu, 24 Dec 2015 22:48:58 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1668720444 for ; Thu, 24 Dec 2015 22:48:57 +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 1aCEe2-0007G0-JF; Thu, 24 Dec 2015 22:46:02 +0000 Received: from mail-lb0-x233.google.com ([2a00:1450:4010:c04::233]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aCEdz-0007Eh-Nl for linux-arm-kernel@lists.infradead.org; Thu, 24 Dec 2015 22:46:00 +0000 Received: by mail-lb0-x233.google.com with SMTP id oh2so64618299lbb.3 for ; Thu, 24 Dec 2015 14:45:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding :content-type; bh=iXxKr7KLXfMNBA9I89Dr5vdgRI98YIIei2SkQB8DkBQ=; b=y8VJ53QQHQEh2r/5VZW/wTBw/y2EvrUNu+mA+oxuLafzWL+m7ZSVk6T+HRTNY2I0Jk YgNEl9BnY9yBZu68uuC9BLdk/0mQWM611KBWpxw3MecS9ltb/01xHUWLPwG4WRlTtwh+ TK7fn6p0c2LDg64B6T3QotNfOeoweoVfQQoGiZB6Rq1F18fR75lcE65XEl8Fn7E2IckG 4NiB33Puq/tBUuv1Ti9ot9g060tWWv5tTSsGQpQh70/16AOCryQLSpKtt7SKHqfE9p2w H6Qpnwu+b7Gqt5J865jUchS1aA4gfe93h0uQBzfpJf0KMIil8Othj2z+FRDQEkauQm6D GXxw== 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=iXxKr7KLXfMNBA9I89Dr5vdgRI98YIIei2SkQB8DkBQ=; b=M7BuiaWURDPsS4Jhd3X7ZwYM/3MFN/0bZEJUE8im+g9rNomtDYXGq+vE7OASIfc76x FVu0boTcppc6oEQq/JEhzERiuuInqqzICNFt++SMCj0mLJBh6oKbZ8MopA8PeUuy2p5w TnoxeD8OCUJBlmaTA6Es0iKKIBK1JsqmF6la7jerEDAzOoS59e2eQw8yEybM4G5hhu5e V9hX2vFATlvKhKw3dl88CVzhIDEWIQbUXgcWwBw+Ig9gkP2dK4OltuTUcpyTZhDLelWZ ZiXuq1QbotaA2KzePmx7fbhfJrbuhs+Kb0VyA+9sfh5eUuRbaloTEUUsvhYfXhK4JOD1 mrvw== X-Gm-Message-State: ALoCoQlyfLof9Wr4cXrk0VOjmuc22xc3wnOo0eGb3o3FfKmzLTuJ+xjyyUv13P4cK1Tomc272RPaywtNiyAR+WicN149iFjIGQ== X-Received: by 10.112.168.106 with SMTP id zv10mr12780529lbb.127.1450997137294; Thu, 24 Dec 2015 14:45:37 -0800 (PST) Received: from wasted.cogentembedded.com ([195.16.110.67]) by smtp.gmail.com with ESMTPSA id 99sm3470316lfp.30.2015.12.24.14.45.35 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 24 Dec 2015 14:45:35 -0800 (PST) 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 Subject: [PATCH] ARM: shmobile: porter: add DU DT support Date: Fri, 25 Dec 2015 01:45:30 +0300 Message-ID: <2158897.lfmL4b1c4V@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.10 (Linux/4.2.8-200.fc22.x86_64; KDE/4.14.14; x86_64; ; ) In-Reply-To: <1674850.BZpGW9kEud@wasted.cogentembedded.com> References: <1674850.BZpGW9kEud@wasted.cogentembedded.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151224_144600_085594_38FC25E1 X-CRM114-Status: GOOD ( 10.38 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux@arm.linux.org.uk, magnus.damm@gmail.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,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 Define the Porter board dependent part of the DU device node. Add the device node for Analog Devices ADV7511W HDMI transmitter to I2C2 bus and the HDMI connector. Add the necessary subnodes to interconnect DU and HDMI devices. Signed-off-by: Sergei Shtylyov --- This patch is against 'renesas-devel-20151221-v4.4-rc6' tag of Simon Horman's 'renesas.git' repo. arch/arm/boot/dts/r8a7791-porter.dts | 81 +++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) 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 @@ -78,6 +78,29 @@ states = <3300000 1 1800000 0>; }; + + hdmi-out { + compatible = "hdmi-connector"; + type = "a"; + + port { + hdmi_con: endpoint { + remote-endpoint = <&adv7511_out>; + }; + }; + }; + + x3_clk: x3-clock { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <148500000>; + }; + + x16_clk: x16-clock { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <74250000>; + }; }; &extal_clk { @@ -139,6 +162,11 @@ renesas,groups = "can0_data"; renesas,function = "can0"; }; + + du_pins: du { + renesas,groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0"; + renesas,function = "du"; + }; }; &scif0 { @@ -240,6 +268,38 @@ }; }; }; + + hdmi@39 { + compatible = "adi,adv7511w"; + reg = <0x39>; + interrupt-parent = <&gpio3>; + interrupts = <29 IRQ_TYPE_LEVEL_LOW>; + + adi,input-depth = <8>; + adi,input-colorspace = "rgb"; + adi,input-clock = "1x"; + adi,input-style = <1>; + adi,input-justification = "evenly"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + adv7511_in: endpoint { + remote-endpoint = <&du_out_rgb>; + }; + }; + + port@1 { + reg = <1>; + adv7511_out: endpoint { + remote-endpoint = <&hdmi_con>; + }; + }; + }; + }; }; &sata0 { @@ -303,3 +363,24 @@ status = "okay"; }; + +&du { + pinctrl-0 = <&du_pins>; + pinctrl-names = "default"; + status = "okay"; + + clocks = <&mstp7_clks R8A7791_CLK_DU0>, + <&mstp7_clks R8A7791_CLK_DU1>, + <&mstp7_clks R8A7791_CLK_LVDS0>, + <&x3_clk>, <&x16_clk>; + clock-names = "du.0", "du.1", "lvds.0", + "dclkin.0", "dclkin.1"; + + ports { + port@1 { + endpoint { + remote-endpoint = <&adv7511_in>; + }; + }; + }; +};