From patchwork Fri Apr 27 16:57:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 10369521 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 94651602B3 for ; Fri, 27 Apr 2018 17:03:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 837672844C for ; Fri, 27 Apr 2018 17:03:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 782172945E; Fri, 27 Apr 2018 17:03:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D718E2945D for ; Fri, 27 Apr 2018 17:03:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=ygCJYeZ+bJEXwF4nLCuAi/jl8nfrZ+a1sJL06jvvnew=; b=V7EZXZAUdygAj4nxTRD3QkBx8b dHc2m3WZQZ7G6WAKX7/53Mr8iGY4y2QJ5jwTkGWG+o+0IZhEadduwKsYUfRD6AJIl7NaiRwzhfLjq hiue9GZcNoU9sTD9icwcE4dIwY7PoI9ES8NlechEfzivdSQsUxc8l/H2asDRLS+WRsFlpQhEpHFrC 5q8bUX/xUFG1BWeqbDK3bttwcOddGVK6aAEngX4wqwcSCiLm5NhZbv7+Vg2610+RXb2wB/Lvmyu4y sFR+uGQvzpDkWYkx9TZBA/KslkXrijAwJWraTFzwCLylkDxr00l/X7wQFJikH56B77W7dn4GZrS9D 3lXWR37g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fC6lq-0000Xk-EB; Fri, 27 Apr 2018 17:02:54 +0000 Received: from perceval.ideasonboard.com ([213.167.242.64]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fC6he-0005hi-Ep for linux-arm-kernel@lists.infradead.org; Fri, 27 Apr 2018 16:59:01 +0000 Received: from localhost.localdomain (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id EBEF060EA; Fri, 27 Apr 2018 18:57:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1524848253; bh=DFS6I3ULfHd7oLhOG9K207AnsSzxx6ZL9YuWTUNLt0Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CNLm/A8YM/bv4b65t9ZO6JF6vFZ8Sb+kvCm1o8PicjnbutdtwFaq6NnTgRPcgesiM F2Hl0c7ieR6c9nAS/DyC+ibZPd8h16mPR5ndUt7r+qM17lifhNJ2d/LSc0Ce6ETcJ0 GCtEkw/ifBhMyfBjagO3f6qHIqozn2nS6K/IWyEs= From: Kieran Bingham To: linux-renesas-soc@vger.kernel.org, Laurent Pinchart , Kieran Bingham , dri-devel@lists.freedesktop.org Subject: [PATCH v2 10/11] arm64: dts: r8a77965-salvator-x: Enable DU external clocks and HDMI Date: Fri, 27 Apr 2018 17:57:21 +0100 Message-Id: <20180427165722.19445-11-kieran.bingham+renesas@ideasonboard.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180427165722.19445-1-kieran.bingham+renesas@ideasonboard.com> References: <20180427165722.19445-1-kieran.bingham+renesas@ideasonboard.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180427_095835_157756_0650A326 X-CRM114-Status: GOOD ( 10.43 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Catalin Marinas , Magnus Damm , open list , Will Deacon , Rob Herring , Simon Horman , "moderated list:ARM64 PORT AARCH64 ARCHITECTURE" MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The DU1 external dot clock is provided by the fixed frequency clock generator X21, while the DU0 and DU3 clocks are provided by the programmable Versaclock5 clock generator. Enable the clocks, and the HDMI encoder for the M3-N Salvator-X board and hook it up to the HDMI connector. Based on patches from Takeshi Kihara Signed-off-by: Kieran Bingham Reviewed-by: Laurent Pinchart --- v2: - Remove LVDS clocks from DU node - Merge DU Clocks and HDMI enablement --- .../boot/dts/renesas/r8a77965-salvator-x.dts | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a77965-salvator-x.dts b/arch/arm64/boot/dts/renesas/r8a77965-salvator-x.dts index 75d890d91df9..340a3c72b65a 100644 --- a/arch/arm64/boot/dts/renesas/r8a77965-salvator-x.dts +++ b/arch/arm64/boot/dts/renesas/r8a77965-salvator-x.dts @@ -19,3 +19,31 @@ reg = <0x0 0x48000000 0x0 0x78000000>; }; }; + +&du { + clocks = <&cpg CPG_MOD 724>, + <&cpg CPG_MOD 723>, + <&cpg CPG_MOD 721>, + <&versaclock5 1>, + <&x21_clk>, + <&versaclock5 2>; + clock-names = "du.0", "du.1", "du.3", + "dclkin.0", "dclkin.1", "dclkin.3"; +}; + +&hdmi0 { + status = "okay"; + + ports { + port@1 { + reg = <1>; + rcar_dw_hdmi0_out: endpoint { + remote-endpoint = <&hdmi0_con>; + }; + }; + }; +}; + +&hdmi0_con { + remote-endpoint = <&rcar_dw_hdmi0_out>; +};