From patchwork Mon Nov 16 08:57:29 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 7621831 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 553F89F2E2 for ; Mon, 16 Nov 2015 08:56:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5E04920549 for ; Mon, 16 Nov 2015 08:56:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 755CC20546 for ; Mon, 16 Nov 2015 08:56:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750911AbbKPI4W (ORCPT ); Mon, 16 Nov 2015 03:56:22 -0500 Received: from mail-pa0-f53.google.com ([209.85.220.53]:35804 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751102AbbKPI4V (ORCPT ); Mon, 16 Nov 2015 03:56:21 -0500 Received: by pacej9 with SMTP id ej9so62198491pac.2 for ; Mon, 16 Nov 2015 00:56:21 -0800 (PST) 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=uxOmMFme3zB7ojwxXKLvyABvas5C3I7m08bMQ1iXSBo=; b=xJQECGDVjrKArlu+XeRjULALHewNM2bPNKP1F7afBbtKHaCjpPRP9ogpLi3L3r6eka 18bOCbVhNdp4L7DwfJAaChDD5ebxEDDjqsOsOF6SMOpeNO+XJHn8sp6MYTBi6aWqnVjp +dEM3unzCvRW7dgsetfqo5nVd715BtEfB765oUMkMwEWYfjJiODAKTAh5uCXZD0zqLDi oIHX/ThlFjwczf9RyHG9wZRjvfy3hf4I1j3r2FSXggEDtrvDZLwdEowxK8F3mtBlNYdG /XYUL26pyBv9M9Rh+BEFQy2whPEUh9a1N5uZek38FVMLVTpfSQsya7uPNdQP8+uqgZaS o+Ow== X-Received: by 10.66.170.238 with SMTP id ap14mr51491377pac.128.1447664181244; Mon, 16 Nov 2015 00:56:21 -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 ia3sm34995170pbb.5.2015.11.16.00.56.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Nov 2015 00:56:20 -0800 (PST) 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: Mon, 16 Nov 2015 17:57:29 +0900 Message-Id: <20151116085729.7119.93398.sendpatchset@little-apple> In-Reply-To: <20151116085703.7119.2518.sendpatchset@little-apple> References: <20151116085703.7119.2518.sendpatchset@little-apple> Subject: [PATCH v2 03/03] 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=-7.6 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 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 --- Changes since V1: - Updated to fit on r8a7794 DU patches from Laurent 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-11-16 11:24:24.350513000 +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_DU0>, + <&x13_clk>, <&x2_clk>; + clock-names = "du.0", "du.1", "dclkin.0", "dclkin.1"; + + ports { + port@1 { + endpoint { + remote-endpoint = <&adv7123_in>; + }; + }; + }; }; &extal_clk {