From patchwork Mon Aug 24 16:09:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 7065421 X-Patchwork-Delegate: horms@verge.net.au 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 B36409F434 for ; Mon, 24 Aug 2015 16:09:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D7E9920782 for ; Mon, 24 Aug 2015 16:09:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 08E3520787 for ; Mon, 24 Aug 2015 16:09:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932498AbbHXQJk (ORCPT ); Mon, 24 Aug 2015 12:09:40 -0400 Received: from andre.telenet-ops.be ([195.130.132.53]:47334 "EHLO andre.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932440AbbHXQJi (ORCPT ); Mon, 24 Aug 2015 12:09:38 -0400 Received: from ayla.of.borg ([84.193.93.87]) by andre.telenet-ops.be with bizsmtp id 8g9b1r0181t5w8s01g9cEY; Mon, 24 Aug 2015 18:09:36 +0200 Received: from ramsan.of.borg ([192.168.97.29] helo=ramsan) by ayla.of.borg with esmtp (Exim 4.82) (envelope-from ) id 1ZTuJT-0002NL-Q4; Mon, 24 Aug 2015 18:09:35 +0200 Received: from geert by ramsan with local (Exim 4.82) (envelope-from ) id 1ZTuJW-0002YO-13; Mon, 24 Aug 2015 18:09:38 +0200 From: Geert Uytterhoeven To: Kuninori Morimoto Cc: linux-sh@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 3/3] arm64: renesas: salvator-x: Add missing extal clock override Date: Mon, 24 Aug 2015 18:09:37 +0200 Message-Id: <1440432577-9767-4-git-send-email-geert+renesas@glider.be> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1440432577-9767-1-git-send-email-geert+renesas@glider.be> References: <1440432577-9767-1-git-send-email-geert+renesas@glider.be> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 Override the "extal" clock with the frequency and accuracy of the crystal oscillator on the Salvator-X board. Without this, all clocks have a clock rate of zero. Signed-off-by: Geert Uytterhoeven --- FIXME Even taking into account some of the PLL clock rates are "PLLx = VCO/2", the rates for pll0, pll1 (and its children), and pll2 are still off by another factor of two: $ cat /sys/kernel/debug/clk/clk_summary clock enable_cnt prepare_cnt rate accuracy phase ------------------------------------------------------------------------ extal_clk 1 1 16666600 50000 0 main 1 1 8333300 50000 0 pll4 0 0 1199995200 50000 0 pll3 0 0 1599993600 50000 0 pll2 0 0 599997600 50000 0 pll1 1 1 799996800 50000 0 s3d4 1 4 33333200 50000 0 scif2 2 2 33333200 50000 0 pll0 0 0 749997000 50000 0 --- arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts index 88cc34819e6af58a..7bb80a937d760195 100644 --- a/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts +++ b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts @@ -31,6 +31,11 @@ }; }; +&extal_clk { + clock-frequency = <16666600>; + clock-accuracy = <50000>; +}; + &pfc { scif2_pins: scif2 { renesas,groups = "scif2_data";