From patchwork Mon Jan 18 11:03:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 8054231 X-Patchwork-Delegate: horms@verge.net.au Return-Path: X-Original-To: patchwork-linux-renesas-soc@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 4F68DBEEE5 for ; Mon, 18 Jan 2016 11:01:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B6FD7203AE for ; Mon, 18 Jan 2016 11:01:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F051E20272 for ; Mon, 18 Jan 2016 11:00:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754479AbcARLAx (ORCPT ); Mon, 18 Jan 2016 06:00:53 -0500 Received: from mail-pa0-f50.google.com ([209.85.220.50]:36068 "EHLO mail-pa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754444AbcARLAx (ORCPT ); Mon, 18 Jan 2016 06:00:53 -0500 Received: by mail-pa0-f50.google.com with SMTP id yy13so339910961pab.3 for ; Mon, 18 Jan 2016 03:00:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:date:message-id:subject; bh=o/UdPj1fKI5u9i22iJVa56PYRJqlSi8Xr/8mF6+u4mw=; b=cl8dw9KP8FKEImVgq12uQrn/1AayEJSwIXz49aAzMkEaqni2nR8Bqoz9OTrrRWUrnF lDAmXtEm9GgjYvSpxrUCa7C6LFHjPLpUB0GFdxkt3ZoiakcikQgAtJTkfgE57R0/UsIB aSIuXiENqWWe2nbT8ctxLQTxmXLUPF+bVs/zl8U6XrvV6hTzcNuRNa4Ltni3uE2cgvJ9 7mJzpIvDJ5oQqRcU0F17BH+e2lvZBWUTIDd17/FaF4tcyZGPvRUGPw9/kxZFH3k/y0j5 98uS3meOuAohBzRs+4d3XyfMj76SA4Qs0sMOSeqOBJLM2buaDCtEUQIFqhGia8wSq9pI 1ioA== 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:date:message-id:subject; bh=o/UdPj1fKI5u9i22iJVa56PYRJqlSi8Xr/8mF6+u4mw=; b=L+IpnwTsLtHJTnrtVFVfurNeQINB45bhYEVG2noZ/BrjfbxvgmJCdHHbhXeomFZA32 7B53O6TdIH5m+eraMAjbWj2yRGgz1CQq/yPNik5hcHTOZMBeHi7/TaKptEP0aJiNNwLz vIelKtfBZ7xJwWOXpWROU7Jt0HPk/gDkpE4zwcq3qTX+gdlIjL5C7+63YqPug2bHjNex JkLqhkaX7FhS2EIloEqaNQm7pc9anPfJDzG2MfXrcqWT6BuXuOI2nfD74a/noIlbJMjX sXq/pqBfMlMkqRrY6JD9KLwmt9X+nOU7JE8sCqrRZsfSQLY+tbKEsITmObm0sgw4gpam 3gPA== X-Gm-Message-State: ALoCoQkKf1biqxpSno4Q0dLT6OnJsrKNkPPgEcalLsCpG0assxRP9Zl5+du6dGLmJ8zrb/hGYwL/mT2UOJo97zuHMQHpWhE5Bg== X-Received: by 10.67.2.10 with SMTP id bk10mr34768228pad.26.1453114852481; Mon, 18 Jan 2016 03:00:52 -0800 (PST) Received: from [127.0.0.1] (s214090.ppp.asahi-net.or.jp. [220.157.214.90]) by smtp.gmail.com with ESMTPSA id s19sm33144279pfs.62.2016.01.18.03.00.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Jan 2016 03:00:51 -0800 (PST) From: Magnus Damm To: linux-renesas-soc@vger.kernel.org Cc: horms+renesas@verge.net.au, Magnus Damm , laurent.pinchart+renesas@ideasonboard.com, geert+renesas@glider.be Date: Mon, 18 Jan 2016 20:03:10 +0900 Message-Id: <20160118110310.31849.75139.sendpatchset@little-apple> Subject: [PATCH] ARM: dts: r8a7793: gose: Add HDMI video out support Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 From: Magnus Damm This patch adds r8a7793 GOSE HDMI video out support. The r8a7793 GOSE board is similar to r8a7791 Koelsch. For those boards an on-board HDMI encoder chip provides HDMI video out and also a LVDS port is available for external LCD panels. Tested on r8a7793 Gose with HDMI hooked up to a Toshiba TV. # modetest -M rcar-du -s 33:1280x720@AR24 Signed-off-by: Magnus Damm --- Developed on top of renesas-drivers-2016-01-13-v4.4 Thanks to Laurent for hooking up Gose I2C support. arch/arm/boot/dts/r8a7793-gose.dts | 93 ++++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) --- 0001/arch/arm/boot/dts/r8a7793-gose.dts +++ work/arch/arm/boot/dts/r8a7793-gose.dts 2016-01-18 19:23:36.490513000 +0900 @@ -129,6 +129,54 @@ label = "LED8"; }; }; + + hdmi-out { + compatible = "hdmi-connector"; + type = "a"; + + port { + hdmi_con: endpoint { + remote-endpoint = <&adv7511_out>; + }; + }; + }; + + x2_clk: x2-clock { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <74250000>; + }; + + x13_clk: x13-clock { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <148500000>; + }; +}; + +&du { + pinctrl-0 = <&du_pins>; + pinctrl-names = "default"; + status = "okay"; + + clocks = <&mstp7_clks R8A7793_CLK_DU0>, + <&mstp7_clks R8A7793_CLK_DU1>, + <&mstp7_clks R8A7793_CLK_LVDS0>, + <&x13_clk>, <&x2_clk>; + clock-names = "du.0", "du.1", "lvds.0", + "dclkin.0", "dclkin.1"; + + ports { + port@0 { + endpoint { + remote-endpoint = <&adv7511_in>; + }; + }; + port@1 { + lvds_connector: endpoint { + }; + }; + }; }; &extal_clk { @@ -144,6 +192,11 @@ renesas,function = "i2c2"; }; + du_pins: du { + renesas,groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0"; + renesas,function = "du"; + }; + scif0_pins: serial0 { renesas,groups = "scif0_data_d"; renesas,function = "scif0"; @@ -251,6 +304,46 @@ }; }; }; +}; + +&i2c2 { + pinctrl-0 = <&i2c2_pins>; + pinctrl-names = "default"; + + status = "okay"; + clock-frequency = <100000>; + + 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>; + }; + }; + }; + }; }; &i2c2 {