From patchwork Thu Jan 12 00:53:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 9511697 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 C44B760710 for ; Thu, 12 Jan 2017 00:53:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B6FD428641 for ; Thu, 12 Jan 2017 00:53:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ABD432868C; Thu, 12 Jan 2017 00:53:33 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6CF7B28641 for ; Thu, 12 Jan 2017 00:53:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754445AbdALAxa (ORCPT ); Wed, 11 Jan 2017 19:53:30 -0500 Received: from galahad.ideasonboard.com ([185.26.127.97]:39393 "EHLO galahad.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757408AbdALAx3 (ORCPT ); Wed, 11 Jan 2017 19:53:29 -0500 Received: from avalon.bb.dnainternet.fi (dfj612ybrt5fhg77mgycy-3.rev.dnainternet.fi [IPv6:2001:14ba:21f5:5b00:2e86:4862:ef6a:2804]) by galahad.ideasonboard.com (Postfix) with ESMTPSA id A54FA20053; Thu, 12 Jan 2017 01:52:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1484182378; bh=/YiD3Ibwozy6jgeqdwRvgIOW8/ZJG/iSKP0oQKZVCgM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ov7imdowfWAgTJxbj7GyH7q21NWyi/GefDiMXRyE5G5XW0XWtdAqtGdMkIb2QltlT wqEOc+Dcv8u0AQ9E1hNwjwlVT2rMj2nXc8uN+YxoSxUTKreYyeepDu2Sg5iQQS+zre C0TEfv/99rT0EoJDbzqKCpXqbODWO5y595cImimU= From: Laurent Pinchart To: Marek Vasut Cc: linux-renesas-soc@vger.kernel.org, linux-clk@vger.kernel.org, Michael Turquette , Stephen Boyd Subject: [PATCH] arm64: dts: r8a7795: salvator-x: Add DU0 and DU3 external dot clocks Date: Thu, 12 Jan 2017 02:53:30 +0200 Message-Id: <20170112005330.8094-1-laurent.pinchart+renesas@ideasonboard.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170111161603.18905-2-marek.vasut@gmail.com> References: <20170111161603.18905-2-marek.vasut@gmail.com> Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The clocks are generated by an I2C-controlled programmable clock generator. Signed-off-by: Laurent Pinchart --- arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts | 29 ++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) Hi Marek, With this patch applied on top of a merge of my HDMI output series and your VC5 series, I've successfully tested VGA output and LVDS output on the Salvator-X H3 board. You can thus add Tested-by: Laurent Pinchart to patch 2/2. diff --git a/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts index 2dc0887fc400..22be583be4bc 100644 --- a/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts +++ b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts @@ -178,6 +178,12 @@ clock-frequency = <33000000>; }; + x23_clk: x23-clock { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <25000000>; + }; + hdmi0-out { compatible = "hdmi-connector"; label = "HDMI0 OUT"; @@ -271,10 +277,15 @@ <&cpg CPG_MOD 722>, <&cpg CPG_MOD 721>, <&cpg CPG_MOD 727>, + <&versaclock5 1>, <&x21_clk>, - <&x22_clk>; + <&x22_clk>, + <&versaclock5 2>; clock-names = "du.0", "du.1", "du.2", "du.3", "lvds.0", - "dclkin.1", "dclkin.2"; + "dclkin.0", "dclkin.1", "dclkin.2", "dclkin.3"; + + assigned-clocks = <&versaclock5 1>, <&versaclock5 2>; + assigned-clock-rates = <148500000>, <108000000>; ports { port@0 { @@ -460,6 +471,20 @@ }; }; +&i2c4 { + status = "okay"; + + clock-frequency = <100000>; + + versaclock5: clock-generator@6a { + compatible = "idt,5p49v5923"; + reg = <0x6a>; + #clock-cells = <1>; + clocks = <&x23_clk>; + clock-names = "xin"; + }; +}; + &rcar_sound { pinctrl-0 = <&sound_pins &sound_clk_pins>; pinctrl-names = "default";