From patchwork Sun Oct 18 05:13:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 7429561 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 5B948BEEA4 for ; Sun, 18 Oct 2015 05:13:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6886A20796 for ; Sun, 18 Oct 2015 05:13:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 62DE02077A for ; Sun, 18 Oct 2015 05:13:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752801AbbJRFNF (ORCPT ); Sun, 18 Oct 2015 01:13:05 -0400 Received: from mail-pa0-f48.google.com ([209.85.220.48]:36168 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751284AbbJRFND (ORCPT ); Sun, 18 Oct 2015 01:13:03 -0400 Received: by pacfv9 with SMTP id fv9so60805184pac.3 for ; Sat, 17 Oct 2015 22:13:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:date:message-id:in-reply-to:references:subject; bh=sSSsLsycvKO18UEJGYiUtkd76ZNwLlnz64eiYpFsFZc=; b=dXuPayxuwfshzh473k3qBxHxKoyQUmr6+HThk5ClrZfEgrvqul2ZcAt48F9keocMvr 64PSJABXiL06+TgFsixk3rh2e09kpoD99zOx5AhojvYm8rYN0GSR7FqT4qpCpO9nsGbq TaF4uBYnzCMKxRzkdGwZvJlHisaxUPZO2tuO3tpeYxBP5Gr8Dd/AMxmonrXo9/W1wGlu D3SV0VWqIIedL56FDUf6CBGgs6pVVcdeF1xcAoJksaQcNyse3Akj8k3KejZu9kH+2KwD ibHEwAnXmLJJ/UMgK/Gd0Fyn5fA3V/JakPha/MhATOLpN2HVCNA0vhYToUM7Osalp3C/ hsGg== X-Received: by 10.66.120.80 with SMTP id la16mr26425144pab.1.1445145182165; Sat, 17 Oct 2015 22:13:02 -0700 (PDT) Received: from [127.0.0.1] (s214090.ppp.asahi-net.or.jp. [220.157.214.90]) by smtp.gmail.com with ESMTPSA id kp4sm29294159pbc.34.2015.10.17.22.12.59 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 17 Oct 2015 22:13:01 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: horms+renesas@verge.net.au, Magnus Damm , laurent.pinchart+renesas@ideasonboard.com, geert+renesas@glider.be Date: Sun, 18 Oct 2015 14:13:37 +0900 Message-Id: <20151018051337.746.64604.sendpatchset@little-apple> In-Reply-To: <20151018051319.746.85959.sendpatchset@little-apple> References: <20151018051319.746.85959.sendpatchset@little-apple> Subject: [PATCH 02/02] ARM: shmobile: r8a7794: alt: Enable VGA port 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.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, 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 Enable the DU device and the VGA port available on the r8a7794 ALT board. The VGA portion of the ALT board is somewhat similar to the Lager board but in case of ALT the DU1 pins are used and the X2 clock has a reduced frequency. This patch does not include any pinctrl (PFC) settings due to lack of PFC DT integration on r8a7794. At this point the default state of the boot loader is enough to keep the VGA port working without changing any pinctrl settings. Signed-off-by: Magnus Damm --- Written against renesas-devel-20151015-v4.3-rc5 arch/arm/boot/dts/r8a7794-alt.dts | 61 +++++++++++++++++++++++++++++++++++++ 1 file changed, 61 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 --- 0001/arch/arm/boot/dts/r8a7794-alt.dts +++ work/arch/arm/boot/dts/r8a7794-alt.dts 2015-10-18 13:48:24.230513000 +0900 @@ -33,6 +33,67 @@ #address-cells = <1>; #size-cells = <1>; }; + + 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>; + }; + }; + }; + }; + + vga { + compatible = "vga-connector"; + + port { + vga_in: endpoint { + remote-endpoint = <&adv7123_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 { + status = "okay"; + + clocks = <&mstp7_clks R8A7794_CLK_DU0>, + <&mstp7_clks R8A7794_CLK_DU1>, + <&x13_clk>, <&x2_clk>; + clock-names = "du.0", "du.1", "dclkin.0", "dclkin.1"; + + ports { + port@1 { + endpoint { + remote-endpoint = <&adv7123_in>; + }; + }; + }; }; &extal_clk {