Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp172196imu; Wed, 12 Dec 2018 14:23:05 -0800 (PST) X-Google-Smtp-Source: AFSGD/XLuMMkgdqrb6cKJtAZlkGm/k+sSAkcYs4MJEWlInHYOb4AWFAETahLbyCUUlEJcOzMM7UD X-Received: by 2002:a65:6392:: with SMTP id h18mr20127925pgv.107.1544653385015; Wed, 12 Dec 2018 14:23:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544653384; cv=none; d=google.com; s=arc-20160816; b=hXBySiGDAXn0gfxzYqDFeyHS9Zei12elPvz9820Z7k9yxHt6LXczZ030hpNCTgqO8T TixyYTOBx3jM5R1vWg4FNDa79AQ/BtvuQwJDxK7g2nufUvOkLL+oTCfVs03TI4xg07Xc YoiBwfOuyGhNyjgi0UXtDCmUmxHImJQY/wvqYnRy8UAzyQpkZhV3+RLTJXm6sQNtl0R9 hWG3pm94sjnMGsfmGUBniEi1RB/OS6BGmBwoYEn1OJP1Q1/8POUsd3Bo0ff6ac2l+Grq qcgQS3CEWAFnc1fmcoBal/CJ6A146rHJhMBOPOmWE6QOg7NZIPXmvUGYtqDzFHZQ9gpc B7Rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:references:in-reply-to :message-id:date:subject:cc:to:from; bh=oMxZ6AwauCwPGsEAXokGRL6V/FQaYp9ZahPHDS7nrKo=; b=NtFCGWfv6Y0XPgsWYkqujIJ/Mh9/b1GoDU9JhuBj2Qh5t/jE2ZibQGQv894KTlRr7A 7+RUrhI0Ty1cu/eWhddlO0EgNKow/fZEse5SR3OWLQfhcPOW1Z+2pGkPSoUiHdIKggPN o77RiqOoQhKK8ld355OKuFyNDl0NrnGG5cQv56SD+XK8sfwDbXGbcMDWemvKthc2/yFY f88QQCYSZj4Wv5l2O4MFAPVgxPuL9IaEKBVvTu9b6oI79XFRd4RTr+w0K7LoVnkYYIlz jYFRUaw/gUYrUcY/3fTUZeOAiTwQ7ecwJfqmMoemnu9il1uG1PuXY5e65QoA1DV0XB94 15Dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=t8KzJrHq; 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=pass (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 e136si31391pfh.17.2018.12.12.14.22.28; Wed, 12 Dec 2018 14:23:04 -0800 (PST) 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=pass header.i=@crapouillou.net header.s=mail header.b=t8KzJrHq; 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=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728534AbeLLWVn (ORCPT + 99 others); Wed, 12 Dec 2018 17:21:43 -0500 Received: from outils.crapouillou.net ([89.234.176.41]:44942 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728393AbeLLWVl (ORCPT ); Wed, 12 Dec 2018 17:21:41 -0500 From: Paul Cercueil To: Thierry Reding , Rob Herring , Mark Rutland , Daniel Lezcano , Thomas Gleixner , Ralf Baechle , Paul Burton , James Hogan , Jonathan Corbet Cc: Mathieu Malaterre , Ezequiel Garcia , PrasannaKumar Muralidharan , linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org, linux-mips@vger.kernel.org, linux-doc@vger.kernel.org, linux-clk@vger.kernel.org, od@zcrc.me, Paul Cercueil Subject: [PATCH v8 21/26] MIPS: CI20: Reduce system timer and clocksource to 3 MHz Date: Wed, 12 Dec 2018 23:12:26 +0100 Message-Id: <20181212221226.19194-1-paul@crapouillou.net> In-Reply-To: <20181212220922.18759-1-paul@crapouillou.net> References: <20181212220922.18759-1-paul@crapouillou.net> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1544652755; bh=oMxZ6AwauCwPGsEAXokGRL6V/FQaYp9ZahPHDS7nrKo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=t8KzJrHq+2ZR2G2DOX5KTMZzcjnC+bKffuxVOzZXPlMhB4Hja/M4bX1EjxxgMWdVZRb5Ms/sQ8XfbFMLFvs1CmiU4GjREzHLZDSYR7aWWEEayMewk55SD7p8vCsveT5U3VGwKKSHPBoPa7u786BmBlOazCoZFq02VdCDZh5hInM= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The default clock (48 MHz) is too fast for the system timer, which fails to report time accurately. Signed-off-by: Paul Cercueil --- Notes: v5: New patch v6: Set also the rate for the clocksource channel's clock v7: No change v8: No change arch/mips/boot/dts/ingenic/ci20.dts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/mips/boot/dts/ingenic/ci20.dts b/arch/mips/boot/dts/ingenic/ci20.dts index 50cff3cbcc6d..f64d32443097 100644 --- a/arch/mips/boot/dts/ingenic/ci20.dts +++ b/arch/mips/boot/dts/ingenic/ci20.dts @@ -238,3 +238,9 @@ bias-disable; }; }; + +&tcu { + /* 3 MHz for the system timer and clocksource */ + assigned-clocks = <&tcu TCU_CLK_TIMER0>, <&tcu TCU_CLK_TIMER1>; + assigned-clock-rates = <3000000>, <3000000>; +}; -- 2.11.0