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: 8021291 X-Patchwork-Delegate: horms@verge.net.au 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 5452FBEEE5 for ; Tue, 12 Jan 2016 23:06:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7A9972042B for ; Tue, 12 Jan 2016 23:06:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 892B0203B7 for ; Tue, 12 Jan 2016 23:06:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751943AbcALXGT (ORCPT ); Tue, 12 Jan 2016 18:06:19 -0500 Received: from mail-lb0-f173.google.com ([209.85.217.173]:35498 "EHLO mail-lb0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753169AbcALXGN (ORCPT ); Tue, 12 Jan 2016 18:06:13 -0500 Received: by mail-lb0-f173.google.com with SMTP id bc4so280378777lbc.2 for ; Tue, 12 Jan 2016 15:06:12 -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=HYgVs3mUpOLu+uMquSGXd0SWjbRY5cHWo7cHn8yhaLSvzayq5styko5xBv4nDdAAGt EdkP8GZLkUWQYSfhRd3koK9RNBq+n5GTFiyIrwEdvPq/2YdLyOtO2/209a98DJhK94ws Mze9g7zQK3RFahyHgsDRlDYUDcPW/HmPeLMheve6x9qDIWW3r7c7siohJQrDTKqlYoci A3iyM2T+FhK8Bzoyg0W+dqvEnO9KIt8q00UPZvTq2qtGmDiO5QYQNN2HzskIXF735p9R hS7yS8li6vzdgoz7XTGKmfLePFUw6w3tPpevfYI86QVnaNqWlkATgnvlFXXjjbSzO0wE HSWA== X-Gm-Message-State: ALoCoQn9B20b/2WZgDuOisLt0HxKky10mZjq5r0lBbF/1RPsSGJeBUlQKSkVifvKkDJlzLpYU8u5FA/6IXgGY4LY4Vrk02QzKA== 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 Cc: magnus.damm@gmail.com, linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.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 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.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,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(+) -- 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/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>; + }; + }; + }; +};