From patchwork Tue Jan 12 23:06:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 8021331 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 D4F16BEEE5 for ; Tue, 12 Jan 2016 23:08:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0B3BE20421 for ; Tue, 12 Jan 2016 23:08:37 +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 28E18203B7 for ; Tue, 12 Jan 2016 23:08:36 +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 1aJ81l-0000PE-MY; Tue, 12 Jan 2016 23:07:01 +0000 Received: from mail-lb0-x234.google.com ([2a00:1450:4010:c04::234]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aJ81J-00086f-Rp for linux-arm-kernel@lists.infradead.org; Tue, 12 Jan 2016 23:06:37 +0000 Received: by mail-lb0-x234.google.com with SMTP id oh2so281694010lbb.3 for ; Tue, 12 Jan 2016 15:06:13 -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=dRJuXg1MK+0S3H9RZrLgx+OppEoDF5SlMDt97unKaDY=; b=WnbH+Cxdwo6WlpefKrVqACL2q516i2+Z3xwGAVGOWExudL6/5D4vCSmYQg/bY42H7Y E+h7o6VoTYKvin+ab737UJuMJs5s8+NqxXkD8KJVGfa13Igs9JP8Cr4ub4mw8ZxTtupL /2LDUfmwPWhwbBH8k3tezgduaSKrWVJRYWBnvpgToHGalKFs6etKnn4kMvrRF6Cs8g7N 8B6D5KC59yxQeJIi+QxChvxPUikUAD3DbUNNLN2a5XfXugoDQZyRWEMqETZqIe6mPSig MFrtlXCf/NS/19ntC7Cr+aMEj5X67ydjtWmcMoVFLCWeMZfwJ0iAota/bWZl25WphhGw mViA== 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=dRJuXg1MK+0S3H9RZrLgx+OppEoDF5SlMDt97unKaDY=; b=FIXfioMzptLuwXdFHouc8Ugne7+ACaLsmevYSSsjMpL98nNdW2I9hs2dTKTA5Gsx8I 6x/ua8d1u4DR4aHtzCkR/Z6i/dq7JudjdxkQyqWTV/wuKQ1uCTCdCnlkbYotM2SdrPXA cgdKJdNGl16uNqPN4OE/eulTffTaLkPPsLclqZUP+JHfbK2MK/Rd/wm2ipm4Zx5SI7iG l7v7BHb4XpooBnry97pwXUBdYr9Tyd1Li6Q6WZZPV6R0Pi9o6pRagnsfAB+Pilpa67ON Oz9WbaIYNhBwDdO7miawfgJ9fB/2URuymxqvZMF5rYmT4uKsJvZBtlRTCtu+cZESQbeJ Zu6g== X-Gm-Message-State: ALoCoQnZUsD+M75rOLU4MK4LYGoBWdweUiLyoIf04F0QgBMWJNA9DePCpy1+gPFKqbCNPCqjFSIu9KeaGW+rE2KtbRQE1uZnNQ== X-Received: by 10.112.198.102 with SMTP id jb6mr11388530lbc.44.1452639971557; Tue, 12 Jan 2016 15:06:11 -0800 (PST) Received: from wasted.cogentembedded.com ([83.149.9.138]) by smtp.gmail.com with ESMTPSA id f4sm1788251lbs.10.2016.01.12.15.06.09 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 12 Jan 2016 15:06:10 -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: silk: add DU DT support Date: Wed, 13 Jan 2016 02:06:08 +0300 Message-ID: <20467499.tt8XqkxVqn@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-20160112_150634_670648_21F68DD2 X-CRM114-Status: GOOD ( 10.61 ) X-Spam-Score: -1.8 (-) 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=-3.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RCVD_IN_SORBS_WEB,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 SILK board dependent part of the DU device node. Add the device nodes for the Analog Devices ADV7511W HDMI transmitter (connected to DU0) and ADV7123 video DAC (connected to DU1). Add the necessary subnodes to interconnect DU, HDMI/VDAC devices, and HDMI/VGA connectors. Signed-off-by: Sergei Shtylyov --- This patch is against the 'renesas-devel-20160111-v4.4' tag of Simon Horman's 'renesas.git' repo. arch/arm/boot/dts/r8a7794-silk.dts | 109 +++++++++++++++++++++++++++++++++++++ 1 file changed, 109 insertions(+) Index: renesas/arch/arm/boot/dts/r8a7794-silk.dts =================================================================== --- renesas.orig/arch/arm/boot/dts/r8a7794-silk.dts +++ renesas/arch/arm/boot/dts/r8a7794-silk.dts @@ -64,6 +64,61 @@ states = <3300000 1 1800000 0>; }; + + vga-encoder { + compatible = "adi,adv7123"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + adv7123_in: endpoint { + remote-endpoint = <&du_out_rgb1>; + }; + }; + port@1 { + reg = <1>; + adv7123_out: endpoint { + remote-endpoint = <&vga_in>; + }; + }; + }; + }; + + hdmi-out { + compatible = "hdmi-connector"; + type = "a"; + + port { + hdmi_con: endpoint { + remote-endpoint = <&adv7511_out>; + }; + }; + }; + + vga { + compatible = "vga-connector"; + + port { + vga_in: endpoint { + remote-endpoint = <&adv7123_out>; + }; + }; + }; + + x2_clk: x2-clock { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <148500000>; + }; + + x3_clk: x3-clock { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <74250000>; + }; }; &extal_clk { @@ -164,6 +219,38 @@ }; }; }; + + hdmi@39 { + compatible = "adi,adv7511w"; + reg = <0x39>; + interrupt-parent = <&gpio5>; + interrupts = <23 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_rgb0>; + }; + }; + + port@1 { + reg = <1>; + adv7511_out: endpoint { + remote-endpoint = <&hdmi_con>; + }; + }; + }; + }; }; &mmcif0 { @@ -258,3 +345,25 @@ &usbphy { status = "okay"; }; + +&du { + status = "okay"; + + clocks = <&mstp7_clks R8A7794_CLK_DU0>, + <&mstp7_clks R8A7794_CLK_DU0>, + <&x2_clk>, <&x3_clk>; + clock-names = "du.0", "du.1", "dclkin.0", "dclkin.1"; + + ports { + port@0 { + endpoint { + remote-endpoint = <&adv7511_in>; + }; + }; + port@1 { + endpoint { + remote-endpoint = <&adv7123_in>; + }; + }; + }; +};