From patchwork Wed Jan 27 11:23:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Horman X-Patchwork-Id: 8132501 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 E8A64BEEE5 for ; Wed, 27 Jan 2016 11:23:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 13F6A202F8 for ; Wed, 27 Jan 2016 11:23:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1111420256 for ; Wed, 27 Jan 2016 11:23:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754044AbcA0LXy (ORCPT ); Wed, 27 Jan 2016 06:23:54 -0500 Received: from kirsty.vergenet.net ([202.4.237.240]:38280 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753013AbcA0LXy (ORCPT ); Wed, 27 Jan 2016 06:23:54 -0500 Received: from reginn.isobedori.kobe.vergenet.net (p5023-ipbfp803kobeminato.hyogo.ocn.ne.jp [123.221.39.23]) by kirsty.vergenet.net (Postfix) with ESMTPA id 2B1E025B755; Wed, 27 Jan 2016 22:23:52 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=verge.net.au; s=mail; t=1453893832; bh=ubI6M25D2Fzqt4oo95waNJTeM5TOH/0uUmvASIOerCw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=I2yZyNUssCzCgat7b48paGZP5f+o4MVonQHFHhFcdKXxBJZKy8e8qc8eaa/9NDuBo m/Qo1eNesaukr83ExRGPzi20Fr2pgY70DLinBitDS5cw7boq6h2jHpTInaHPsKGfIN 38BJATRatxeKWNx+XFATag+z5CWUMiMmqkiE42KI= Received: by reginn.isobedori.kobe.vergenet.net (Postfix, from userid 7100) id B51549400EC; Wed, 27 Jan 2016 20:23:49 +0900 (JST) Date: Wed, 27 Jan 2016 20:23:49 +0900 From: Simon Horman To: Magnus Damm Cc: linux-renesas-soc@vger.kernel.org, laurent.pinchart+renesas@ideasonboard.com, geert+renesas@glider.be Subject: Re: [PATCH] ARM: dts: r8a7793: gose: Add HDMI video out support Message-ID: <20160127112349.GA26357@verge.net.au> References: <20160118110310.31849.75139.sendpatchset@little-apple> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20160118110310.31849.75139.sendpatchset@little-apple> Organisation: Horms Solutions Ltd. User-Agent: Mutt/1.5.23 (2014-03-12) 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_SIGNED, RCVD_IN_DNSWL_HI,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 On Mon, Jan 18, 2016 at 08:03:10PM +0900, Magnus Damm wrote: > 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 I have queued this up after rebasing it to make use of the (now) existing i2c2 node. The result is as follows: From: Magnus Damm Date: Mon, 18 Jan 2016 20:03:10 +0900 Subject: [PATCH] ARM: dts: r8a7793: gose: Add HDMI video out support 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. Signed-off-by: Magnus Damm [simon: rebased; reused existing i2c2 node] Signed-off-by: Simon Horman --- arch/arm/boot/dts/r8a7793-gose.dts | 85 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) diff --git a/arch/arm/boot/dts/r8a7793-gose.dts b/arch/arm/boot/dts/r8a7793-gose.dts index 987ed03b1e02..0b4cc8d99390 100644 --- a/arch/arm/boot/dts/r8a7793-gose.dts +++ b/arch/arm/boot/dts/r8a7793-gose.dts @@ -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 { @@ -141,6 +189,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"; @@ -247,6 +300,38 @@ 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>; + }; + }; + }; + }; + eeprom@50 { compatible = "renesas,r1ex24002", "atmel,24c02"; reg = <0x50>;