Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9841569ybi; Wed, 24 Jul 2019 10:53:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqzfiMdf/2VYz2RO5IfuARJHtxSUk1/or6H10nggqYlZopl7MPVYyHx9nkv827UpW+SrZ5Pw X-Received: by 2002:aa7:8b11:: with SMTP id f17mr12524368pfd.19.1563990830972; Wed, 24 Jul 2019 10:53:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563990830; cv=none; d=google.com; s=arc-20160816; b=bSP/fmSwSC5NX1cK8pZdglfDEbiQNRf4+TjUv5hU/XgLkogtOgTHs0Cz4JmLMphdKv hCNhrP0XWLVRUz592+Q3qi75dMA8eufXFnsF2eOQIj4Aq/rya1ZIw0FCOF2ISAh3wYGI ii1M2JF+/ztBgsoRZGaQ3JKv9ERfuOo6UcHE0Lh3Y51G23ugZXzJl24T3Qvk09qXe2uT ao0IY8yC6SoF/anz7nFXB5Yk/oP/dX3q8xoX0lHlBF4C2MtE/pQZ99QR2uuh3MGLjEDz 7jvpJ796EDyzQhmIxK2bsBnfWDw5phjx2B2iVjzcaLRrAyVehqePCXMAreX4edRvlerN SuYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=BjCs03RgyL58fApfd5l7g+XTdviV2rlk+1oKzHn4OQY=; b=YyMGgZw4zzDJlDhe8CX/POe5uJeWvkWeCQ6gym4XLRM894KzS1LhSXB2BqxE930QZg ehnXKGaO4oJ/aKhAh45Y771IMzdQIn8B1A/8dY4CtpDzzXGsZMlLVASAQDRFZZqeurlP QB007V1bQ6KbeTodMaIw0vjM4uQj3QRzOyowPgNplsRx81if3AMzkAv+5xJ31z9GWtl6 8qDaDQV8pPenHzAa1Ap6585sQQAPtbwJ749H7RSqvnePIlMloo5Syx+y0qLggcZYeeql vxrRjLhvUF5+IlkixyeQtvQkJ29SJy3UW2EIAAaIWubi/jlkzwFeM0flRNWAyIAQKG+x JLeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=hbQH6Sp0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cp2si15742562plb.437.2019.07.24.10.53.36; Wed, 24 Jul 2019 10:53:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=hbQH6Sp0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387720AbfGXR1y (ORCPT + 99 others); Wed, 24 Jul 2019 13:27:54 -0400 Received: from outils.crapouillou.net ([89.234.176.41]:51996 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726714AbfGXR1x (ORCPT ); Wed, 24 Jul 2019 13:27:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1563988658; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BjCs03RgyL58fApfd5l7g+XTdviV2rlk+1oKzHn4OQY=; b=hbQH6Sp0nenqEgvgUEZNod3LWjqpLxBEKr2asH/MDxWfDn87Sqp79548njrUFhcGleL1Me VngAn19XYduheQ55FcxHwrx5TQtcwZjAXoORKz2RRf0JaepkbpTg6mQXlNUScoP71av3zq zER53S/Q0ZaEftgbISx8GGtbs4kk9vI= From: Paul Cercueil To: Ralf Baechle , Paul Burton , James Hogan , Jonathan Corbet , Lee Jones , Arnd Bergmann , Daniel Lezcano , Thomas Gleixner , Michael Turquette , Stephen Boyd , Jason Cooper , Marc Zyngier , Rob Herring , Mark Rutland Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-mips@vger.kernel.org, linux-clk@vger.kernel.org, od@zcrc.me, Mathieu Malaterre , Paul Cercueil , Artur Rojek Subject: [PATCH v15 10/13] MIPS: qi_lb60: Reduce system timer and clocksource to 750 kHz Date: Wed, 24 Jul 2019 13:16:12 -0400 Message-Id: <20190724171615.20774-11-paul@crapouillou.net> In-Reply-To: <20190724171615.20774-1-paul@crapouillou.net> References: <20190724171615.20774-1-paul@crapouillou.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The default clock (12 MHz) is too fast for the system timer, which fails to report time accurately. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Tested-by: Artur Rojek --- Notes: v5: New patch v6: Remove ingenic,clocksource-channel property v7-v15: No change arch/mips/boot/dts/ingenic/qi_lb60.dts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/mips/boot/dts/ingenic/qi_lb60.dts b/arch/mips/boot/dts/ingenic/qi_lb60.dts index cc26650562c2..933d98ca8d93 100644 --- a/arch/mips/boot/dts/ingenic/qi_lb60.dts +++ b/arch/mips/boot/dts/ingenic/qi_lb60.dts @@ -2,6 +2,7 @@ /dts-v1/; #include "jz4740.dtsi" +#include #include / { @@ -64,3 +65,9 @@ pinctrl-names = "default"; pinctrl-0 = <&pins_mmc>; }; + +&tcu { + /* 750 kHz for the system timer and clocksource */ + assigned-clocks = <&tcu TCU_CLK_TIMER0>, <&tcu TCU_CLK_TIMER1>; + assigned-clock-rates = <750000>, <750000>; +}; -- 2.21.0.593.g511ec345e18